Whamcloud - gitweb
- minor further changes to the test script:
[fs/lustre-release.git] / lustre / tests / llrmount.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
14 old_fs ext2 /tmp/ost 80000
15 OST=$LOOPDEV
16 MDSFS=ext2
17 old_fs ${MDSFS} /tmp/mds 10000
18 MDS=$LOOPDEV
19
20 echo 0xffffffff > /proc/sys/portals/debug
21
22 $OBDCTL <<EOF
23 device 0
24 attach mds MDSDEV
25 setup ${MDS} ${MDSFS}
26 device 1
27 attach obdext2 OBDEXT2DEV
28 setup ${OST}
29 device 2
30 attach ost OSTDEV
31 setup 1
32 device 3
33 attach ptlrpc RPCDEV
34 setup
35 device 4
36 attach ldlm LDLMDEV
37 setup
38 device 5
39 attach osc OSCDEV
40 setup -1
41 quit
42 EOF
43
44 mount -t lustre_lite -o device=5 none /mnt/lustre