Updated create-cluster.sh.
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Wed, 8 Dec 2021 22:57:43 +0000 (23:57 +0100)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Wed, 8 Dec 2021 22:57:43 +0000 (23:57 +0100)
scripts/create-cluster.sh

index ec4b54b441d1099e560e8bc1e35b3a411956161e..b81dc1604e07b6d397f52e3f715b91d410e19d9e 100755 (executable)
@@ -2,6 +2,14 @@
 set -x
 
 
+echo "The following commands should have been run on both nodes."
+echo "  systemctl enable pcsd"
+echo "  systemctl start pcsd"
+echo "  systemctl disable lxc"
+echo "  systemctl stop lxc"
+echo "  passwd hacluster"
+read -p "Press enter if they have been run on both nodes."
+
 pcs cluster status
 
 read -p "Press enter to stop and destroy the existing cluster"
@@ -11,11 +19,6 @@ pcs cluster destroy --all
 
 sleep 5
 
-systemctl enable pcsd
-systemctl start pcsd
-
-#passwd hacluster
-
 pcs host auth vhost1 addr=10.228.93.1 -u hacluster -p Passw@rd01
 pcs host auth vhost2 addr=10.228.93.2 -u hacluster -p Passw@rd01