Whamcloud - gitweb
Bring small ha_assist2.sh change from branch to trunk
[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
18 /usr/src/portals/linux/utils/ptlctl <<EOF3
19 setup tcp
20 close_uuid mds
21 del_uuid mds
22 connect dev5 1234
23 add_uuid mds
24 quit
25 EOF3
26
27 echo "connected to new MDS!"
28
29 /usr/src/obd/utils/obdctl  <<EOF2
30 name2dev RPCDEV
31 newconn
32 quit
33 EOF2