File: 00multipath

package info (click to toggle)
mdadm 4.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,948 kB
  • sloc: ansic: 46,817; sh: 2,481; makefile: 281; python: 44
file content (29 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

#
# 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