3 config=${1:-mount2.xml}
6 PATH=$SRCDIR:$SRCDIR/../utils:$PATH
7 LMC="${LMC:-lmc} -m $config"
10 MDSDEV=${MDSDEV:-$TMP/mds1-`hostname`}
11 MDSSIZE=${MDSSIZE:-50000}
12 MOUNT=${MOUNT:-/mnt/lustre}
13 MOUNT1=${MOUNT1:-${MOUNT}1}
14 MOUNT2=${MOUNT2:-${MOUNT}2}
15 FSTYPE=${FSTYPE:-ext3}
17 OSTDEV=${OSTDEV:-$TMP/ost1-`hostname`}
18 OSTSIZE=${OSTSIZE:-200000}
23 ${LMC} --add node --node localhost || exit 10
24 ${LMC} --add net --node localhost --nid localhost --nettype tcp || exit 11
26 # configure mds server
27 ${LMC} --add mds --node localhost --mds mds1 --fstype $FSTYPE --dev $MDSDEV --size $MDSSIZE || exit 20
30 ${LMC} --add ost --node localhost --ost ost1 --fstype $FSTYPE --dev $OSTDEV --size $OSTSIZE || exit 30
32 # create client config
33 ${LMC} --add mtpt --node localhost --path $MOUNT1 --mds mds1 --ost ost1 || exit 40
34 ${LMC} --add mtpt --node localhost --path $MOUNT2 --mds mds1 --ost ost1 || exit 40