Bug 619461

Summary: /dev/disk/by-label/* missing for LVMs
Product: [openSUSE] openSUSE 11.3 Reporter: Harald Koenig <koenig>
Component: BasesystemAssignee: Xin Wei Hu <xwhu>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: 0.bugs.only.0, aschnell, DOlsson
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Harald Koenig 2010-07-02 09:34:46 UTC
fs labels for LVMs don't show up in /dev/disk/by-label/ which causes error trying to mount those paritions by label as usual:

harald > mount LABEL=root /11.1
mount: special device LABEL=root does not exist
harald > mount LABEL=root2 /11.2
mount: special device LABEL=root2 does not exist
harald > mount LABEL=root3 /11.3
mount: special device LABEL=root3 does not exist

the LVMs exist and are active:

harald > lvdisplay  |grep root
  LV Name                /dev/system/root
  LV Name                /dev/system/root2
  LV Name                /dev/system/root3

harald > ll /dev/system/root*
lrwxrwxrwx 1 root root 7 Jul  2 10:10 /dev/system/root -> ../dm-1
lrwxrwxrwx 1 root root 7 Jul  2 10:10 /dev/system/root2 -> ../dm-4
lrwxrwxrwx 1 root root 7 Jul  2 10:10 /dev/system/root3 -> ../dm-6

and they are labeled:

harald > tune2fs -l /dev/system/root | grep name
Filesystem volume name:   root
harald > tune2fs -l /dev/system/root2 | grep name
Filesystem volume name:   root2
harald > tune2fs -l /dev/system/root3 | grep name
Filesystem volume name:   root3


but "by-label" only shows real partitions and no LVMs:

harald > ll /dev/disk/by-label/
total 0
lrwxrwxrwx 1 root root 10 Jul  2 10:11 boot -> ../../sda5
lrwxrwxrwx 1 root root 10 Jul  2 10:11 boot2 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jul  2 10:11 boot3 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jul  2 10:11 scr -> ../../sda9



I guess it's an udev issue ?!

harald > rpm -qa \*udev\* | sort
libgudev-1_0-0-157-1.2.x86_64
libgudev-1_0-0-32bit-157-1.2.x86_64
libudev-devel-157-1.2.x86_64
libudev0-157-1.2.x86_64
libudev0-32bit-157-1.2.x86_64
udev-157-1.2.x86_64
udev-configure-printer-1.2.0-1.11.x86_64
Comment 1 Arvin Schnell 2010-07-02 12:06:16 UTC
Same for by-uuid links.
Comment 2 Xin Wei Hu 2010-07-05 10:23:22 UTC
(In reply to comment #1)
> Same for by-uuid links.

Hi,

  Would you try my latest submit in Base:System ? I just fixed an ancient issue
in SuSE specific patch, which is related to this bug.

  Thanks.
Comment 3 Harald Koenig 2010-07-06 14:13:46 UTC
>   Would you try my latest submit in Base:System ? I just fixed an ancient issue
> in SuSE specific patch, which is related to this bug.

which RPM(s) shall I update for testing ?

I'd like to stay as close to factory/final as possible, so I'd like to avoid getting all new stuff from Base:System...
Comment 4 mail ignored 2010-07-06 19:59:18 UTC
(In reply to comment #2)
>   Would you try my latest submit in Base:System ? I just fixed an ancient issue
> in SuSE specific patch, which is related to this bug.

fyi, with:

rpm -qa \*udev\* | sort
 libgudev-1_0-0-157-44.1.x86_64
 libudev0-157-44.1.x86_64
 libudev0-32bit-157-44.1.x86_64
 udev-157-44.1.x86_64
 udev-configure-printer-1.2.0-1.11.x86_64

from,

grep base /etc/zypp/repos.d/BaseSystem.repo 
 baseurl=http://download.opensuse.org/repositories/Base:/System/openSUSE_Factory

now mounts,

 lvs | grep HOME
  LVD0_HOME VG0 -wi-ao  50.00g                                      
 grep HOME /etc/fstab
  LABEL=LVD0_HOME  /home  ext4 relatime,acl,user_xattr,journal_checksum,barrier=1  1 2

OK @ boot.
Comment 5 Harald Koenig 2010-07-07 09:38:05 UTC
(In reply to comment #4)
> OK @ boot.

NAK -- this udev update does *not* work for me:

I did update those udev packages from Base:System -- from "rpm -qa --last" :

libgudev-1_0-devel-157-44.1                   Tue Jul  6 23:38:53 2010
libgudev-1_0-0-157-44.1                       Tue Jul  6 23:38:46 2010
libgudev-1_0-0-32bit-157-44.1                 Tue Jul  6 23:38:18 2010
libudev-devel-157-44.1                        Tue Jul  6 23:38:12 2010
libudev0-157-44.1                             Tue Jul  6 23:38:08 2010
libudev0-32bit-157-44.1                       Tue Jul  6 23:37:43 2010
udev-157-44.1                                 Tue Jul  6 23:36:33 2010
gpg-pubkey-5d053b4f-479655f4                  Tue Jul  6 23:33:00 2010

and did reboot -- still only real partitions in /dev/disk/by-label and .../by-uuid/  (but reboot into runlevel 5 was ok!).


ok, next guess: it might be some fix which depends on initrd ?!
so I run "mkinitrd" and did reboot again -- and now I'm in *big* trouble
with the nouveau drm/KMS module driver:  
4.5 secs after boot (with udev/mouveau msgs) the screen display first goes a bit nuts and then black and hangs for 1-5 minutes before startup continues :-(

so I've stepped back to the udev version from factory (again output from "rpm -qa --last"  which shows that no Base:System packages are left):


libgudev-1_0-devel-157-1.2                    Wed Jul  7 02:02:02 2010
libgudev-1_0-0-157-1.2                        Wed Jul  7 02:02:01 2010
libgudev-1_0-0-32bit-157-1.2                  Wed Jul  7 02:02:00 2010
libudev-devel-157-1.2                         Wed Jul  7 02:01:59 2010
libudev0-157-1.2                              Wed Jul  7 02:01:58 2010
libudev0-32bit-157-1.2                        Wed Jul  7 02:01:53 2010
udev-157-1.2                                  Wed Jul  7 02:01:52 2010
gpg-pubkey-5d053b4f-479655f4                  Tue Jul  6 23:33:00 2010

and run mkinitrd (multiple times;) but my nouveau/initrd problems remain :-(

for more details about the remaining problem of nouveau/kms/initrd I opened another bug:  #620384


do you have any idea if #620384 might be related to that udev update and where I should look for any leftover changes ?
or do you think this was "only" triggered by mkinitrd and udev versions do not matter ?


anyway, help and ideas now to test/fix #620384 are *very* welcome because this severly broke my 11.3 setup on my notebook and I think about stopping any further tests for 11.3 as this is *the* major usability problem for me right now :-(
Comment 6 Xin Wei Hu 2010-07-07 09:56:25 UTC
Hi Harald,

  It's critical to update both udev and device-mapper.
  Could you update both and retest ?

  Hope this helps.

  Thanks.
Comment 7 Harald Koenig 2010-07-07 10:06:33 UTC
(In reply to comment #6)
> Hi Harald,
> 
>   It's critical to update both udev and device-mapper.
>   Could you update both and retest ?
> 
>   Hope this helps.

ok, I'll try it later... 
is it neccessary tu run mkinitrd after update ?
Comment 8 Xin Wei Hu 2010-07-07 10:13:56 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Hi Harald,
> > 
> >   It's critical to update both udev and device-mapper.
> >   Could you update both and retest ?
> > 
> >   Hope this helps.
> 
> ok, I'll try it later... 
> is it neccessary tu run mkinitrd after update ?

Yes, you have to run mkinitrd after update.

Thanks.
Comment 9 Dennis Olsson 2010-07-07 11:17:29 UTC
Have observed the same problem with openSUSE 11.3 RC2, when using MD raid with LVM and file systems mounted using labels -- for more details, refer to bug #586837 comments 16, 17 and 18.
Comment 10 Harald Koenig 2010-07-07 11:58:57 UTC
(In reply to comment #8)
> Yes, you have to run mkinitrd after update.

ACK: with udev-159-45.1.x86_64 and device-mapper-1.02.49-38.1.x86_64 all my fs labels show up again!

but again a nouveau mks hang for 3 minutes with X11 blocked later on:-(


thanks!
Comment 11 Xin Wei Hu 2010-07-16 09:13:04 UTC
(In reply to comment #10)
> (In reply to comment #8)
> > Yes, you have to run mkinitrd after update.
> 
> ACK: with udev-159-45.1.x86_64 and device-mapper-1.02.49-38.1.x86_64 all my fs
> labels show up again!
> 
> but again a nouveau mks hang for 3 minutes with X11 blocked later on:-(
> 
> 
> thanks!

Thanks for the feedback.

I'm using nouveau too, but X11's running fine.
Wondering if this worth another bug report ?