3 config=${1:-mount2.xml}
6 PATH=$SRCDIR:$SRCDIR/../utils:$PATH
7 LMC="${LMC:-lmc} -m $config"
10 MDSDEV=${MDSDEV:-$TMP/mds1}
11 MDSSIZE=${MDSSIZE:-50000}
13 OSTDEV=${OSTDEV:-$TMP/ost1}
14 OSTSIZE=${OSTSIZE:-200000}
19 ${LMC} --add node --node localhost || exit 10
20 ${LMC} --add net --node localhost --nid localhost --nettype tcp || exit 11
22 # configure mds server
23 ${LMC} --add mds --node localhost --mds mds1 --dev $MDSDEV --size $MDSSIZE || exit 20
26 ${LMC} --add ost --node localhost --ost ost1 --dev $OSTDEV --size $OSTSIZE || exit 30
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