LVM autoactivation failed

yuban10703

Member
May 9, 2021
5
0
6
24
I used raid0 and cache for lv:Raid0Lv,
LV is not automatically activated when a node is restarted
but I can manually to activate LV

Looks like some LV got activated first?
Code:
root@pve:~# lvs
  LV            VG       Attr       LSize   Pool    Origin Data%  Meta%  Move Log Cpy%Sync Convert
  Raid0Lv       VolGroup twi---t--- 595.99g                                                      
  Raid0Lv_meta0 VolGroup -wi-a-----  76.00m                                                      
  vm-101-disk-0 VolGroup Vwi---t--- 102.00g Raid0Lv                                              
  vm-103-disk-0 VolGroup Vwi---t---  80.00g Raid0Lv                                              
  vm-104-disk-0 VolGroup Vwi---t--- 205.00g Raid0Lv                                              
  data          pve      twi-aotz-- <68.00g                35.53  2.71                           
  root          pve      -wi-ao----  15.00g                                                      
  swap          pve      -wi-ao----   6.00g                                                      
  vm-100-disk-0 pve      Vwi-aotz--  24.00g data           22.13                                 
  vm-101-disk-0 pve      Vwi-aotz--   8.00g data           99.58                                 
  vm-102-disk-0 pve      Vwi-a-tz--  52.00m data           65.87                                 
  vm-103-disk-0 pve      Vwi-a-tz--   8.00g data           37.99                                 
  vm-104-disk-0 pve      Vwi-a-tz--   8.00g data           97.61                                 
root@pve:~# vgchange -a y VolGroup
  Activation of logical volume VolGroup/Raid0Lv is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
  Activation of logical volume VolGroup/vm-103-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
  Activation of logical volume VolGroup/vm-101-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
  Activation of logical volume VolGroup/vm-104-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
  1 logical volume(s) in volume group "VolGroup" now active
root@pve:~# vgchange -a n VolGroup
  0 logical volume(s) in volume group "VolGroup" now active
root@pve:~# vgchange -a y VolGroup
  5 logical volume(s) in volume group "VolGroup" now active
root@pve:~# lvs
  LV            VG       Attr       LSize   Pool    Origin Data%  Meta%  Move Log Cpy%Sync Convert
  Raid0Lv       VolGroup twi-aot--- 595.99g                32.92  26.95                          
  Raid0Lv_meta0 VolGroup -wi-a-----  76.00m                                                      
  vm-101-disk-0 VolGroup Vwi-a-t--- 102.00g Raid0Lv        2.59                                  
  vm-103-disk-0 VolGroup Vwi-a-t---  80.00g Raid0Lv        17.98                                 
  vm-104-disk-0 VolGroup Vwi-a-t--- 205.00g Raid0Lv        87.41                                 
  data          pve      twi-aotz-- <68.00g                35.53  2.71                           
  root          pve      -wi-ao----  15.00g                                                      
  swap          pve      -wi-ao----   6.00g                                                      
  vm-100-disk-0 pve      Vwi-aotz--  24.00g data           22.13                                 
  vm-101-disk-0 pve      Vwi-a-tz--   8.00g data           99.58                                 
  vm-102-disk-0 pve      Vwi-a-tz--  52.00m data           65.87                                 
  vm-103-disk-0 pve      Vwi-a-tz--   8.00g data           37.99                                 
  vm-104-disk-0 pve      Vwi-a-tz--   8.00g data           97.61                                 
root@pve:~#
 
Last edited:
Ocpl6IYgJvNEtG8.png
 
Code:
root@pve:~# vgdisplay
  --- Volume group ---
  VG Name               VolGroup
  System ID             
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  26
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               0
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               <714.99 GiB
  PE Size               4.00 MiB
  Total PE              183037
  Alloc PE / Size       183025 / 714.94 GiB
  Free  PE / Size       12 / 48.00 MiB
  VG UUID               huseIF-3f0V-juqC-qgqe-XHNG-4bb4-AYMR7Y
 
