summaryrefslogtreecommitdiffstats
path: root/tests/02lineargrow
blob: d17e2326d13f52daac75698015405cdd81f034d7 (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
# create a liner array, and add more drives to to.

if [ "$LINEAR" != "yes" ]; then
  echo -ne 'skipping... '
  exit 0
fi

for e in 0.90 1 1.1 1.2
do
  case $e in
	0.90 ) sz=$mdsize0 ;;
	1 ) sz=$mdsize2_l ;;
	1.0 ) sz=$mdsize1 ;;
	1.1 ) sz=$mdsize1_l ;;
	1.2 ) sz=$mdsize2_l ;;
  esac
  mdadm -CRf $md0 --level linear -e $e --raid-disks=1 $dev1
  testdev $md0 1 $sz 1

  mdadm --grow $md0 --add $dev2
  testdev $md0 2 $sz 1

  mdadm --grow $md0 --add $dev3
  testdev $md0 3 $sz 1

  mdadm -S $md0
  mdadm --zero /dev/loop2
  mdadm --zero /dev/loop3
done