Skip to content

Commit

Permalink
Explain how to retrieve the master node in cluster with exportable ba…
Browse files Browse the repository at this point in the history
…ckup

Since backup_and_maintenance is embedded in exportable script, the db backup is not visible anymore. So, the biggest exportable backup contains db and files.
  • Loading branch information
JeGoi authored Feb 4, 2025
1 parent aed1205 commit aa047c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/cluster/layer_3_clusters.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,16 @@ And we MUST defined the type and the enforcement on all the interfaces.
==== Prepare and start the master/slave replication
In order to setup the master a recent backup is required. Backups created prior to the inclusion of this feature will not work. Recent backups now include the replication runtime position of the binary logfile.
In order to setup the master a recent backup is required. Backups created prior to the inclusion
of this feature will not work. Recent backups now include the replication runtime position of the binary logfile.
First restart packetfence-mariadb on all of the servers in the main cluster.
systemctl restart packetfence-mariadb
Run the /usr/local/pf/addons/exportable-backup.sh script on the master node of the main cluster. If you do not know which server is the master run this command on all nodes in the main cluster and only the master will create a backup file (eg: /root/backup/packetfence-exportable-backup-YYYY-MM-DD_HHhss.tgz).
Run the /usr/local/pf/addons/exportable-backup.sh script on the master node of the main cluster. If you do not know which server is
the master, run this command on all nodes in the main cluster and, thanks to the database backup size,
the master will have the bigger backup file (eg: /root/backup/packetfence-exportable-backup-YYYY-MM-DD_HHhss.tgz)
that contains files and database.
Transfer this file to the remote server (eg: /root/backup/)
Connect to the remote server and perform the following to sync the configuration from the master cluster:
Expand Down

0 comments on commit aa047c4

Please sign in to comment.