log
Code:
oot@pve:~# journalctl -b | grep -i lvm
May 09 09:54:00 pve lvm[454]:   4 logical volume(s) in volume group "VolGroup" monitored
May 09 09:54:00 pve lvm[474]: Monitoring thin pool pve-data-tpool.
May 09 09:54:00 pve lvm[454]:   10 logical volume(s) in volume group "pve" monitored
May 09 09:54:00 pve systemd[1]: Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
May 09 09:54:01 pve systemd[1]: Created slice system-lvm2\x2dpvscan.slice.
May 09 09:54:01 pve systemd[1]: Starting LVM event activation on device 8:81...
May 09 09:54:01 pve systemd[1]: Starting LVM event activation on device 8:65...
May 09 09:54:01 pve systemd[1]: Starting LVM event activation on device 8:49...
May 09 09:54:01 pve systemd[1]: Starting LVM event activation on device 8:35...
May 09 09:54:01 pve lvm[705]:   8 logical volume(s) in volume group "pve" now active
May 09 09:54:01 pve lvm[705]:   Activation of logical volume VolGroup/Raid0Lv is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[705]:   Activation of logical volume VolGroup/vm-103-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[705]:   Activation of logical volume VolGroup/vm-101-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[705]:   Activation of logical volume VolGroup/vm-104-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[705]:   1 logical volume(s) in volume group "VolGroup" now active
May 09 09:54:01 pve lvm[705]:   VolGroup: autoactivation failed.
May 09 09:54:01 pve lvm[708]:   8 logical volume(s) in volume group "pve" now active
May 09 09:54:01 pve lvm[708]:   Activation of logical volume VolGroup/Raid0Lv is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[708]:   Activation of logical volume VolGroup/vm-103-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[708]:   Activation of logical volume VolGroup/vm-101-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[708]:   Activation of logical volume VolGroup/vm-104-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[708]:   1 logical volume(s) in volume group "VolGroup" now active
May 09 09:54:01 pve lvm[708]:   VolGroup: autoactivation failed.
May 09 09:54:01 pve lvm[707]:   8 logical volume(s) in volume group "pve" now active
May 09 09:54:01 pve lvm[707]:   Activation of logical volume VolGroup/Raid0Lv is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[707]:   Activation of logical volume VolGroup/vm-103-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[707]:   Activation of logical volume VolGroup/vm-101-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[707]:   Activation of logical volume VolGroup/vm-104-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[707]:   1 logical volume(s) in volume group "VolGroup" now active
May 09 09:54:01 pve lvm[707]:   VolGroup: autoactivation failed.
May 09 09:54:01 pve systemd[1]: lvm2-pvscan@8:81.service: Main process exited, code=exited, status=5/NOTINSTALLED
May 09 09:54:01 pve systemd[1]: lvm2-pvscan@8:81.service: Failed with result 'exit-code'.
May 09 09:54:01 pve systemd[1]: Failed to start LVM event activation on device 8:81.
May 09 09:54:01 pve lvm[706]:   8 logical volume(s) in volume group "pve" now active
May 09 09:54:01 pve systemd[1]: lvm2-pvscan@8:35.service: Main process exited, code=exited, status=5/NOTINSTALLED
May 09 09:54:01 pve systemd[1]: lvm2-pvscan@8:35.service: Failed with result 'exit-code'.
May 09 09:54:01 pve systemd[1]: Failed to start LVM event activation on device 8:35.
May 09 09:54:01 pve systemd[1]: lvm2-pvscan@8:49.service: Main process exited, code=exited, status=5/NOTINSTALLED
May 09 09:54:01 pve systemd[1]: lvm2-pvscan@8:49.service: Failed with result 'exit-code'.
May 09 09:54:01 pve systemd[1]: Failed to start LVM event activation on device 8:49.
May 09 09:54:01 pve lvm[706]:   Activation of logical volume VolGroup/Raid0Lv is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[706]:   Activation of logical volume VolGroup/vm-103-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[706]:   Activation of logical volume VolGroup/vm-101-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[706]:   Activation of logical volume VolGroup/vm-104-disk-0 is prohibited while logical volume VolGroup/Raid0Lv_tmeta is active.
May 09 09:54:01 pve lvm[706]:   1 logical volume(s) in volume group "VolGroup" now active
May 09 09:54:01 pve lvm[706]:   VolGroup: autoactivation failed.
May 09 09:54:01 pve systemd[1]: lvm2-pvscan@8:65.service: Main process exited, code=exited, status=5/NOTINSTALLED
May 09 09:54:01 pve systemd[1]: lvm2-pvscan@8:65.service: Failed with result 'exit-code'.
May 09 09:54:01 pve systemd[1]: Failed to start LVM event activation on device 8:65.
May 09 09:55:19 pve lvm[474]: Monitoring thin pool VolGroup-Raid0Lv-tpool.
May 09 09:55:19 pve systemd[1]: Starting LVM event activation on device 253:22...
May 09 09:55:19 pve systemd[1]: Started LVM event activation on device 253:22.
 
Last edited:
The command I used when I created it
Code:
vgcreate VolGroup /dev/sde1 /dev/sdf1 /dev/sdd1
lvcreate --type raid0 -l +100%FREE  -n Raid0Lv VolGroup /dev/sde1 /dev/sdf1
lvconvert --type thin-pool -Zn VolGroup/Raid0Lv
lvcreate --type cache --cachemode writeback -l +100%FREE -n Raid0Lv_CachePool VolGroup/Raid0Lv /dev/sdd1
 

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!