]> git.ipfire.org Git - thirdparty/mdadm.git/blob - tests/00raid10
Add 'quite' option and tidy up some tests.
[thirdparty/mdadm.git] / tests / 00raid10
1 set -ex
2
3 # Create some raid10 arrays, all with 6 devices and one spare
4 devs="$dev0 $dev1 $dev2 $dev3 $dev4 $dev5 $dev6"
5
6 for lo in n2 n3 f2 f3
7 do
8 cm=1
9 case $lo in
10 f2 ) m=3 cm=2;;
11 f3 ) m=2 cm=3;;
12 n2 ) m=3;;
13 n3 ) m=2;;
14 esac
15 mdadm --create --run --level=raid10 --layout $lo --raid-disks 6 -x 1 $md0 $devs
16 check resync ; check raid10
17 testdev $md0 $m $mdsize0 $[64*cm]
18 mdadm -S $md0
19 done