Whamcloud - gitweb
- add initial mcr.sh for echo test on mcr cluster
authorrread <rread>
Thu, 29 Aug 2002 11:59:15 +0000 (11:59 +0000)
committerrread <rread>
Thu, 29 Aug 2002 11:59:15 +0000 (11:59 +0000)
- turn autoformat off in lov, use lconf --reformat
- clean up llmount.sh

lustre/tests/llmount.sh
lustre/tests/local.sh
lustre/tests/lov.sh
lustre/tests/lov.xml
lustre/tests/mcr.sh [new file with mode: 0755]

index db45d8a..e5b5242 100755 (executable)
@@ -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
 
index 3be79e1..a005eca 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
-config=local.xml
+config=${1:-local.xml}
+
 LMC=../utils/lmc
 
 # create nodes
index 8b15f8f..3e6588d 100755 (executable)
@@ -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
index fc09a73..c5eb61f 100644 (file)
@@ -39,7 +39,7 @@
   <obd uuid='OBD_localhost_UUID' name='OBD_localhost' type='obdfilter'>
     <fstype>extN</fstype>
     <device size='100000'>/tmp/ost1</device>
-    <autoformat>yes</autoformat>
+    <autoformat>no</autoformat>
   </obd>
   <osc name='OSC_localhost' uuid='OSC_localhost_UUID'>
     <ost_ref uuidref='OST_localhost_UUID'/>
@@ -52,7 +52,7 @@
   <obd name='OBD_localhost_2' uuid='OBD_localhost_2_UUID' type='obdfilter'>
     <fstype>extN</fstype>
     <device size='100000'>/tmp/ost2</device>
-    <autoformat>yes</autoformat>
+    <autoformat>no</autoformat>
   </obd>
   <osc name='OSC_localhost_2' uuid='OSC_localhost_2_UUID'>
     <ost_ref uuidref='OST_localhost_2_UUID'/>
diff --git a/lustre/tests/mcr.sh b/lustre/tests/mcr.sh
new file mode 100755 (executable)
index 0000000..7407049
--- /dev/null
@@ -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