summaryrefslogtreecommitdiffstats
path: root/tests/04r1update
blob: e22965bccd0a115c83963d4f6596de5daa0d60b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set -i

# create a raid1 array, let it sync, then re-assemble with a force-sync

mdadm -CR $md0 -l1 -n2 $dev0 $dev1
check wait
mdadm -S $md0

mdadm -A $md0 $dev0 $dev1
check nosync
mdadm -S $md0

mdadm -A $md0 -U resync $dev0 $dev1
check resync
mdadm -S $md0