2 # Make a raid1, add a device, then remove it again.
4 mdadm -CR $md0 -l1 -n2 -x1 $dev0 $dev1 $dev2
14 mdadm $md0 --fail $dev0
17 mdadm --grow $md0 -n 2
21 # same again for version-1
24 mdadm -CR $md0 -l1 -n2 -e1.2 -x1 $dev0 $dev1 $dev2
29 mdadm --grow $md0 -n 3
34 mdadm $md0 --fail $dev0
37 mdadm --grow $md0 -n 2