Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[fs/lustre-release.git] / lustre / tests / local.sh
1 #!/bin/bash
2
3 export PATH=`dirname $0`/../utils:$PATH
4
5 config=${1:-local.xml}
6
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 --nspath /mnt/mds_ns  --node localhost --mds mds1 --fstype $FSTYPE --dev $MDSDEV --size $MDSSIZE || exit 20
25
26 # configure ost
27 ${LMC} --add ost --nspath /mnt/ost_ns --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/lustre --mds mds1 --ost ost1 || exit 40