For the record, this is the script used to setup a clean machine with pcs:
sudo apt-get -q update sudo apt-get -q -y install pcs
# we make sure corosync and pacemaker are stopped sudo systemctl stop pacemaker sudo systemctl stop corosync
# we remove corosync.conf, otherwise pcs will refuse to write the config sudo rm -f /etc/corosync/corosync.conf
# pcs will configure corosync to log under /var/log/cluster test -d /var/log/cluster || sudo mkdir /var/log/cluster
echo -e "ubuntu\nubuntu" | sudo passwd hacluster sudo systemctl restart pcsd.service sleep 10 sudo pcs cluster auth "pcs" -u hacluster -p ubuntu --force --debug sudo pcs cluster setup --debug --force --name pacemaker1 "pcs"
For the record, this is the script used to setup a clean machine with pcs:
sudo apt-get -q update
sudo apt-get -q -y install pcs
# we make sure corosync and pacemaker are stopped
sudo systemctl stop pacemaker
sudo systemctl stop corosync
# we remove corosync.conf, otherwise pcs will refuse to write the config corosync. conf
sudo rm -f /etc/corosync/
# pcs will configure corosync to log under /var/log/cluster
test -d /var/log/cluster || sudo mkdir /var/log/cluster
echo -e "ubuntu\nubuntu" | sudo passwd hacluster
sudo systemctl restart pcsd.service
sleep 10
sudo pcs cluster auth "pcs" -u hacluster -p ubuntu --force --debug
sudo pcs cluster setup --debug --force --name pacemaker1 "pcs"