lvm /dev broken after upgrade

Bug #540155 reported by johe
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: lvm2

After upgrading hardy --> lucid today the /dev entwries of my volumegroup are missing.

lvdisplay still shows the VG but there is no way to mount it

apt-cache show lvm2
Package: lvm2
Priority: optional
Section: admin
Installed-Size: 1088
Maintainer: Ubuntu Core Developers <email address hidden>
Original-Maintainer: Debian LVM Team <email address hidden>
Architecture: i386
Version: 2.02.54-1ubuntu3
Replaces: lvm-common
Depends: libc6 (>= 2.7), libdevmapper-event1.02.1 (>= 2:1.02.20), libdevmapper1.02.1 (>= 2:1.02.39), libreadline6 (>= 6.0), lsb-base, dmsetup (>> 2:1.02.36), watershed (>= 2)
Conflicts: lvm-common
Filename: pool/main/l/lvm2/lvm2_2.02.54-1ubuntu3_i386.deb
Size: 409002

Revision history for this message
Mathieu Alorent (kumy) wrote :

This could be linked to bug #527666 where mountall makes boot stall with some LVM devices missing.

Revision history for this message
Mathieu Alorent (kumy) wrote :

johe: can you please give the entire output of
 * ls -l /dev/mapper
 * lvdisplay | awk '/LV Name/ { print $3 }' | xargs ls -l

In our case, this is what we get:

root@malorent:~# ls -l /dev/mapper
total 0
brw-rw---- 1 root disk 251, 4 Apr 23 14:57 HEBEX-VAR_LOG
brw-rw---- 1 root disk 251, 2 Apr 23 14:57 HEBEX-WOO
brw-rw---- 1 root disk 251, 1 Apr 23 14:57 HEBEX-WOO_LOG
brw-rw---- 1 root disk 251, 3 Apr 23 14:57 HEBEX-WOO_PROG
crw-rw---- 1 root root 10, 59 Apr 23 14:57 control

root@malorent:~# lvdisplay | awk '/LV Name/ { print $3 }' | xargs ls -l
  /dev/mapper/HEBEX-WOO_BASE: open failed: No such file or directory
  /dev/mapper/HEBEX-WOO_BASE: open failed: No such file or directory
ls: cannot access /dev/HEBEX/WOO_BASE: No such file or directory
lrwxrwxrwx 1 root root 23 Apr 23 14:57 /dev/HEBEX/VAR_LOG -> ../mapper/HEBEX-VAR_LOG
lrwxrwxrwx 1 root root 19 Apr 23 14:57 /dev/HEBEX/WOO -> ../mapper/HEBEX-WOO
lrwxrwxrwx 1 root root 23 Apr 23 14:57 /dev/HEBEX/WOO_LOG -> ../mapper/HEBEX-WOO_LOG
lrwxrwxrwx 1 root root 24 Apr 23 14:57 /dev/HEBEX/WOO_PROG -> ../mapper/HEBEX-WOO_PROG

Revision history for this message
Mathieu Alorent (kumy) wrote :

Add to this a search in /var/log/udev:

root@malorent:~# grep mapper /var/log/udev
KERNEL[1272027429.282338] add /devices/virtual/misc/device-mapper (misc)
DEVPATH=/devices/virtual/misc/device-mapper
DEVNAME=mapper/control
UDEV [1272027429.914560] add /devices/virtual/misc/device-mapper (misc)
DEVPATH=/devices/virtual/misc/device-mapper
DEVNAME=/dev/mapper/control
DEVNAME=/dev/mapper/HEBEX-WOO_LOG
FSTAB_NAME=/dev/mapper/HEBEX-WOO_LOG
DEVNAME=/dev/mapper/HEBEX-WOO
FSTAB_NAME=/dev/mapper/HEBEX-WOO
DEVNAME=/dev/mapper/HEBEX-WOO_PROG
FSTAB_NAME=/dev/mapper/HEBEX-WOO_PROG
DEVNAME=/dev/mapper/HEBEX-VAR_LOG
FSTAB_NAME=/dev/mapper/HEBEX-VAR_LOG

Revision history for this message
Mathieu Alorent (kumy) wrote :

This can be traced in the udev links, too:

root@malorent:~# ls /dev/.udev/links/ | grep HEBEX
HEBEX\x2fVAR_LOG
HEBEX\x2fWOO
HEBEX\x2fWOO_LOG
HEBEX\x2fWOO_PROG
disk\x2fby-id\x2fdm-name-HEBEX-VAR_LOG
disk\x2fby-id\x2fdm-name-HEBEX-WOO
disk\x2fby-id\x2fdm-name-HEBEX-WOO_LOG
disk\x2fby-id\x2fdm-name-HEBEX-WOO_PROG

Revision history for this message
Mathieu Alorent (kumy) wrote :

There is an update today of lvm2_2.02.54-1ubuntu3 -> lvm2_2.02.54-1ubuntu4.

Could you please test this new version (worked for me).

Revision history for this message
Zdenek Kabelac (zdenek-kabelac) wrote :

I assume missing LVs are just not activated ?

Have you tried vgchange -ay

Aventually you may post output from lvdisaplay.

Also - I'd add here comment to usage of lvdisplay & awk. There is failry simplier way: lvs -o help
-> lvs --noheadings -o lv_name

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.