Bug 70353 - can't mount RAID1 partition by label
Summary: can't mount RAID1 partition by label
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mount
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-31 19:00 UTC by Alexandre Oliva
Modified: 2007-04-18 16:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-01-14 17:31:24 UTC
Embargoed:


Attachments (Terms of Use)
Driver program for the is_raid_partition function (new and improved) (2.41 KB, text/plain)
2002-08-07 22:17 UTC, Elliot Lee
no flags Details

Description Alexandre Oliva 2002-07-31 19:00:35 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722

Description of problem:
A RAID1 device cannot be mounted using its LABEL in /etc/fstab: mount says
there's more than one partition with that label and bails out.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Create an ext3 with LABEL=/l on a RAID 1 device with two partitions.
2.Add an entry to /etc/fstab to mount /l from LABEL=/l
3.Try to mount it.

Actual Results:  It will report a failure to mount /l because there is more than
one partition with such a label.

Expected Results:  It should just mount it.

Additional info:

I also had a (non-RAID) partition with label /l/x that might be getting mount
confused.  Even if this is the case, mounting them by label worked on 7.3.

I've verified that the RAID modules are loaded and cat /proc/mdstat shows
/dev/md0 (that contains the /l filesystem) is active.

Comment 1 Elliot Lee 2002-08-07 20:52:27 UTC
Followed instructions exactly, can't reproduce here with util-linux-2.11r-8

Please verify that you really don't have more than one mountable device with the '/l' label.

Comment 2 Alexandre Oliva 2002-08-07 21:08:27 UTC
I do.  All of the RAID 1 components are individually mountable.  I believe this
is why mount gets confused.  I see with strace that mount reads the labels of
all of the RAID component devices when looking for partition labels.  It should
probably skip RAID components when doing this.  Tested with util-linux-2.11r-8
and mount-2.11r-8.

Comment 3 Elliot Lee 2002-08-07 22:17:38 UTC
Created attachment 69404 [details]
Driver program for the is_raid_partition function (new and improved)

Comment 4 Elliot Lee 2002-08-07 22:19:51 UTC
util-linux-2.11r-9 (in beehive/rawhide) has, I think, the fixes for my braindead detection. If it 
doesn't, please let me know.

Comment 5 Alexandre Oliva 2002-08-07 22:28:11 UTC
The driver program has correctly detected all my raid devices, and noticed that
the non-raid ones weren't.  I'll try the new RPMS after they show up in rawhide.
 Thanks for looking into this!

Comment 6 Alexandre Oliva 2002-08-08 12:33:39 UTC
Confirmed fixed in util-linux-2.11r-9.  Now similar code has to be merged into
nash, so that RAID1 root can be properly mounted.  Thanks!

Comment 7 Kambiz Aghaiepour 2002-09-11 21:31:02 UTC
Can you give any indication as to when an errata will be available for 7.2?

Thanks
Kambiz


Comment 8 Elliot Lee 2003-01-14 17:31:24 UTC
Not planning on it.


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