3 Node Cluster
Overview
We have prepared 3 machines with RedHat 8 operating system in the same network:
10.1.1.2 vprotect1.local 10.1.1.3 vprotect2.local 10.1.1.4 vprotect3.local
We will use IP 10.1.1.5/23 for floating IP of our cluster.
1. Storware server installation
Run that steps on all machines under pacemaker cluster:
Add Storware repository
vi /etc/yum.repos.d/vProtect.repo# Storware Backup & Recovery - Enterprise backup solution for virtual environments repository [vprotect] name = vProtect baseurl = https://repo.storware.eu/storware/current/el8/ gpgcheck = 0Add MariaDB repository
vi /etc/yum.repos.d/MariaDB.repo# MariaDB 10.10 RedHatEnterpriseLinux repository list - created 2023-08-23 08:49 UTC # https://mariadb.org/download/ [mariadb] name = MariaDB # rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details. # baseurl = https://rpm.mariadb.org/10.10/rhel/$releasever/$basearch baseurl = https://mirror.creoline.net/mariadb/yum/10.10/rhel/$releasever/$basearch # gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB gpgkey = https://mirror.creoline.net/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck = 1Install Storware server
dnf install -y vprotect-serverInitialize Storware server
vprotect-server-configureRedirect 8181 port to 443 on firewall
/opt/vprotect/scripts/server/ssl_port_forwarding_firewall-cmd.shAdd redirection to allow local node to communicate with server on cluster IP
firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp -o lo --dport 443 -j REDIRECT --to-ports 8181 firewall-cmd --complete-reloadOpen firewall for MariaDB replication:
firewall-cmd --add-port=3306/tcp --permanent firewall-cmd --complete-reload
2. Configuration custom SSL certificate
All steps run as root user. All steps execute on first node of cluster.
Follow steps from enabling HTTPS connectivity for nodes
3. Storware node installation
Execute on all pacemaker nodes, and other Storware node machines.
Add Storware repository
Install Storware node
Initialize Storware node
Only when we want backup Proxmox by export strategy.
4. Backup destination configuration
For multi-node/cluster environment for backup destination we suggest to use NFS, Object Storage, Deduplication appliances. In this example we use NFS.
Execute on all Storware node machines.
Add entry in
/etc/fstabfor automount NFSCreate directories for mount NFS share:
Mount NFS share
Create subdirectories for backup destinations (run only on single node)
Add privileges for newly created shares
5. Cluster Configuration
Cluster is controlled by pacemaker.
5.1 Prepare operating system
All steps run as root user. Run that steps on all machines in pacemaker cluster:
Stop all services controlled by cluster, and disable autostart.
5.2 Set MariaDB replication
All steps run as root user. Run on all cluster nodes:
Create MariaDB user
replicationwith passwordvPr0tectfor replication:Add changes to /etc/my.cnf.d/server.cnf in
mysqldsection:Add changes to /etc/my.cnf.d/server.cnf in
mysqldsection:On vprotect1.local:
On vprotect2.local:
On vprotect3.local:
Restart MariaDB service:
On each host show output from command:
Output from vprotect3.local:
Output from vprotect1.local:
Output from vprotect2.local:
Set replication on each MariaDB server:
Execute on vprotect1.local:
Execute on vprotect2.local:
Execute on vprotect3.local:
Start replication MariaDB: Execute on vprotect1.local:
Show output from command:
Wait until you see in output:
Repeat last step on host vprotect2.local and vprotect3.local.
5.2.1 Make same passwords for vprotect user in MariaDB
Copy password from file
/opt/vprotect/payara.propertiesLog in to MariaDB
Set password for vprotect user:
Copy configuration files from vprotect1.local to other cluster hosts
Add permissions for copied files
5.3 Configure pacemaker
All steps run as root user.
5.3.1 Run on every node in cluster
Install pacemaker packages
Create SSH keys, and add them on other hosts to known.
Open ports on firewall
Start pcsd service
Set same password for user hacluster
5.3.2 Run only on first node of cluster
Authenticate nodes of cluster
Create cluster
Run cluster
Power off stonith
Create floating IP in cluster
Add vprotect-server to cluster
Add vprotect-node to cluster
6. Register Storware node on server (on all hosts)
Add certificate to trusted
Register node on server
7. Useful commands to control cluster:
For update, or service Storware unmanage services from cluster:
Back to manage:
Show status of cluster:
Stop cluster node:
Stop all nodes of cluster:
Start all nodes of cluster:
Clear old errors in cluster:
Last updated