]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/01r5fail
Add test suite and release
[thirdparty/mdadm.git] / tests / 01r5fail
CommitLineData
5e7519fa
NB
1
2set -e
3
4# create a raid5, fail and remove a drive during initial sync
5# Add two more, fail and remove one
6# wait for sync to complete, fail, remove, re-add
7
8$mdadm -CR $md0 -l5 -n4 $dev0 $dev1 $dev2 $dev3
9$check recovery
10$mdadm $md0 --fail $dev3
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