04c1ca5f29
Some systems do not ship the md multipath module. If not available simply skip any multipath tests. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
30 lines
434 B
Plaintext
30 lines
434 B
Plaintext
|
|
#
|
|
# create a multipath, and fail and stuff
|
|
|
|
if [ "$MULTIPATH" != "yes" ]; then
|
|
echo -ne 'skipping... '
|
|
exit 0
|
|
fi
|
|
|
|
mdadm -CR $md1 -l multipath -n2 $path0 $path1
|
|
|
|
testdev $md1 1 $mdsize12 1
|
|
|
|
mdadm $md1 -f $path0
|
|
rotest $md1
|
|
testdev $md1 1 $mdsize12 1
|
|
|
|
mdadm $md1 -r $path0
|
|
mdadm $md1 -a $path0
|
|
|
|
rotest $md1
|
|
testdev $md1 1 $mdsize12 1
|
|
|
|
mdadm $md1 -f $path1
|
|
mdadm $md1 -r $path1
|
|
rotest $md1
|
|
testdev $md1 1 $mdsize12 1
|
|
|
|
mdadm -S $md1
|