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