. rdqmCommon.sh

basehostname=$(cat /etc/hostname | sed 's/[[:digit:]]\.fyre\.ibm\.com//')
echoBig "Base Hostname is: $basehostname"

initRDQMSetup

echoBig "User: $user | node1: $node1 | node2: $node2 | node3: $node3 | sshCommand: $sshCommand"

############################
# provide mqm sudo access  #
############################

addMQMToSudoers $node1

if [ $? != 0 ]
then
  echoBig "Failed creating drbdpool VG on $node3"
  exit 1
fi

addMQMToSudoers $node2

if [ $? != 0 ]
then
  echoBig "Failed creating drbdpool VG on $node3"
  exit 1
fi

addMQMToSudoers $node3

if [ $? != 0 ]
then
  echoBig "Failed creating drbdpool VG on $node3"
  exit 1
fi

