]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/03r5assem-failed
tests: add test that DDF marks missing devices as failed on assembly.
[thirdparty/mdadm.git] / tests / 03r5assem-failed
1
2 # Create an array, fail one device while array is active, stop array,
3 # then re-assemble listing the failed device first.
4
5 mdadm -CR $md1 -l5 -n4 $dev0 $dev1 $dev2 $dev3
6 check wait
7
8 echo 2000 > /sys/block/md1/md/safe_mode_delay
9 mkfs $md1
10 mdadm $md1 -f $dev0
11 mdadm -S $md1
12 mdadm -A $md1 $dev0 $dev1 $dev2 $dev3 || exit 1