Whamcloud - gitweb
* sample mcr-type setups, both using a router
authorrread <rread>
Fri, 30 Aug 2002 02:13:48 +0000 (02:13 +0000)
committerrread <rread>
Fri, 30 Aug 2002 02:13:48 +0000 (02:13 +0000)
lustre/tests/mcr.sh
lustre/tests/mcrlov.sh [new file with mode: 0755]

index ea7d10f..dc9b643 100755 (executable)
@@ -6,11 +6,11 @@ LMC="../utils/lmc -m $config"
 
 # TCP/IP servers
 SERVERS="ba-ost-1  ba-ost-2"
-ROUTER=mdev3
+ROUTER=dev5
 
 # Elan clients
-CLIENT_LO=mdev2
-CLIENT_HI=mdev25
+CLIENT_LO=dev2
+CLIENT_HI=dev25
 
 PORT=2432
 TCPBUF=1048576
@@ -40,7 +40,7 @@ for s in $SERVERS
    # route to server
    ${LMC} --node $ROUTER --route tcp `h2ip $ROUTER` $s || exit 2
    # the device on the server
-   ${LMC} --format --node $s --obdtype=obdecho --ost || exit 3
+   ${LMC} --node $s --obdtype=obdecho --ost || exit 3
    # attach to the device on the client (this would normally be a moun)
    ${LMC} --node client --osc  OSC_$s || exit 4
-done
\ No newline at end of file
+done
diff --git a/lustre/tests/mcrlov.sh b/lustre/tests/mcrlov.sh
new file mode 100755 (executable)
index 0000000..0b8b6dc
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+config=${1:-mcrlov.xml}
+
+LMC="../utils/lmc -m $config"
+
+# TCP/IP servers
+SERVERS="ba-ost-1  ba-ost-2"
+ROUTER=dev5
+MDS=dev7
+
+# Elan clients
+CLIENT_LO=dev2
+CLIENT_HI=dev25
+
+PORT=2432
+TCPBUF=1048576
+
+h2elan () {
+    echo $1 | sed 's/[^0-9]*//g'
+}
+
+h2ip () {
+    echo "${1}"
+}
+
+[ -f $config ] && rm $config
+
+# Client node
+${LMC} --node client --net '*' elan || exit 1
+# Router node
+${LMC} --router --node $ROUTER --tcpbuf $TCPBUF --net `h2ip $ROUTER`  tcp $PORT || exit 1
+${LMC} --node $ROUTER --net `h2elan $ROUTER` elan|| exit 1
+${LMC} --node $ROUTER --route elan `h2elan $ROUTER` `h2elan $CLIENT_LO` `h2elan $CLIENT_HI` || exit 2
+
+${LMC} --node $MDS --net `h2elan $MDS` elan || exit 1
+${LMC} --node $MDS --mds mds1 /tmp/mds1 100000 || exit 1
+${LMC} --lov lov1 mds1 65536 0 0
+
+${LMC} --node client --mtpt /mnt/lustre mds1 lov1
+
+for s in $SERVERS
+ do
+   # server node
+   ${LMC} --node $s --tcpbuf $TCPBUF --net $s tcp $PORT || exit 1
+   # route to server
+   ${LMC} --node $ROUTER --route tcp `h2ip $ROUTER` $s || exit 2
+   # the device on the server
+   ${LMC} --format --lov lov1 --node $s --ost bluearc || exit 3
+done