On 12/6/18 7:58 AM, Gi-Oh Kim wrote: >> >> For your information, I am attaching my test script and the result on >> my desktop. >> mdadm version is 4.1 and commit 20e8fe52e7190b3ffda127566852eac2eb7fa1f7. >> >> gohkim@ws00837:~/work/tools/mdadm-mainstream$ cat a.sh >> if [ -b "/dev/md111" ]; then >> ./mdadm -S /dev/md111 >> fi >> ./mdadm -C /dev/md111 --failfast -l1 -n2 /dev/ram0 /dev/ram1 >> ./mdadm /dev/md111 --fail /dev/ram0 >> ./mdadm /dev/md111 --remove /dev/ram0 >> ./mdadm -S /dev/md111 >> ./mdadm -A /dev/md111 /dev/ram0 /dev/ram1 >> if [ -b "/dev/md111" ]; then >> ./mdadm -D /dev/md111 >> echo "Succeed to create md111" >> else >> echo "Fail to create md111" >> fi >> gohkim@ws00837:~/work/tools/mdadm-mainstream$ git describe >> mdadm-4.0-316-g20e8fe5 >> gohkim@ws00837:~/work/tools/mdadm-mainstream$ sudo bash a.sh >> [sudo] password for gohkim: >> mdadm: stopped /dev/md111 >> mdadm: /dev/ram0 appears to be part of a raid array: >> level=raid1 devices=2 ctime=Thu Dec 6 12:56:05 2018 >> mdadm: Note: this array has metadata at the start and >> may not be suitable as a boot device. If you plan to >> store '/boot' on this device please ensure that >> your boot-loader understands md/v1.x metadata, or use >> --metadata=0.90 >> mdadm: /dev/ram1 appears to be part of a raid array: >> level=raid1 devices=2 ctime=Thu Dec 6 12:56:05 2018 >> Continue creating array? y >> mdadm: Fail create md111 when using /sys/module/md_mod/parameters/new_array >> mdadm: Defaulting to version 1.2 metadata >> mdadm: array /dev/md111 started. >> mdadm: set /dev/ram0 faulty in /dev/md111 >> mdadm: hot removed /dev/ram0 from /dev/md111 >> mdadm: stopped /dev/md111 >> mdadm: Fail create md111 when using /sys/module/md_mod/parameters/new_array >> mdadm: ignoring /dev/ram1 as it reports /dev/ram0 as failed >> mdadm: /dev/md111 assembled from 1 drive - need all 2 to start it (use >> --run to insist). >> mdadm: Array associated with md device /dev/md111 does not exist. >> Succeed to create md111 >> gohkim@ws00837:~/work/tools/mdadm-mainstream$ cat /proc/mdstat >> Personalities : [raid1] >> unused devices: <none> >> > > I am really sorry to confuse you. > That test case is for "Assemble: mask FAILFAST and WRITEMOSTLY flags > when finding the most recent device" patch. No worries! Would you be up for creating a test target for this we can add to the test suits in tests/ ? Cheers, Jes