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:
"md-create" fails to create Linux md (RAID) device. This works well on rhel7.1-x86_64.
Version-Release number of selected component (if applicable):
libguestfs-1.28.1-1.23.aa7a.aarch64
kernel-3.19.0-0.75.aa7a.aarch64
How reproducible:
Always
Steps to Reproduce:
1. Create three images.
# qemu-img create -f raw gs-md1.img 5G
Formatting 'gs-md1.img', fmt=raw size=5368709120
# qemu-img create -f raw gs-md2.img 5G
Formatting 'gs-md2.img', fmt=raw size=5368709120
# qemu-img create -f raw gs-md3.img 5G
Formatting 'gs-md3.img', fmt=raw size=5368709120
2. # guestfish
><fs> add gs-md1.img
><fs> add gs-md2.img
><fs> add gs-md3.img
><fs> run
100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00
3. create Linux md (RAID) device
><fs> md-create md11 "/dev/sda /dev/sdb /dev/sdc" missingbitmap:0x4 chunk:8192 level:raid6
libguestfs: error: md_create: mdadm: md11: mdadm: Defaulting to version 1.2 metadata
mdadm: RUN_ARRAY failed: Invalid argument
Actual results:
Described as step.3.
Expected results:
"md-create" can create Linux md (RAID) device successfully and can get the md info like below.
><fs> list-md-devices
/dev/md127
Additional info:
Comment 2Richard W.M. Jones
2015-05-15 15:33:32 UTC
One line reproducer:
guestfish -N disk:5G -N disk:5G -N disk:5G \
md-create md11 "/dev/sda /dev/sdb /dev/sdc" missingbitmap:0x4 chunk:8192 level:raid6
The error is reproducible on Rawhide/aarch64 too.
I believe this is caused by the larger page size on aarch64. Page
size on aarch64 is 64K, whereas on x86 it is 4K.
If you increase the chunk: parameter to 65536, then the error
goes away. ie This command works fine (on Rawhide/aarch64):
guestfish -N disk:5G -N disk:5G -N disk:5G \
md-create md11 "/dev/sda /dev/sdb /dev/sdc" missingbitmap:0x4 chunk:65536 level:raid6
So this is either NOTABUG or a bug in mdadm depending on your
viewpoint.
Comment 3Richard W.M. Jones
2015-09-23 15:21:57 UTC
Closing NOTABUG per comment 2. It's a limitation of mdadm when
used with a large (64K) page size as found on aarch64.