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 1741644

Summary: Support for MD cluster RAID1/10 - userspace
Product: Red Hat Enterprise Linux 8 Reporter: Jonathan Earl Brassow <jbrassow>
Component: mdadmAssignee: XiaoNi <xni>
Status: CLOSED ERRATA QA Contact: ChanghuiZhong <czhong>
Severity: unspecified Docs Contact:
Priority: high    
Version: 8.1CC: czhong, dledford, dmilburn, hwkernel-mgr, ncroxon, xni
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mdadm-4.1-10.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 17:00:47 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:
Bug Depends On: 1777443    
Bug Blocks: 1741642, 1810577, 2166683    
Attachments:
Description Flags
Current cluster RAID1 test script none

Description Jonathan Earl Brassow 2019-08-15 17:22:57 UTC
This bug is here to ensure:
1) proper design and implementation of MD cluster RAID1
2) articulate testing needs for $subject
3) articulate needs for documentation of $subject

Comment 1 Jonathan Earl Brassow 2019-08-15 17:34:13 UTC
Created attachment 1604123 [details]
Current cluster RAID1 test script

Comment 2 Jonathan Earl Brassow 2019-08-15 17:35:23 UTC
Current state of testing supplied by Changhui Zhong <czhong> - Associate Quality Engineer,Kernel QE

Hi,Brassow Jonathan

Yes, I am the person  of the MD test. My test is a simple automation script written for  https://bugzilla.redhat.com/show_bug.cgi?id=1654482 ,this automation is to modify the kernel configuration so that the md_cluster module can enabled in RHEL8 kernels, then create a cluster with one node and create MD_RAID1.

I used a single server to create cluster and raid1, not use multiple servers to create  cluster.If you want to achieve when involve failing systems while ensuring other systems continue to operate and coordinating drive failures,that I need a real cluster environment with multiple nodes.if I have the permissions of your test environment, I can experiment on it.

Which detailed functional test points do you want to test for cluster MD RAID1?

The test machine I am using is a single server that is immediately acquired from the beaker machine pool, which may be different from the test environment you are using.

I uploaded my script main.sh in the attachment. feel free to contact me if you have any questions.

Thanks,
Changhui

[See attachment: 'Current cluster RAID1 test script' from comment 1]

Comment 11 ChanghuiZhong 2020-02-13 01:47:10 UTC
Hi,all

================================================================================
 Package           Architecture Version            Repository              Size
================================================================================
Installing:
 mdadm             x86_64       4.1-10.el8         beaker-BaseOS          450 k

test passed with mdadm-4.1-10.el8,test cases related with cluster md raid1 and all test passed successfully.
https://beaker.engineering.redhat.com/recipes/7894615#task106023745

[root@intel-mahobay-02 Cluster_md_raid]# ll
total 104
-rwxr-xr-x. 1 root root  1517 Feb 10 01:00 case1r1_create_md_raid1.sh
-rw-r--r--. 1 root root  1806 Feb 10 01:00 case1r1_grow_add.sh
-rw-r--r--. 1 root root  1890 Feb 10 01:00 case1r1_grow_bitmap-switch.sh
-rw-r--r--. 1 root root   748 Feb 10 01:00 case1r1_grow_resize.sh
-rw-r--r--. 1 root root  1065 Feb 10 01:00 case2r1_manage_add.sh
-rw-r--r--. 1 root root   996 Feb 10 01:00 case2r1_manage_add-spare.sh
-rw-r--r--. 1 root root   862 Feb 10 01:00 case2r1_manage_re-add.sh
-rw-r--r--. 1 root root   754 Feb 10 01:00 case3r1_switch_recovery.sh
-rw-r--r--. 1 root root   665 Feb 10 01:00 case3r1_switch_resync.sh
-rw-r--r--. 1 root root  1485 Feb 10 01:00 case4r1_add_remove_disk.sh
-rw-r--r--. 1 root root  2321 Feb 10 01:00 case4r1_clster_IO.sh
-rw-r--r--. 1 root root   970 Feb 10 01:00 case4r1_disk_failure.sh
-rwxr-xr-x. 1 root root  2900 Feb 10 01:00 create_cluster.sh
-rwxr-xr-x. 1 root root  3645 Feb 10 01:00 create_storage.sh
-rw-------. 1 root root  1224 Feb 10 02:36 ks.cfg
-rwxr-xr-x. 1 root root  5145 Feb 10 01:09 kvm-install.sh
-rwxr-xr-x. 1 root root 13770 Feb 10 01:00 libcluster.sh
-rw-r--r--. 1 root root  3640 Feb 10 01:00 Makefile
-rw-r--r--. 1 root root  1000 Feb 10 01:00 PURPOSE
-rwxr-xr-x. 1 root root  1236 Feb 10 01:00 runtest.sh
-rwxr-xr-x. 1 root root  4885 Feb 10 01:00 tc.sh
[root@intel-mahobay-02 Cluster_md_raid]# 

The test cases are simple.we will add more test cases in the future to cover the tests of cluster md raid1 and raid10

Comment 13 errata-xmlrpc 2020-04-28 17:00:47 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.

https://access.redhat.com/errata/RHBA-2020:1890