#!/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
#!/bin/bash
-config=local.xml
+config=${1:-local.xml}
+
LMC=../utils/lmc
# create nodes
#!/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
# 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
<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'/>
<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'/>
--- /dev/null
+#!/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