From 7f1d6ce26660d4aa1cc4a6143bc89c419c4a4c74 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 20 Nov 2002 22:57:51 +0000 Subject: [PATCH] Fix bad awk in mcr-routed-config.sh, which grabbed every OST UUID instead of just the one we wanted. --- lustre/tests/mcr-routed-config.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lustre/tests/mcr-routed-config.sh b/lustre/tests/mcr-routed-config.sh index f6405d7..7b2a02a 100755 --- a/lustre/tests/mcr-routed-config.sh +++ b/lustre/tests/mcr-routed-config.sh @@ -17,7 +17,6 @@ UUIDLIST=${UUIDLIST:-/home/bluearc/UUID.0920} CLIENT_LO=mcr40 CLIENT_HI=mcr96 -PORT=988 TCPBUF=1048576 @@ -46,7 +45,7 @@ ${LMC} --node $MDS --mds mds1 /tmp/mds1 100000 || exit 1 ${LMC} --lov lov1 mds1 65536 0 0 # Client node -#${LMC} --node client --tcpbuf $TCPBUF --net '*' tcp $PORT || exit 1 +#${LMC} --node client --tcpbuf $TCPBUF --net '*' tcp || exit 1 ${LMC} --node client --net '*' elan || exit 1 ${LMC} --node client --mtpt /mnt/lustre mds1 lov1 @@ -62,7 +61,7 @@ while (( $gw < $GW_CNT + GW_START )); do echo "gw$gw" gwnode=`gw2mcr gw$gw` - ${LMC} --router --node $gwnode --tcpbuf $TCPBUF --net `h2ip $gwnode` tcp $PORT || exit 1 + ${LMC} --router --node $gwnode --tcpbuf $TCPBUF --net `h2ip $gwnode` tcp || exit 1 ${LMC} --node $gwnode --net `h2elan $gwnode` elan|| exit 1 ${LMC} --node $gwnode --route elan `h2elan $gwnode` `h2elan $CLIENT_LO` `h2elan $CLIENT_HI` || exit 2 @@ -70,15 +69,15 @@ do while (( $i < $server_per_gw )); do echo "server: $server" - ba=ba$server + OST=ba$server OBD_UUID=`awk "/$OST / { print \\$3 }" $UUIDLIST` [ "$OBD_UUID" ] && OBD_UUID="--obduuid=$OBD_UUID" || echo "$OST: no UUID" # server node - ${LMC} --node $ba --tcpbuf $TCPBUF --net $ba tcp $PORT || exit 1 + ${LMC} --node $OST --tcpbuf $TCPBUF --net $OST tcp || exit 1 # the device on the server - ${LMC} --lov lov1 --node $ba $OBD_UUID --ost bluearc || exit 3 + ${LMC} --lov lov1 --node $OST $OBD_UUID --ost bluearc || exit 3 # route to server - ${LMC} --node $gwnode --route tcp `h2ip $gwnode` $ba || exit 2 + ${LMC} --node $gwnode --route tcp `h2ip $gwnode` $OST || exit 2 let server=$server+1 let i=$i+1 done -- 1.8.3.1