From 80fb197e286b1b224c966b2d8400641b6b6b5921 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zolt=C3=A1n=20Felleg?= Date: Tue, 1 Oct 2024 21:47:02 +0200 Subject: [PATCH] Deleted scripts/create-cluster.sh. --- scripts/create-cluster.sh | 45 --------------------------------------- 1 file changed, 45 deletions(-) delete mode 100755 scripts/create-cluster.sh diff --git a/scripts/create-cluster.sh b/scripts/create-cluster.sh deleted file mode 100755 index ca3033e..0000000 --- a/scripts/create-cluster.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh -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" - -pcs cluster stop --all -pcs cluster destroy --all - -sleep 5 - -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 - -pcs cluster setup lxc-cluster --start --enable \ - vhost1 addr=10.228.93.1 addr=172.16.131.221 addr=172.16.132.221 \ - vhost2 addr=10.228.93.2 addr=172.16.131.222 addr=172.16.132.222 - -CLUSTER_NODES_STARTED=0 -while [ $CLUSTER_NODES_STARTED -lt 2 ] -do - sleep 5 - pcs cluster status - CLUSTER_NODES_STARTED=$(pcs cluster status | grep ': Online' | grep -w -e vhost1 -e vhost2 | wc -l) -done - -pcs property set maintenance-mode=true - -pcs resource create lxc-fs ocf:heartbeat:Filesystem \ - device=/dev/mapper/lxc directory=/lxc fstype=ext4 -pcs resource create lxc-service systemd:lxc - -pcs resource group add lxc-group \ - lxc-fs \ - lxc-service -- 2.54.0