Whamcloud - gitweb
land 0.5.20.3 b_devel onto HEAD (b_devel will remain)
[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}
11 MDSSIZE=${MDSSIZE:-50000}
12
13 OSTDEV=${OSTDEV:-$TMP/ost1}
14 OSTSIZE=${OSTSIZE:-200000}
15
16 rm -f $config
17
18 # create nodes
19 ${LMC} --add node --node localhost || exit 10
20 ${LMC} --add net --node  localhost --nid localhost --nettype tcp || exit 11
21
22 # configure mds server
23 ${LMC} --add mds  --node localhost --mds mds1 --dev $MDSDEV --size $MDSSIZE || exit 20
24
25 # configure ost
26 ${LMC} --add ost --node localhost --ost ost1 --dev $OSTDEV --size  $OSTSIZE || exit 30
27
28 # create client config
29 ${LMC} --add mtpt --node localhost --path /mnt/lustre1 --mds mds1 --ost ost1 || exit 40
30 ${LMC} --add mtpt --node localhost --path /mnt/lustre2 --mds mds1 --ost ost1 || exit 40