Whamcloud - gitweb
file export-do_kern_mount.patch was initially added on branch b1_5.
[fs/lustre-release.git] / lustre / tests / mcr-individual-ost-nogw-config.sh
index 9e3cbd1..0401bf5 100755 (executable)
@@ -9,10 +9,9 @@ LMC_REAL="../../lustre/utils/lmc -m $config"
 SERVER_START=0
 SERVER_CNT=62
 
-PORT=2432
 TCPBUF=1048576
  
-h2ip () {
+h2tcp () {
     echo "${1}"
 }
 BATCH=/tmp/lmc-batch.$$
@@ -23,7 +22,7 @@ save_cmd() {
 [ -f $config ] && rm $config
 
 # Client node
-${LMC} --node client --tcpbuf $TCPBUF --net '*' tcp $PORT || exit 1
+${LMC} --add net --node client --tcpbuf $TCPBUF --nid '*' --nettype tcp || exit 1
 
 # this is crude, but effective
 let server_per_gw=($SERVER_CNT / $GW_CNT )
@@ -33,13 +32,13 @@ let server=$SERVER_START
 while (( $server < $SERVER_CNT + SERVER_START ));
 do 
       echo "server: $server"
-      ba=ba$server
+      OST=ba$server
       # server node
-      ${LMC} --node $ba --tcpbuf $TCPBUF --net $ba tcp $PORT || exit 1
+      ${LMC} --add net --node $OST --tcpbuf $TCPBUF --nid $OST --nettype tcp || exit 1
       # the device on the server
-      ${LMC} --node $ba --obdtype=obdecho --ost || exit 3
+      ${LMC} --add ost --node $OST --obd obd_$OST --obdtype=obdecho || exit 3
       # osc on client
-      ${LMC} --node client --osc OSC_$ba
+      ${LMC} --add oscref --node client --osc OSC_obd_$OST
       let server=$server+1 
 done