Whamcloud - gitweb
Update scripts to use name2dev.
[fs/lustre-release.git] / lustre / tests / llmount.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`"
4 . $SRCDIR/common.sh
5
6 NETWORK=tcp
7 LOCALHOST=localhost
8 SERVER=localhost
9 PORT=1234
10
11 setup_portals
12 setup_lustre
13 echo -n "Hit return to continue..."
14 read
15
16 new_fs ext2 /tmp/ost 10000
17 OST=$LOOPDEV
18 MDSFS=ext2
19 new_fs ${MDSFS} /tmp/mds 10000
20 MDS=$LOOPDEV
21
22 echo 0xffffffff > /proc/sys/portals/debug
23
24 $OBDCTL <<EOF
25 device 0
26 attach mds MDSDEV
27 setup ${MDS} ${MDSFS}
28 device 1
29 attach obdfilter OBDDEV
30 setup ${OST} ext2
31 device 2
32 attach ost OSTDEV
33 setup 1
34 device 3
35 attach ptlrpc RPCDEV
36 setup
37 device 4
38 attach ldlm LDLMDEV
39 setup
40 device 5
41 attach osc OSCDEV
42 setup -1
43 quit
44 EOF
45
46 mount -t lustre_lite -o device=`$OBDCTL name2dev OSCDEV` none /mnt/lustre