Whamcloud - gitweb
70e2250b1d98d4ad7e05c3eac754d0253895ac9a
[fs/lustre-release.git] / lustre / tests / lllocalmount.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 new_fs ext2 /tmp/ost 10000
15 OST=${LOOPDEV}
16
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 MDSDEV
26 setup ${MDS} ${MDSFS}
27 device 1
28 attach obdext2 OBDDEV
29 setup ${OST}
30 device 2
31 attach ost OSTDEV
32 setup \$OBDDEV
33 device 3
34 attach osc OSCDEV
35 setup 2
36 quit
37 EOF
38
39 # mount -t lustre_lite -o device=3 none /mnt/lustre