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.
Description of problem:
New version of mdadm, which was added to RedHat 8.7 contains defect. We are working on resolution. This bug is being opened to highlight that defect was found and fix is in progress. Mdadm will need to be updated to the version with fix, when fix will be done. I will report it in comment.
Version-Release number of selected component (if applicable):
mdadm - v4.2 - 2021-12-30 - 5
How reproducible:
always
Steps to Reproduce:
1. Create container and RAID
# mdadm -CR /dev/md/imsm -e imsm -n2 /dev/nvme0n1 /dev/nvme1n1
# mdadm -CR /dev/md/vol -l0 --chunk=16 -n2 /dev/nvme0n1 /dev/nvme1n1
2. Wait for resync if required.
3. Try process migration with incorrect chunk size
# mdadm --grow /dev/md/vol --chunk=256
Actual results:
- mdadm returns expected output but reshape is started with 0K/sec speed
- mdadm output:
mdadm: freesize and superblock must be set for autolayout, aborting
mdadm: level of /dev/md/r0d2s16_A_0 changed to raid4
mdadm: platform does not support a chunk size of: 256
mdadm: IMSM RAID geometry validation failed. Array r0d2s16_A activation is blocked.
Expected results:
- mdadm returns output containing “ “mdadm: platform does not support a chunk size of: 256"”
- reshape does not start
I have a fix, but I need more testing time on different configurations.
As a workaround:
After this command "mdadm -CR /dev/md/vol -l0 --chunk=16 -n2 /dev/nvme0n1 /dev/nvme1n1" is executed,
there will be a new file, in the filesystem under "/sys/block/md12x/md/sync_max"
Where the "md12x" will need to be replaced with the letter the filesystem created. My example will use md126.
The workaround is to echo "max" into this new file.
echo max > /sys/block/md126/md/sync_max
-Nigel
(In reply to kinga.tanska from comment #3)
> Hi,
>
> I've sent fix to upstream review
> (https://marc.info/?l=linux-raid&m=166626666516136&w=2 ).
> I will post comment here if patch will be taken into upstream.
>
> Kinga
Hi Kinga
I can't open the link in comment3.
Is it the right patch to fix this bug:
[PATCH v2] super-intel: make freesize not required for chunk size migration
This patch hasn't been merged by upstream. There is a risk that this bug
can't be fixed in time. From the description, it should not affect the
normal use, right? If so, can we push this to 8.9?
Thanks
Xiao
Hi,
yes, the patch that you mentioned fixed it, and it is not yet merged.
It affects few scenarios of reshape, but not the normal use. It's ok to not have it in 8.7.
I hope that it will be merged soon and pushed to 8.8 and 8.9.
Regards
Kinga
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-2023:2998