4 config=${1:-$(basename $0 .sh)}.xml
6 LMC=${LMC:-../utils/lmc -m $config}
9 MDSDEV=${MDSDEV:-$TMP/mds1-`hostname`}
11 FSTYPE=${FSTYPE:-ext3}
13 OSTDEV=${OSTDEV:-$TMP/ost1-`hostname`}
18 ${LMC} --add node --node localhost || exit 10
19 ${LMC} --add net --node localhost --nid localhost --nettype tcp || exit 11
21 # configure mds server
22 ${LMC} --add mds --node localhost --mds mds1 --fstype $FSTYPE --dev $MDSDEV --size $MDSSIZE || exit 20
25 ${LMC} --add ost --node localhost --obd obd1 --fstype $FSTYPE --obdtype obdecho || exit 30
27 ${LMC} --add ost --node localhost --obd obd2 --fstype $FSTYPE --obdtype obdecho || exit 30
29 ${LMC} --add cobd --node localhost --real_obd obd1 --cache_obd obd2
31 # create client config
32 # ${LMC} -m $config --add mtpt --node localhost --path /mnt/lustre --mds mds1 --obd obd1 || exit 40