From: rread Date: Thu, 29 Aug 2002 11:59:15 +0000 (+0000) Subject: - add initial mcr.sh for echo test on mcr cluster X-Git-Tag: 0.5.5~14 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=51467436eb8ea538c05f6addbb16d1142e734277;p=fs%2Flustre-release.git - add initial mcr.sh for echo test on mcr cluster - turn autoformat off in lov, use lconf --reformat - clean up llmount.sh --- diff --git a/lustre/tests/llmount.sh b/lustre/tests/llmount.sh index db45d8a..e5b5242 100755 --- a/lustre/tests/llmount.sh +++ b/lustre/tests/llmount.sh @@ -1,10 +1,15 @@ #!/bin/sh +# suggested boilerplate for test script LCONF=../utils/lconf +NAME=local -if [ ! -f local.xml ]; then - ./local.sh || exit 1 +config=$NAME.xml +mkconfig=./$NAME.sh + +if [ $mkconfig -nt $local.xml ]; then + $mkconfig $config || exit 1 fi -${LCONF} --reformat --gdb local.xml || exit 2 +${LCONF} --reformat --gdb $config || exit 2 diff --git a/lustre/tests/local.sh b/lustre/tests/local.sh index 3be79e1..a005eca 100755 --- a/lustre/tests/local.sh +++ b/lustre/tests/local.sh @@ -1,6 +1,7 @@ #!/bin/bash -config=local.xml +config=${1:-local.xml} + LMC=../utils/lmc # create nodes diff --git a/lustre/tests/lov.sh b/lustre/tests/lov.sh index 8b15f8f..3e6588d 100755 --- a/lustre/tests/lov.sh +++ b/lustre/tests/lov.sh @@ -1,15 +1,9 @@ #!/bin/bash -if [ -z "$1" ]; then - config=lov.xml -else - config=$1 -fi +config=${1:-lov.xml} LMC=../utils/lmc -echo "FIXME: autoformat is no by default, edit $config to change" - # create nodes ${LMC} -o $config --node localhost --net localhost tcp @@ -18,8 +12,8 @@ ${LMC} -m $config --format --node localhost --mds mds1 /tmp/mds1 50000 # configure ost ${LMC} -m $config --lov lov1 mds1 4096 0 0 -${LMC} -m $config --format --node localhost --lov lov1 --ost /tmp/ost1 100000 -${LMC} -m $config --format --node localhost --lov lov1 --ost /tmp/ost2 100000 +${LMC} -m $config --node localhost --lov lov1 --ost /tmp/ost1 100000 +${LMC} -m $config --node localhost --lov lov1 --ost /tmp/ost2 100000 # create client config ${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 lov1 diff --git a/lustre/tests/lov.xml b/lustre/tests/lov.xml index fc09a73..c5eb61f 100644 --- a/lustre/tests/lov.xml +++ b/lustre/tests/lov.xml @@ -39,7 +39,7 @@ extN /tmp/ost1 - yes + no @@ -52,7 +52,7 @@ extN /tmp/ost2 - yes + no diff --git a/lustre/tests/mcr.sh b/lustre/tests/mcr.sh new file mode 100755 index 0000000..7407049 --- /dev/null +++ b/lustre/tests/mcr.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +config=${1:-mcr.xml} + +LMC=../utils/lmc + +# create nodes +${LMC} -o $config --node client --net '*' elan || exit 1 +${LMC} -m $config --node mdev2 --net mdev2 tcp || exit 1 +${LMC} -m $config --router --node mdev3 --net mdev3 tcp || exit 1 +${LMC} -m $config --node mdev3 --net 3 elan || exit 1 + +${LMC} -m $config --node mdev3 --route elan 3 2 25 || exit 2 +${LMC} -m $config --node mdev3 --route tcp mdev3 mdev2 || exit 2 + + +# configure ost +${LMC} -m $config --format --node mdev2 --obdtype=obdecho --ost || exit 3 + +# create client config +${LMC} -m $config --node client --osc OSC_mdev2 || exit 4