]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/01r1fail
Create a container member
[thirdparty/mdadm.git] / tests / 01r1fail
1
2 # create a raid1, fail and remove a drive during initial sync
3 # Add two more, fail and remove one
4 # wait for sync to complete, fail, remove, re-add
5
6 mdadm -CR $md0 -l1 -n4 $dev0 $dev1 $dev2 missing
7 check resync
8 mdadm $md0 --fail $dev2
9 check resync
10 mdadm $md0 --fail $dev1
11 sleep 1
12 check nosync
13 check state U___
14 mdadm $md0 --add $dev4 $dev3
15 check recovery
16 # there could be two separate recoveries, one for each dev
17 check wait
18 check wait
19 mdadm $md0 --remove $dev2 $dev1
20 check nosync
21 check state UUU_
22
23 mdadm $md0 -a $dev2
24 check recovery
25 check wait
26 check state UUUU
27
28 mdadm -S $md0