]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/01r5fail
--wait or -W will wait for resync activity to finish on the given devices.
[thirdparty/mdadm.git] / tests / 01r5fail
1
2
3 # create a raid5, fail and remove a drive during initial sync
4 # Add two more, fail and remove one
5 # wait for sync to complete, fail, remove, re-add
6
7 mdadm -CR $md0 -l5 -n4 $dev0 $dev1 $dev2 $dev3
8 check recovery
9 mdadm $md0 --fail $dev3
10 sleep 1
11 check nosync
12 check state UUU_
13
14 mdadm $md0 --add $dev4 $dev5
15 check recovery
16 check wait
17 mdadm $md0 --fail $dev0
18 mdadm $md0 --remove $dev3 $dev0
19 check recovery
20 check state _UUU
21
22 mdadm $md0 -a $dev3
23 check recovery
24 check wait
25 check state UUUU
26
27 mdadm -S $md0