summaryrefslogtreecommitdiffstats
path: root/tests/05r1-re-add-nosuper
blob: 750d7c1496133dea1a8fda7ea06197a13bd3b004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# create a raid1 without superblock, remove a drive, and readd it.
# readd should fail.
#
mdadm -B $md0 -l1 -n2 -d1 $dev1 $dev2
check resync
check wait
testdev $md0 1 $size 1
sleep 4

mdadm $md0 -f $dev2
sleep 1
mdadm $md0 -r $dev2
if mdadm $md0 --re-add $dev2; then
	err "re-add should fail"
fi

mdadm -S $md0