X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Fautomatic-reconnect-sample;fp=lustre%2Futils%2Fautomatic-reconnect-sample;h=bf9ecc457e476085d32aac89eea5eb314e15391e;hb=d2d56f38da01001c92a09afc6b52b5acbd9bc13c;hp=0000000000000000000000000000000000000000;hpb=bf527ab7e56d4445f81223b23302b3cbf0dc5fb1;p=fs%2Flustre-release.git diff --git a/lustre/utils/automatic-reconnect-sample b/lustre/utils/automatic-reconnect-sample new file mode 100755 index 0000000..bf9ecc4 --- /dev/null +++ b/lustre/utils/automatic-reconnect-sample @@ -0,0 +1,34 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "No UUID given to Lustre upcall!" | wall + exit 1 +fi + +# FIXME: OSTHOST can't be hard-coded! +OST=$1 +OSTHOST=dev7 +LUSTRE=/home/pschwan/lustre/lustre + +while ( ! ping -c 1 -w 3 $OSTHOST ) ; do + sleep 2 +done; + +echo -n "OST $OSTHOST UUID $OST responding to pings : " +date + +$LUSTRE/utils/lctl <