]>
Commit | Line | Data |
---|---|---|
5e7519fa | 1 | |
5e7519fa NB |
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 | ||
dab6685f NB |
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 | |
5e7519fa | 11 | sleep 1 |
dab6685f NB |
12 | check nosync |
13 | check state U___ | |
14 | mdadm $md0 --add $dev4 $dev3 | |
15 | check recovery | |
5e7519fa | 16 | # there could be two separate recoveries, one for each dev |
dab6685f NB |
17 | check wait |
18 | check wait | |
19 | mdadm $md0 --remove $dev2 $dev1 | |
20 | check nosync | |
21 | check state UUU_ | |
5e7519fa | 22 | |
dab6685f NB |
23 | mdadm $md0 -a $dev2 |
24 | check recovery | |
25 | check wait | |
26 | check state UUUU | |
5e7519fa | 27 | |
dab6685f | 28 | mdadm -S $md0 |