summaryrefslogtreecommitdiffstats
path: root/extras/ganesha/scripts/ganesha-ha.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extras/ganesha/scripts/ganesha-ha.sh')
-rw-r--r--extras/ganesha/scripts/ganesha-ha.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
index 5b26702..cca2d84 100644
--- a/extras/ganesha/scripts/ganesha-ha.sh
+++ b/extras/ganesha/scripts/ganesha-ha.sh
@@ -671,12 +671,6 @@ addnode_create_resources()
local add_vip=${1}; shift
local cibfile=$(mktemp -u)
- # start HA on the new node
- pcs cluster start ${add_node}
- if [ $? -ne 0 ]; then
- logger "warning: pcs cluster start ${add_node} failed"
- fi
-
pcs cluster cib ${cibfile}
if [ $? -ne 0 ]; then
logger "warning: pcs cluster cib ${cibfile} failed"
@@ -696,6 +690,7 @@ addnode_create_resources()
logger "warning: pcs cluster cib-push ${cibfile} failed"
fi
rm -f ${cibfile}
+
}
@@ -1075,6 +1070,19 @@ main()
logger "warning: pcs cluster node add ${node} failed"
fi
+ sleep 2
+ # restart of HA cluster required on RHEL 6 because of BZ1404410
+ pcs cluster stop --all
+ if [ $? -ne 0 ]; then
+ logger "warning: pcs cluster stopping cluster failed"
+ fi
+
+ sleep 2
+ pcs cluster start --all
+ if [ $? -ne 0 ]; then
+ logger "warning: pcs cluster starting cluster failed"
+ fi
+
addnode_create_resources ${node} ${vip}
# Subsequent add-node recreates resources for all the nodes
# that already exist in the cluster. The nodes are picked up