Whamcloud - gitweb
current branches now use lnet from HEAD
[fs/lustre-release.git] / lustre / utils / ha_assist2.sh
1 #!/bin/bash 
2 set -vx
3 date
4 echo "ha assist checking for problems"
5 sleep 3
6 if [ ! -e /tmp/halog ]; then
7    echo "no problems, exiting"
8     exit 
9 fi
10
11 echo "removing /tmp/halog"
12 rm /tmp/halog
13
14 echo secondary start `date`
15 echo "- please supply a new mds"
16
17 # invoke ldap client here
18
19
20 /usr/src/portals/linux/utils/ptlctl <<EOF3
21 setup tcp
22 close_uuid mds
23 del_uuid mds
24 connect dev5 988
25 add_uuid mds
26 quit
27 EOF3
28
29 echo "connected to new MDS!"
30
31 /usr/src/obd/utils/obdctl  <<EOF2
32 name2dev RPCDEV
33 newconn
34 quit
35 EOF2