lconf=../utils/lconf
# create nodes
-$lmc -o $config --node localhost --net localhost tcp
-$lmc -m $config --node localhost --obdtype=obdecho --ost
+$lmc -o $config --node localhost --net localhost tcp || exit 1
+$lmc -m $config --node localhost --obdtype=obdecho --ost|| exit 2
# force the osc to be configured (this is normally done when it is mounted)
-$lmc -m $config --node localhost --osc OSC_localhost
+$lmc -m $config --node localhost --osc OSC_localhost|| exit 3
-$lconf --gdb $config
+$lconf --gdb $config || exit 4
cat <<EOF
LCONF=../utils/lconf
if [ ! -f local.xml ]; then
- ./local.sh
+ ./local.sh || exit 1
fi
-${LCONF} --reformat --gdb local.xml
+${LCONF} --reformat --gdb local.xml || exit 2
LMC=../utils/lmc
# create nodes
-${LMC} -o $config --node localhost --net localhost tcp
+${LMC} -o $config --node localhost --net localhost tcp || exit 1
# configure mds server
-${LMC} -m $config --format --node localhost --mds mds1 /tmp/mds1 50000
+${LMC} -m $config --format --node localhost --mds mds1 /tmp/mds1 50000 || exit 2
# configure ost
-${LMC} -m $config --format --node localhost --ost /tmp/ost1 100000
+${LMC} -m $config --format --node localhost --ost /tmp/ost1 100000 || exit 3
# create client config
-${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 OSC_localhost
+${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 OSC_localhost || exit 4