Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 902137

Summary: <ignore> cannot be used more than once in mdadm.conf under ARRAY
Product: Red Hat Enterprise Linux 6 Reporter: Jakov Sosic <jsosic>
Component: mdadmAssignee: Jes Sorensen <Jes.Sorensen>
Status: CLOSED ERRATA QA Contact: XiaoNi <xni>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: lnovich, qcai, xni
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mdadm-3.2.6-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 12:03:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Backported patch that fixes problem for me. none

Description Jakov Sosic 2013-01-21 02:17:02 UTC
Created attachment 684011 [details]
Backported patch that fixes problem for me.

Description of problem:

mdadm.conf(5) under section ARRAY states that <ignore> flag can be used (complete with brackets) instead of a given array's name, to produce such behaviour that array would never be automatically assembled.

But, if mdadm.conf contains multiple <ignore> "names", mdadm will complainy just the same as it complains where two arrays have the same name. Although <ignore> is a special case flag and not an actual name. This makes difficult to ignore more than one array through mdadm.conf.

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

3.2.3-9.el6

How reproducible:

Every time

Steps to Reproduce:
1. Create mdadm.conf with at least two arrays, putting <ignore> instead of name
2. run mdadm -As
  
Actual results:

mdadm: Duplicate MD device names in conf file were found.


Expected results:

mdadm shouldn't complain about becasue <ignore> is special flag and not actual array name


Additional info:

Here is upstream info from mdadm developer:
http://git.neil.brown.name/git?p=mdadm.git;a=commit;h=13f2dd6be5618ff556f9a364903e4b95558115e1

I attach backported patch that fixes this issue

Comment 2 RHEL Program Management 2013-01-25 06:47:48 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Jakov Sosic 2013-01-25 07:32:49 UTC
What is procedure for bumping this to next release?!

Comment 4 Jes Sorensen 2013-02-05 15:36:43 UTC
I don't think this will make it into 6.4 - we can do a 6.4 z-stream fix if it
is deemed a serious problem, however you will have to request this through
your support representative.

It should make it to 6.5

Jes

Comment 6 Jes Sorensen 2013-05-13 15:17:08 UTC
Should be fixed in mdadm-3.2.6-1.el6

Comment 13 XiaoNi 2013-08-15 08:42:24 UTC
1. first check it in version 3.2.3

[root@localhost ~]# mdadm --version
mdadm - v3.2.3 - 23rd December 2011
[root@localhost ~]# cat /etc/mdadm.conf 
ARRAY <ignore> metadata=1.2 name=localhost.localdomain:0 UUID=a0ccc84c:f9da5a44:5422da60:215a3873
ARRAY <ignore> metadata=1.2 name=localhost.localdomain:1 UUID=b5f6664a:5c44f576:656b2750:3ded54e6
[root@localhost ~]# mdadm -As
mdadm: Devices UUID-a0ccc84c:f9da5a44:5422da60:215a3873 and UUID-b5f6664a:5c44f576:656b2750:3ded54e6 have the same name: <ignore>
mdadm: Duplicate MD device names in conf file were found.

2. check it in version 3.2.6 (I install the mdadm-3.2.6-1.el6 rpm package)
[root@localhost ~]# cat /etc/mdadm.conf 
ARRAY <ignore> metadata=1.2 name=localhost.localdomain:0 UUID=a0ccc84c:f9da5a44:5422da60:215a3873
ARRAY <ignore> metadata=1.2 name=localhost.localdomain:1 UUID=b5f6664a:5c44f576:656b2750:3ded54e6
[root@localhost ~]# mdadm -As
mdadm: No arrays found in config file or automatically

The problem was fixed.

Comment 14 errata-xmlrpc 2013-11-21 12:03:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1643.html