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 1221571 - aarch64: md-create fails to create Linux md (RAID) device
Summary: aarch64: md-create fails to create Linux md (RAID) device
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.1
Hardware: aarch64
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-14 11:42 UTC by Hu Zhang
Modified: 2015-09-23 15:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-23 15:21:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hu Zhang 2015-05-14 11:42:18 UTC
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 2 Richard 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 3 Richard 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.


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