blob: 6407c320fd65ccd743adbd0fb42b3df90a4836be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# create a simple raid0
mdadm -CR $md0 -l raid0 -n3 $dev0 $dev1 $dev2
check raid0
testdev $md0 3 $mdsize2_l 512
mdadm -S $md0
# verify raid0 with layouts fail for 0.90
mdadm -CR $md0 -e0.90 -l0 -n4 $dev0 $dev1 $dev2 $dev3
check opposite_result
# now with no superblock
mdadm -B $md0 -l0 -n5 $dev0 $dev1 $dev2 $dev3 $dev4
check raid0
testdev $md0 5 $size 512
mdadm -S $md0
if [ "$LINEAR" != "yes" ]; then
echo -ne 'skipping... '
exit 0
fi
# now same again with different chunk size
for chunk in 4 32 256
do
mdadm -CR $md0 -e0.90 -l linear --chunk $chunk -n3 $dev0 $dev1 $dev2
check linear
testdev $md0 3 $mdsize0 $chunk
mdadm -S $md0
# now with version-1 superblock
mdadm -CR $md0 -e1.0 -l0 -c $chunk -n4 $dev0 $dev1 $dev2 $dev3
check raid0
testdev $md0 4 $mdsize1 $chunk
mdadm -S $md0
# now with no superblock
mdadm -B $md0 -l0 -n5 --chun=$chunk $dev0 $dev1 $dev2 $dev3 $dev4
check raid0
testdev $md0 5 $size $chunk
mdadm -S $md0
done
exit 0
|