Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Minor cleanup.
[fs/lustre-release.git]
/
lustre
/
tests
/
llmount.sh
1
#!/bin/sh
2
3
SRCDIR="`dirname $0`"
4
. $SRCDIR/common.sh
5
6
setup
7
8
$PTLCTL <<EOF
9
mynid localhost
10
setup tcp
11
connect localhost 1234
12
add_uuid self
13
add_uuid mds
14
add_uuid ost
15
quit
16
EOF
17
18
new_fs ext2 /tmp/ost 10000
19
OST=$LOOPDEV
20
MDSFS=ext2
21
new_fs ${MDSFS} /tmp/mds 10000
22
MDS=$LOOPDEV
23
24
echo 0xffffffff > /proc/sys/portals/debug
25
26
$OBDCTL <<EOF
27
device 0
28
attach mds
29
setup ${MDS} ${MDSFS}
30
device 1
31
attach obdext2
32
setup ${OST}
33
device 2
34
attach ost
35
setup 1
36
device 3
37
attach osc
38
setup -1
39
quit
40
EOF
41
42
mount -t lustre_light -o device=3 none /mnt/obd