Whamcloud - gitweb
- a few more header cleanups
[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 $R/usr/src/portals/linux/utils/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 dd if=/dev/zero of=/tmp/ost bs=1024 count=10000
19 mke2fs -b 4096 -F /tmp/ost
20 losetup ${LOOP}0 /tmp/ost || exit -1
21
22 dd if=/dev/zero of=/tmp/mds bs=1024 count=10000
23 mke2fs -b 4096 -N 150000 -F /tmp/mds
24 losetup ${LOOP}1 /tmp/mds || exit -1
25
26 mknod /dev/obd c 10 241
27 echo 8191 > /proc/sys/portals/debug
28
29 $R/usr/src/obd/utils/obdctl <<EOF
30 device 0
31 attach mds
32 setup ${LOOP}1 ext2
33 device 1
34 attach obdext2
35 setup ${LOOP}0
36 device 2
37 attach ost
38 setup 1
39 device 3
40 attach osc
41 setup -1
42 quit
43 EOF
44
45 mkdir /mnt/obd
46 mount -t lustre_light -o device=3 none /mnt/obd