Bug 789020

Summary: no more /dev/disk/by-label/LABEL symlinks for LVM devices (udev/systemd?)
Product: [openSUSE] openSUSE Tumbleweed Reporter: Stefan Seyfried <seife>
Component: BasesystemAssignee: Dong Mao Zhang <dmzhang>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: fcrozat, forgotten_DV81ZEWZkN, martin.wilck
Version: 13.1 Milestone 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Third Party Developer/Partner Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stefan Seyfried 2012-11-09 15:10:00 UTC
After updating to today's FACTORY (last update was before openSUSE conf), my /space and /local partitions were no longer mounted:

susi:~ # grep LABEL /etc/fstab
LABEL=root-FACTORY  /       ext4  acl,user_xattr        1 1
# LABEL=local       /local  xfs   noatime,logbufs=8,logbsize=262144 1 2
# LABEL=space       /space  xfs   noatime,logbufs=8,logbsize=262144 1 2

(now commented out to get the system to boot)

susi:~ # l /dev/disk/by-label/
total 0
drwxr-xr-x 2 root root 140 Nov  9 15:50 ./
drwxr-xr-x 6 root root 120 Nov  9 15:50 ../
lrwxrwxrwx 1 root root  10 Nov  9 15:50 BOOTLOADER -> ../../sda3
lrwxrwxrwx 1 root root  10 Nov  9 15:50 SYSTEM_DRV -> ../../sda1
lrwxrwxrwx 1 root root  10 Nov  9 15:50 Windows7_OS -> ../../sda2
lrwxrwxrwx 1 root root  10 Nov  9 15:50 root-FACTORY -> ../../sda6
lrwxrwxrwx 1 root root  10 Nov  9 15:50 root-stable -> ../../sda8
susi:~ # blkid
/dev/sda1: LABEL="SYSTEM_DRV" UUID="7A0615220614E0C5" TYPE="ntfs" 
/dev/sda2: LABEL="Windows7_OS" UUID="64A42A12A429E6F0" TYPE="ntfs" 
/dev/sda3: LABEL="BOOTLOADER" UUID="519614e1-7c40-4866-b461-3ad4cb797538" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda5: UUID="fde71608-8ca9-4f2a-9a3e-501df23f8469" TYPE="swap" 
/dev/sda6: LABEL="root-FACTORY" UUID="71f5bfb4-3d29-4c9c-929a-3fb795cf0fd9" TYPE="ext4" 
/dev/sda7: UUID="3387ae99-507c-41eb-80c8-ee7b4a62353a" TYPE="crypto_LUKS" 
/dev/sda8: LABEL="root-stable" UUID="6983d635-99c0-48e9-b62a-74cd3b27c636" TYPE="ext4" 
/dev/sda9: UUID="jRlUY0-8mt0-09TE-MeAf-IqRj-TSzl-tK83Uk" TYPE="LVM2_member" 
/dev/mapper/main-local: LABEL="local" UUID="ac293f98-8e30-440f-8845-d067ee49d42d" TYPE="xfs" 
/dev/mapper/main-space: LABEL="space" UUID="17676f0d-fe6e-4b47-80bb-6d6493574569" TYPE="xfs" 
/dev/mapper/main-vdr: UUID="4b5b5706-84bb-4a2c-8f91-fda2784aea86" TYPE="ext4" 
/dev/mapper/cr_sda7: LABEL="cryptohome" UUID="98741ffb-5913-43ca-afac-500ff16d0f57" TYPE="ext3" 
susi:~ # blkid|grep LABEL=
/dev/sda1: LABEL="SYSTEM_DRV" UUID="7A0615220614E0C5" TYPE="ntfs" 
/dev/sda2: LABEL="Windows7_OS" UUID="64A42A12A429E6F0" TYPE="ntfs" 
/dev/sda3: LABEL="BOOTLOADER" UUID="519614e1-7c40-4866-b461-3ad4cb797538" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda6: LABEL="root-FACTORY" UUID="71f5bfb4-3d29-4c9c-929a-3fb795cf0fd9" TYPE="ext4" 
/dev/sda8: LABEL="root-stable" UUID="6983d635-99c0-48e9-b62a-74cd3b27c636" TYPE="ext4" 
/dev/mapper/main-local: LABEL="local" UUID="ac293f98-8e30-440f-8845-d067ee49d42d" TYPE="xfs" 
/dev/mapper/main-space: LABEL="space" UUID="17676f0d-fe6e-4b47-80bb-6d6493574569" TYPE="xfs" 
/dev/mapper/cr_sda7: LABEL="cryptohome" UUID="98741ffb-5913-43ca-afac-500ff16d0f57" TYPE="ext3" 

As you can see, the non-LVM devices are there in /dev/disk/by-label, but the LVM devices are not.

I guess this is a glitch of the new udev version.
Comment 1 Stefan Seyfried 2012-11-09 15:14:39 UTC
Thinking about it, this might be related to bug #789021 (but simply fixing the path to dmsetup did not fix the issue for me).
Comment 2 Forgotten User DV81ZEWZkN 2012-11-09 15:27:17 UTC
Working solution for me is to add /dev/dm-x in /etc/fstab
Comment 3 Robert Milasan 2012-11-12 09:25:09 UTC
This is LVM issue not udev, assign it to maintainer of LVM2
Comment 4 Stefan Seyfried 2012-11-12 12:18:21 UTC
*** Bug 789019 has been marked as a duplicate of this bug. ***
Comment 5 Stefan Seyfried 2012-11-12 12:27:49 UTC
fixed in Base:System, sr to Factory:

140943 State:review  By:seife        When:2012-11-12T12:24:00
       submit:       Base:System/lvm2  ->   openSUSE:Factory
       Review by Group  is new:      legal-auto
       Review by Group  is new:      factory-auto
       Descr: fix bnc#789019,bnc#789020,bnc#789021 (forwarded request 140942
              from seife)
Comment 6 Bernhard Wiedemann 2012-11-14 13:32:23 UTC
This is an autogenerated message for OBS integration:
This bug (789020) was mentioned in
https://build.opensuse.org/request/show/140943
Comment 7 Thomas Fehr 2012-11-15 12:40:34 UTC
Who on earth thinks I am maintainer of lvm2?
Reassigned to maintainer of lvm2.
Comment 8 Stefan Seyfried 2012-11-19 09:18:57 UTC
fixed in factory now