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 2120690 - DDF RAID array is not automatically assembled
Summary: DDF RAID array is not automatically assembled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: mdadm
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: XiaoNi
QA Contact: Fine Fan
URL:
Whiteboard:
Depends On:
Blocks: 2071990 2123356
TreeView+ depends on / blocked
 
Reported: 2022-08-23 14:36 UTC by Jan Stodola
Modified: 2022-11-15 13:12 UTC (History)
5 users (show)

Fixed In Version: mdadm-4.2-6.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2123356 (view as bug list)
Environment:
Last Closed: 2022-11-15 11:19:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-131999 0 None None None 2022-08-23 14:44:41 UTC
Red Hat Product Errata RHBA-2022:8338 0 None None None 2022-11-15 11:19:23 UTC

Description Jan Stodola 2022-08-23 14:36:16 UTC
Description of problem:
A DDF RAID array is not automatically assembled during boot. This is not a problem on RHEL-8.7 with the same setup, where the array is assembled automatically.


In the following example, vdb and vdc are the array members, which were created by the following commands (commands from bug 2063791#c0):

# mdadm --create /dev/md/ddf --name=ddf --level container --raid-disks=2 --metadata=ddf /dev/vdb /dev/vdc
# mdadm --create /dev/md/vol0 --name=vol0 --level raid1 --raid-disks=2 /dev/md/ddf

After reboot:

[root@localhost ~]# lsblk 
NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sr0            11:0    1 1024M  0 rom  
vda           252:0    0   20G  0 disk 
├─vda1        252:1    0    1G  0 part /boot
└─vda2        252:2    0   19G  0 part 
  ├─rhel-root 253:0    0   17G  0 lvm  /
  └─rhel-swap 253:1    0    2G  0 lvm  [SWAP]
vdb           252:16   0   10G  0 disk 
vdc           252:32   0   10G  0 disk 
[root@localhost ~]# blkid
/dev/mapper/rhel-swap: UUID="0decee34-0f1d-45b0-9d3f-8009b231bc55" TYPE="swap"
/dev/vdb: UUID="Linux-MDM-^M--M->M-o" TYPE="ddf_raid_member"
/dev/mapper/rhel-root: UUID="9a9fe13e-ce4e-4652-b721-19be708ef989" BLOCK_SIZE="512" TYPE="xfs"
/dev/vdc: UUID="Linux-MDM-^M--M->M-o" TYPE="ddf_raid_member"
/dev/vda2: UUID="7Tuwmx-f3J1-Kz3i-aHyN-hpPP-2ND9-8re8aY" TYPE="LVM2_member" PARTUUID="038a6f7d-02"
/dev/vda1: UUID="01a0d35f-9154-4225-abec-f166f84593d9" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="038a6f7d-01"
[root@localhost ~]# cat /proc/mdstat 
Personalities : 
unused devices: <none>
[root@localhost ~]#


By comparing RHEL-8.7 and RHEL-9.1 systems, the following lines were found missing in /usr/lib/udev/rules.d/65-md-incremental.rules:


@@ -42,8 +42,6 @@
 ENV{nodmraid}=="?*", GOTO="md_imsm_inc_end"
 SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="isw_raid_member", \
        RUN+="/sbin/mdadm -I $env{DEVNAME}"
-SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="ddf_raid_member", \
-       RUN+="/sbin/mdadm -I $env{DEVNAME}"
 SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}=="?*", \
        ENV{ID_FS_TYPE}=="isw_raid_member", \
        RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"

After adding the two missing lines and restarting the system, the array was successfully assembled.


This problem also affects the system installation, where the array is not assembled and visible in the installer.


Version-Release number of selected component (if applicable):
RHEL-9.1
mdadm-4.2-4.el9

How reproducible:
Always

Steps to Reproduce:
1. See above

Actual results:
DDF RAID array not assembled automatically.

Expected results:
DDF RAID array assembled automatically.

Additional info:
The problem was found during verification of bug 2109030.

Comment 1 XiaoNi 2022-08-29 02:35:03 UTC
Hi Jan

Thanks for reporting this. It looks like the problem exists at the beginning
of RHEL9. As far as I know, there are few customers that use ddf raid. Now
we have entered the period that it needs blocker/exception for 9.1 bug. So
I plan to fix it in rhel9.2 

Is it ok for you?

Thanks
Xiao

Comment 12 errata-xmlrpc 2022-11-15 11:19:13 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 (mdadm bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2022:8338


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