Whamcloud - gitweb
WARNING - if an RPC times out you will crash older UML's.
[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 read
14
15 new_fs ext2 /tmp/ost 10000
16 OST=$LOOPDEV
17 MDSFS=ext2
18 new_fs ${MDSFS} /tmp/mds 10000
19 MDS=$LOOPDEV
20
21 echo 0xffffffff > /proc/sys/portals/debug
22
23 $OBDCTL <<EOF
24 device 0
25 attach mds
26 setup ${MDS} ${MDSFS}
27 device 1
28 attach obdfilter
29 setup ${OST} ext2
30 device 2
31 attach ost
32 setup 1
33 device 3
34 attach osc
35 setup -1
36 device 4
37 attach ptlrpc
38 setup
39 quit
40 EOF
41
42 mount -t lustre_lite -o device=3 none /mnt/lustre