after updating unable to map lvm drives

aax

Member
Jan 23, 2021
4
0
6
44
Hi,

I thought it was a good idea to update proxmox 6.4 with latest updates to eventually update to 8.x. However after first update for 6.4 and reboot it fails to load. I'm home user using it for home assistant and photoprism and not too familiar with it all.

Just before updating I made a backup of lxc with photoprism and restored it to the thin-lvm where a vm with home assistant is running as well. This migration worked and the lxc was running fine.

Anyone able to help me out?

EDIT:
commenting out below line in fstab removed the error and all seems to be working fine again. I'm not sure where pve-data was referring to as it seems not to be used. Maybe some legacy part when installing proxmox?

Code:
/dev/mapper/pve-data /var/lib/vz       ext4    defaults         0       0

The boot message:

Code:
Started LVM event activation on device 8:3
Timed out waiting for device /dev/mapper/pve-data
Dependency failed for /var/lib/vz
Dependency failed for Local File System

/etc/fstab
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/pve-root /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=A62A-18F1  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/pve-swap_1 none            swap    sw              0       0
/dev/mapper/pve-data /var/lib/vz       ext4    defaults         0       0  
/dev/mapper/pve-nfs1  /srv/nfs1       ext4     defaults       0      0
//thuisarchief/photo /mnt/nas/photo cifs credentials=/root/.smbcredentials,uid=100000,gid=100000 0 0
//thuisarchief/photoprism /mnt/nas/photoprism cifs credentials=/root/.smbcredentials,uid=100000,gid=100000 0 0

and after change in fstab to
Code:
/dev/mapper/pve-data /var/lib/vz       ext4 defaults,errors=remount-ro   0  1

Code:
Started LVM event activation on device 8:3
Timed out waiting for device /dev/mapper/pve-data
Dependency failed for Fie System Check on /dev/mapper/pve-data
Dependency failed for /var/lib/vz
Dependency failed for Local File System

/etc/pve/storage.cfg
Code:
lvmthin: t_pool
    thinpool tpool
    vgname pve
    content images,rootdir

dir: local
    path /var/lib/vz
    content snippets,images,iso,rootdir,vztmpl
    maxfiles 0

nfs: nfs1
    export /srv/nfs1
    path /mnt/pve/nfs1
    server 192.168.0.72
    content backup
    maxfiles 5

pvs -a
Code:
  PV         VG  Fmt  Attr PSize   PFree
  /dev/sda1           ---       0     0
  /dev/sda2           ---       0     0
  /dev/sda3  pve lvm2 a--  232,14g    0

vgs -a
Code:
  VG  #PV #LV #SN Attr   VSize   VFree
  pve   1  13   0 wz--n- 232,14g    0

lsblk
Code:
NAME                                   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                                      8:0    0 232,9G  0 disk
|-sda1                                   8:1    0   512M  0 part /boot/efi
|-sda2                                   8:2    0   244M  0 part
|-sda3                                   8:3    0 232,2G  0 part
  |-pve-root                           253:0    0  37,3G  0 lvm  /
  |-pve-swap_1                         253:1    0   7,8G  0 lvm  [SWAP]
  |-pve-tpool_tmeta                    253:2    0  1000M  0 lvm 
  | |-pve-tpool-tpool                  253:4    0   137G  0 lvm 
  |   |-pve-tpool                      253:5    0   137G  0 lvm 
  |   |-pve-vm--102--disk--0           253:7    0     4M  0 lvm 
  |   |-pve-vm--102--disk--1           253:8    0    32G  0 lvm 
  |   |-pve-vm--102--state--mz_restore 253:9    0   8,5G  0 lvm 
  |   |-pve-vm--102--state--pre_update 253:10   0   8,5G  0 lvm 
  |   |-pve-vm--111--disk--0           253:11   0    16G  0 lvm 
  |-pve-tpool_tdata                    253:3    0   137G  0 lvm 
  | |-pve-tpool-tpool                  253:4    0   137G  0 lvm 
  |   |-pve-tpool                      253:5    0   137G  0 lvm 
  |   |-pve-vm--102--disk--0           253:7    0     4M  0 lvm 
  |   |-pve-vm--102--disk--1           253:8    0    32G  0 lvm 
  |   |-pve-vm--102--state--mz_restore 253:9    0   8,5G  0 lvm 
  |   |-pve-vm--102--state--pre_update 253:10   0   8,5G  0 lvm 
  |   |-pve-vm--111--disk--0           253:11   0    16G  0 lvm 
  |-pve-nfs1                           253:6    0    49G  0 lvm  /srv/nfs1


lvs -a
Code:
  LV                            VG  Attr       LSize    Pool  Origin        Data%  Meta%  Move Log Cpy%Sync Convert
  [lvol0_pmspare]               pve ewi-------   88,00m                                                           
  nfs1                          pve -wi-ao----   49,00g                                                           
  root                          pve -wi-ao----   37,25g                                                           
  snap_vm-102-disk-0_mz_restore pve Vri---tz-k    4,00m tpool vm-102-disk-0                                       
  snap_vm-102-disk-0_pre_update pve Vri---tz-k    4,00m tpool vm-102-disk-0                                       
  snap_vm-102-disk-1_mz_restore pve Vri---tz-k   32,00g tpool vm-102-disk-1                                       
  snap_vm-102-disk-1_pre_update pve Vri---tz-k   32,00g tpool vm-102-disk-1                                       
  swap_1                        pve -wi-ao----   <7,82g                                                           
  tpool                         pve twi-aotz-- <137,02g                     58,14  5,62                           
  [tpool_tdata]                 pve Twi-ao---- <137,02g                                                           
  [tpool_tmeta]                 pve ewi-ao---- 1000,00m                                                           
  vm-102-disk-0                 pve Vwi-a-tz--    4,00m tpool               0,00                                  
  vm-102-disk-1                 pve Vwi-a-tz--   32,00g tpool               83,42                                 
  vm-102-state-mz_restore       pve Vwi-a-tz--   <8,49g tpool               45,89                                 
  vm-102-state-pre_update       pve Vwi-a-tz--   <8,49g tpool               47,73                                 
  vm-111-disk-0                 pve Vwi-a-tz--   16,00g tpool               43,07
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!