[PVE-User] LVM autoactivation failed with multipath over iSCSI

nada nada at verdnatura.es
Tue Jan 14 15:54:39 CET 2020


thank you Marco
once more i've checked iscsid.conf
recreated initrd and reboot 2nd node WITHOUT rc.local
but the same error "autoactivation failed"
detail steps follow
Nada

root at mox11:~# grep node.startup /etc/iscsi/iscsid.conf
node.startup = automatic

root at mox11:~# grep pve /etc/lvm/lvm.conf
	# Also do not scan LVM disks from guests on both VGs named & not named 
'pve'
	global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|", 
"r|/dev/mapper/pve-(vm|base)--[0-9]+--disk--[0-9]+|", 
"a|/dev/mapper/3600.*|", "a|/dev/mapper/san.*|" ]

root at mox11:~# uname -r
5.3.13-1-pve

# cp /boot/initrd.img-5.3.13-1-pve 
/boot/initrd.img-5.3.13-1-pve.20200106.bak
# update-initramfs -c -k 5.3.13-1-pve
# update-grub
# reboot

root at mox11:~# grep santest /var/log/syslog
Jan 14 15:36:09 mox11 blkdeactivate[19162]:   [LVM]: deactivating Volume 
Group santest... skipping
Jan 14 15:39:36 mox11 lvm[2086]:   Cannot activate LVs in VG santest 
while PVs appear on duplicate devices.
Jan 14 15:39:36 mox11 lvm[2086]:   Cannot activate LVs in VG santest 
while PVs appear on duplicate devices.
Jan 14 15:39:36 mox11 lvm[2086]:   0 logical volume(s) in volume group 
"santest" now active
Jan 14 15:39:36 mox11 lvm[2086]:   santest: autoactivation failed.

root at mox11:~# lvs -a
   /dev/sda: open failed: No medium found
   LV                  VG      Attr       LSize  Pool        Origin Data% 
  Meta%  Move Log Cpy%Sync Convert
   data                pve     twi-aotz--  9.98g                    0.00  
  10.61
   [data_tdata]        pve     Twi-ao----  9.98g
   [data_tmeta]        pve     ewi-ao---- 12.00m
   [lvol0_pmspare]     pve     ewi------- 12.00m
   root                pve     -wi-ao---- 16.75g
   swap                pve     -wi-ao----  4.00g
   zfs                 pve     -wi-ao---- 30.00g
   [lvol0_pmspare]     santest ewi------- 12.00m
   santestpool         santest twi---tz--  9.00g
   [santestpool_tdata] santest Twi-------  9.00g
   [santestpool_tmeta] santest ewi------- 12.00m
   vm-902-disk-0       santest Vwi---tz--  2.00g santestpool

root at mox11:~# /sbin/vgchange -aly santest
   /dev/sda: open failed: No medium found
   2 logical volume(s) in volume group "santest" now active

root at mox11:~# lvs -a
   /dev/sda: open failed: No medium found
   LV                  VG      Attr       LSize  Pool        Origin Data% 
  Meta%  Move Log Cpy%Sync Convert
   data                pve     twi-aotz--  9.98g                    0.00  
  10.61
   [data_tdata]        pve     Twi-ao----  9.98g
   [data_tmeta]        pve     ewi-ao---- 12.00m
   [lvol0_pmspare]     pve     ewi------- 12.00m
   root                pve     -wi-ao---- 16.75g
   swap                pve     -wi-ao----  4.00g
   zfs                 pve     -wi-ao---- 30.00g
   [lvol0_pmspare]     santest ewi------- 12.00m
   santestpool         santest twi-aotz--  9.00g                    8.61  
  13.83
   [santestpool_tdata] santest Twi-ao----  9.00g
   [santestpool_tmeta] santest ewi-ao---- 12.00m
   vm-902-disk-0       santest Vwi-a-tz--  2.00g santestpool        38.73

On 2020-01-14 14:28, Marco Gaiarin wrote:
> Mandi! nada
>   In chel di` si favelave...
> 
>> the LVMThin VG and relevant LVs are NOT autoactivated
>> what am i missing ?
> 
> Usually you need:
> 
> 	node.startup = automatic
> 
> in /etc/iscsi/iscsid.conf on *every* server of the pool (and do initrd
> recreation, of course).


More information about the pve-user mailing list