Whamcloud - gitweb
Sample recovery reconnection script for MDS failover.
authorshaver <shaver>
Sun, 8 Sep 2002 17:19:00 +0000 (17:19 +0000)
committershaver <shaver>
Sun, 8 Sep 2002 17:19:00 +0000 (17:19 +0000)
lustre/utils/mds-failover-sample [new file with mode: 0755]

diff --git a/lustre/utils/mds-failover-sample b/lustre/utils/mds-failover-sample
new file mode 100755 (executable)
index 0000000..f6269f4
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+MDS=NET_mds_tcp_UUID
+MDSHOST=mds
+
+/r/src/lustre/utils/lctl <<EOF
+network tcp
+close_uuid $MDS
+del_uuid $MDS
+connect $MDSHOST 988
+add_uuid $MDS $MDSHOST
+quit
+EOF
+
+/r/src/lustre/utils/lctl <<EOF
+device \$RPCDEV
+probe
+newconn $MDS
+quit
+EOF