Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[fs/lustre-release.git] / lustre / tests / mount2.sh
1 #!/bin/bash
2
3 config=${1:-mount2.xml}
4
5 SRCDIR=`dirname $0`
6 PATH=$SRCDIR:$SRCDIR/../utils:$PATH
7 LMC="${LMC:-lmc} -m $config"
8 TMP=${TMP:-/tmp}
9
10 MDSDEV=${MDSDEV:-$TMP/mds1-`hostname`}
11 MDSSIZE=${MDSSIZE:-50000}
12 FSTYPE=${FSTYPE:-ext3}
13
14 OSTDEV=${OSTDEV:-$TMP/ost1-`hostname`}
15 OSTSIZE=${OSTSIZE:-200000}
16
17 rm -f $config
18
19 # create nodes
20 ${LMC} --add node --node localhost || exit 10
21 ${LMC} --add net --node  localhost --nid localhost --nettype tcp || exit 11
22
23 # configure mds server
24 ${LMC} --add mds  --node localhost --mds mds1 --fstype $FSTYPE --dev $MDSDEV --size $MDSSIZE || exit 20
25
26 # configure ost
27 ${LMC} --add ost --node localhost --ost ost1 --fstype $FSTYPE --dev $OSTDEV --size  $OSTSIZE || exit 30
28
29 # create client config
30 ${LMC} --add mtpt --node localhost --path /mnt/lustre1 --mds mds1 --ost ost1 || exit 40
31 ${LMC} --add mtpt --node localhost --path /mnt/lustre2 --mds mds1 --ost ost1 || exit 40