Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3454211560204ab22cb654f448c8c1f7a957fd44
[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
quit
37
EOF
38
39
mount -t lustre_lite -o device=3 none /mnt/lustre