X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllecho.sh;h=82b2c1ea5fa943126ef5a3bb314e449ab10b68d5;hb=32e3f2e70b8e7de4fd2bcdbcfbc1ccac74c609e6;hp=a47c088276b7ee2bc4965b8becc36d255a40aff4;hpb=7312616768bfed768ecc00ba20322c37568138d0;p=fs%2Flustre-release.git diff --git a/lustre/tests/llecho.sh b/lustre/tests/llecho.sh index a47c088..82b2c1e 100644 --- a/lustre/tests/llecho.sh +++ b/lustre/tests/llecho.sh @@ -23,24 +23,30 @@ while [ "$1" ]; do shift done +rm -f $config # create nodes -$LMC -o $config --node $SERVER --net $SERVER tcp || exit 1 +$LMC -o $config --add node --node $SERVER || exit 1 +$LMC -m $config --add net --node $SERVER --nid $SERVER --nettype tcp || exit 2 if (($LOV)); then - $LMC -m $config --node $SERVER --mds mds1 $MDSDEV $MDSSIZE || exit 10 - $LMC -m $config --lov lov1 mds1 $STRIPE_BYTES $STRIPES_PER_OBJ 0 || exit 11 - $LMC -m $config --node $SERVER --lov lov1 --obdtype=obdecho --ost || exit 12 - $LMC -m $config --node $SERVER --lov lov1 --obdtype=obdecho --ost || exit 13 - - $LMC -m $config --node $CLIENT --echo_client lov1 || exit 3 + $LMC -m $config --add mds --node $SERVER --mds mds1 --dev $MDSDEV --size $MDSSIZE || exit 10 + $LMC -m $config --add lov --lov lov1 --mds mds1 --stripe_sz $STRIPE_BYTES --stripe_cnt $STRIPES_PER_OBJ --stripe_pattern 0 || exit 11 + $LMC -m $config --add ost --node $SERVER --lov lov1 --obdtype=obdecho || exit 12 + $LMC -m $config --add ost --node $SERVER --lov lov1 --obdtype=obdecho || exit 13 + OBD_NAME=lov1 else - $LMC -m $config --node $SERVER --obdtype=obdecho --ost || exit 2 - # force the osc to be configured (this is normally done when it is mounted) - $LMC -m $config --node $CLIENT --osc OSC_$SERVER || exit 3 - $LMC -m $config --node $CLIENT --echo_client OSC_${SERVER} || exit 3 + $LMC -m $config --add ost --obd obd1 --node $SERVER --obdtype=obdecho || exit 2 + OBD_NAME=obd1 +fi + +if [ "$SERVER" != "$CLIENT" ]; then + $LMC -m $config --add node --node $CLIENT || exit 1 + $LMC -m $config --add node --node $CLIENT --nid $CLIENT --nettype tcp || exit 2 fi -$LCONF --gdb $OPTS $config || exit 4 +$LMC -m $config --add echo_client --node $CLIENT --obd ${OBD_NAME} || exit 3 + +$LCONF --reformat --gdb $OPTS $config || exit 4 cat <