Whamcloud - gitweb
bf7948a8eebeb1cd5caa06357b213e4feeb3db0d
[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 newdev
24 attach mds MDSDEV
25 setup ${MDS} ${MDSFS}
26 newdev
27 attach obdext2 OBDDEV
28 setup ${OST}
29 newdev
30 attach ost OSTDEV
31 setup \$OBDDEV
32 newdev
33 attach ldlm LDLMDEV
34 setup
35 newdev
36 attach osc OSCDEV
37 setup -1
38 quit
39 EOF
40
41 mount -t lustre_lite -o device=`$OBDCTL name2dev OSCDEV` none /mnt/lustre