Bug 243532

Summary: mpath volumes in /etc/fstab should use names instead of labels
Product: Red Hat Enterprise Linux 5 Reporter: Bryn M. Reeves <bmr>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED ERRATA QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.0CC: bmarzins, i-kitayama, junichi.nomura, k.georgiou, kueda
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0644 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-07 17:21:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 185852    

Description Bryn M. Reeves 2007-06-09 14:31:39 UTC
Description of problem:
Anaconda configures multipath volumes in /etc/fstab to use mount-by-label. This
can cause boot problems when individual paths are visible in /dev. The same
problem can happen with LVM & MD devices if labels are used - anaconda uses the
real device name in these cases as the naming is persistent. Need to do the same
thing for multipath.

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

How reproducible:
100%

Steps to Reproduce:
1. Install a multipath system using "linux mpath"
2. Create some file systems directly on mpath partitions
3. Reboot & check /etc/fstab
  
Actual results:
Boot fails at file system check due to duplicate labels.

The installed /etc/fstab contains, for e.g.:

LABEL=/boot        /boot    ext3     defaults 1 2

Expected results:
System boots correctly.

The installed /etc/fstab contains, for e.g.:

/dev/mpath/mpath0p1        /boot    ext3     defaults 1 2

Comment 3 Jun'ichi NOMURA 2007-06-15 03:28:06 UTC
Not using label might be a solution.

But there is another solution: modifying e2fsprogs and others
to understand the stacked device.
A patch for e2fsprogs is provided in this BZ (comment#19):
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=156324



Comment 4 Bryn M. Reeves 2007-06-15 08:22:11 UTC
I think this is probably a better way of doing it, but it's mount that needs to
understand the stacked devices - in RHEL5 it's provided by util-linux.

Seems this would increase the number of packages that need to be touched for
this feature when we're already on a fairly tight schedule.


Comment 5 David Cantrell 2007-06-18 18:23:11 UTC
Anaconda now writes /dev/mpath* names to /etc/fstab even if there is a
filesystem label.  Moving state to modified.

Comment 6 RHEL Program Management 2007-06-18 18:24:48 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 10 errata-xmlrpc 2007-11-07 17:21:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0644.html