Bug 159497 - Mounting of LVM partitions by LABEL fails with duplicate error
Mounting of LVM partitions by LABEL fails with duplicate error
Status: CLOSED DUPLICATE of bug 76467
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: mount (Show other bugs)
4.0
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Karel Zak
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-02 19:48 EDT by zweers
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-02 20:06:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description zweers 2005-06-02 19:48:38 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

Description of problem:
I am unable to use ext2 labels to mount lvm based partitions.  It fails with a LABEL=<label> duplicate - not mounted.

It appears to be based on the partition being references in multiple searches in the /proc filesystem for mount points.

Version-Release number of selected component (if applicable):
util-linux-2.12a-16.EL4.6 lvm2-2.00.31-1.0.RHEL4

How reproducible:
Always

Steps to Reproduce:
1. create lvm partition : lvcreate -n test -L 128M lvm0
2. format partition : mke2fs /dev/lvm0/test
3. use e2label to label partition : e2label /dev/lvm0/test testlabel
4. mount LABEL=testlabel /mnt

  

Actual Results:  # mount LABEL=testlabel /mnt
mount: LABEL=testlabel duplicate - not mounted


Expected Results:  Successful mouting

Additional info:

# strace -eopen mount LABEL=testlabel /mnt
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib64/tls/libc.so.6", O_RDONLY)  = 3
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
open("/dev/null", O_RDWR)               = 3
open("/proc/evms/volumes", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/proc/partitions", O_RDONLY)      = 3
open("/dev/sda1", O_RDONLY)             = 4
open("/dev/sda2", O_RDONLY)             = 4
open("/dev/sda3", O_RDONLY)             = 4
open("/dev/sda5", O_RDONLY)             = 4
open("/dev/dm-0", O_RDONLY)             = 4
open("/dev/dm-1", O_RDONLY)             = 4
open("/dev/dm-2", O_RDONLY)             = 4
open("/dev/dm-3", O_RDONLY)             = 4
open("/proc/lvm/VGs", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/dev/mapper", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
open("/dev/mapper/lvm0-test", O_RDONLY) = 4
open("/dev/mapper/lvm0-varspoolimap", O_RDONLY) = 4
open("/dev/mapper/lvm0-varlibimap", O_RDONLY) = 4
open("/dev/mapper/lvm0-varlog", O_RDONLY) = 4
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/util-linux.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
mount: LABEL=testlabel duplicate - not mounted
Comment 1 zweers 2005-06-02 19:49:15 EDT
Obvious fix is to mount by path and not by label.
Comment 2 Karel Zak 2005-06-02 20:06:55 EDT

*** This bug has been marked as a duplicate of 76467 ***

Note You need to log in before you can comment on or make changes to this bug.