[arch-general] LVM volume not active / fails to mount at boot

David Rosenstrauch darose at darose.net
Sun Feb 24 18:07:06 EST 2013


For some reason, since the last LVM upgrade, one of my LVM volumes fails
to mount, causing the boot sequence to fail.

When I boot, I see the following:

[root at darsys12 ~]# pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/sda4  vg1  lvm2 a--  359.49g 319.49g
  /dev/sdc   vg2  lvm2 a--  931.51g 431.51g
  /dev/sdd   vg3  lvm2 a--  465.76g 165.76g
[root at darsys12 ~]# vgs
  VG   #PV #LV #SN Attr   VSize   VFree
  vg1    1   2   0 wz--n- 359.49g 319.49g
  vg2    1   1   0 wz--n- 931.51g 431.51g
  vg3    1   1   0 wz--n- 465.76g 165.76g
[root at darsys12 ~]# lvs
  LV      VG   Attr      LSize   Pool Origin Data%  Move Log Copy%  Convert
  lvabs   vg1  -wi-ao---  10.00g
  lvcache vg1  -wi-ao---  30.00g
  lvshare vg2  -wi------ 500.00g
  lvhome  vg3  -wi-ao--- 300.00g

As a result, there's no /dev/vg2/lvshare volume found, and trying to mount
it fails.

I can sometimes fix this issue by removing the volume from /etc/fstab,
rebooting, and then manually issuing "vgchange -ay vg2".  But even this
doesn't seem to work reliably.  It usually tells me it activates 1 volume,
but sometimes /dev/vg2/lvshare still doesn't show up.

Any idea what the problem might be here / how to fix?

Thanks,

DR



More information about the arch-general mailing list