Skip to content
Snippets Groups Projects
Commit 51467436 authored by Robert Read's avatar Robert Read
Browse files

- add initial mcr.sh for echo test on mcr cluster

- turn autoformat off in lov, use lconf --reformat
- clean up llmount.sh
parent 0ba38e94
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
# suggested boilerplate for test script
LCONF=../utils/lconf LCONF=../utils/lconf
NAME=local
if [ ! -f local.xml ]; then config=$NAME.xml
./local.sh || exit 1 mkconfig=./$NAME.sh
if [ $mkconfig -nt $local.xml ]; then
$mkconfig $config || exit 1
fi fi
${LCONF} --reformat --gdb local.xml || exit 2 ${LCONF} --reformat --gdb $config || exit 2
#!/bin/bash #!/bin/bash
config=local.xml config=${1:-local.xml}
LMC=../utils/lmc LMC=../utils/lmc
# create nodes # create nodes
......
#!/bin/bash #!/bin/bash
if [ -z "$1" ]; then config=${1:-lov.xml}
config=lov.xml
else
config=$1
fi
LMC=../utils/lmc LMC=../utils/lmc
echo "FIXME: autoformat is no by default, edit $config to change"
# create nodes # create nodes
${LMC} -o $config --node localhost --net localhost tcp ${LMC} -o $config --node localhost --net localhost tcp
...@@ -18,8 +12,8 @@ ${LMC} -m $config --format --node localhost --mds mds1 /tmp/mds1 50000 ...@@ -18,8 +12,8 @@ ${LMC} -m $config --format --node localhost --mds mds1 /tmp/mds1 50000
# configure ost # configure ost
${LMC} -m $config --lov lov1 mds1 4096 0 0 ${LMC} -m $config --lov lov1 mds1 4096 0 0
${LMC} -m $config --format --node localhost --lov lov1 --ost /tmp/ost1 100000 ${LMC} -m $config --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/ost2 100000
# create client config # create client config
${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 lov1 ${LMC} -m $config --node localhost --mtpt /mnt/lustre mds1 lov1
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<obd uuid='OBD_localhost_UUID' name='OBD_localhost' type='obdfilter'> <obd uuid='OBD_localhost_UUID' name='OBD_localhost' type='obdfilter'>
<fstype>extN</fstype> <fstype>extN</fstype>
<device size='100000'>/tmp/ost1</device> <device size='100000'>/tmp/ost1</device>
<autoformat>yes</autoformat> <autoformat>no</autoformat>
</obd> </obd>
<osc name='OSC_localhost' uuid='OSC_localhost_UUID'> <osc name='OSC_localhost' uuid='OSC_localhost_UUID'>
<ost_ref uuidref='OST_localhost_UUID'/> <ost_ref uuidref='OST_localhost_UUID'/>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<obd name='OBD_localhost_2' uuid='OBD_localhost_2_UUID' type='obdfilter'> <obd name='OBD_localhost_2' uuid='OBD_localhost_2_UUID' type='obdfilter'>
<fstype>extN</fstype> <fstype>extN</fstype>
<device size='100000'>/tmp/ost2</device> <device size='100000'>/tmp/ost2</device>
<autoformat>yes</autoformat> <autoformat>no</autoformat>
</obd> </obd>
<osc name='OSC_localhost_2' uuid='OSC_localhost_2_UUID'> <osc name='OSC_localhost_2' uuid='OSC_localhost_2_UUID'>
<ost_ref uuidref='OST_localhost_2_UUID'/> <ost_ref uuidref='OST_localhost_2_UUID'/>
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment