Compare commits

..

No commits in common. "master" and "twoCluster" have entirely different histories.

View File

@ -5,22 +5,25 @@ while [ true ]
do
echo "$lastping"
# Edit this setting to your server ip
ping -c 1 192.168.178.7
lastping1="$?"
ping -c 1 192.168.178.8
lastping2="$?"
ping -c 1 192.168.178.3
lastping3="$?"
nodesonline=$((4-$lastping1-$lastping2-$lastping3))
ping -c 1 192.168.178.10
lastping="$?"
if [ "$lastcond" != "$nodesonline" ]
if [ "$lastcond" != "$lastping" ]
then
pvecm expected $nodesonline
lastcond=$nodesonline
if [ $lastping = 0 ]
then
pvecm expected 2
lastcond="0"
else
pvecm expected 1
lastcond="1"
fi
fi
#echo $nodesonline
echo "$lastping"
echo "$lastcond"
sleep 15
done