Whamcloud - gitweb
Clean up llmount.sh to use new helper methods
[fs/lustre-release.git] / lustre / tests / llmount.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`"
4 . $SRCDIR/common.sh
5
6 setup
7
8 $PTLCTL <<EOF
9 mynid localhost
10 setup tcp
11 connect localhost 1234
12 add_uuid self
13 add_uuid mds
14 add_uuid ost
15 quit
16 EOF
17
18 new_fs ext2 /tmp/ost 10000
19 OST=$LOOPDEV
20
21 MDSFS=ext2
22 new_fs ${MDSFS} /tmp/mds 10000
23 MDS=$LOOPDEV
24
25 echo 8291 > /proc/sys/obd/debug
26
27 $R/usr/src/obd/utils/obdctl <<EOF
28 device 0
29 attach mds
30 setup ${MDS} ${MDSFS}
31 device 1
32 attach obdext2
33 setup ${OST}
34 device 2
35 attach ost
36 setup 1
37 device 3
38 attach osc
39 setup -1
40 quit
41 EOF
42
43 mount -t lustre_light -o device=3 none /mnt/obd