Red Hat Bugzilla – Bug 129583
device labels do not work with LVM
Last modified: 2007-11-30 17:10:47 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux 2.6.6-1.435.2.3smp) (KHTML, like Gecko)
Description of problem:
When using device labels on filesystem, that are on a LVM volume, mount does not find the correct devices.
This has been tested/verified on Fedora Core 2, but should also exist on RHEL3 and Fedora Core 1
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a LVM volume
2. mkfs.ext3 -L<LABEL> /dev/mapper/<LV>
3. create an entry in /etc/fstab with a label instead a device
4. try to mount it
Actual Results: mount: no such partition found
Expected Results: mount should have mounted the volume
I know #123295 , but:
- shouldn't be the behavior in /etc/fstab be consistant ?
- why does mount look for LVM1/LVM2/evms volumes, but at the wrong places (/dev/dm-0 by going through /proc/partitions) ?
Fixing the behavior of mount (readdir /dev/mapper) seems to be a easier way, than having confusion about on which devices device labels are possible and on which not.
Created attachment 102636 [details]
mount-by-label device-mapper support
Created attachment 102637 [details]
avoid mount-by-label segfaults if there exist devices without labels
Patches added to cvs for inclusion in next RPM.
Thanks, that fixes the problem.
Compiled and tested under Fedora Core 2 against util-linux-2.12.