summaryrefslogtreecommitdiffstats
path: root/tests/06name
blob: 9ec3437bfe5ae5de10f61e7978ec07af6402b4ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set -x

# create an array with a name

is_raid_foreign $md0

mdadm -CR $md0 -l0 -n2 --metadata=1 --name="Fred" $dev0 $dev1

if [ $is_foreign == "no" ]; then
	mdadm -E $dev0 | grep "Name : $(hostname):Fred" > /dev/null || exit 1
	mdadm -D $md0 | grep "Name : $(hostname):Fred" > /dev/null || exit 1
else
	mdadm -E $dev0 | grep "Name : Fred" > /dev/null || exit 1
	mdadm -D $md0 | grep "Name : Fred" > /dev/null || exit 1
fi
mdadm -S $md0

mdadm -A $md0 --name="Fred" $devlist
#mdadm -Db $md0
mdadm -S $md0