- 1 minute to read
- Print
- DarkLight
- PDF
How to perform a SST manually
- 1 minute to read
- Print
- DarkLight
- PDF
This article provides instructions on how to perform a full data transfer, known as State Snapshot Transfer (SST), manually on the Primary cluster member.
Only proceed with these steps if you’re certain that no instances of senhasegura are running in your environment.
How to perform a State Snapshot Transfer manually on the Primary cluster member
Steps on the Primary member
- Check the synchronization status:
sudo orbit cluster status
- Stop the MariaDB process:
sudo systemctl stop mysql
- Remove old cluster control files:
sudo rm /var/lib/mysql/galera.cache
sudo rm /var/lib/mysql/grastate.dat
sudo rm /var/lib/mysql/multi-master.info
- Start the MariaDB process:
sudo galera_new_cluster
Steps on the secondary member
If you operate a cluster with more than one secondary member, apply the steps intended for the secondary member to all of them.
- Stop the MariaDB process:
sudo systemctl stop mysql
- Rename the current database data folder to a backup one:
sudo mv /var/lib/mysql /var/lib/mysql-$(date +%d%m%y%H%M)
- Create a new database folder:
sudo install -d /var/lib/mysql -o mysql -g mysql
Confirm that replication is enabled in the configuration file:
galera.cnf
.Edit the configuration file:
/etc/mysql/conf.d/galera.cnf
.Save the file and exit the editor.
Open another terminal and monitor the database logs:
sudo tailf /var/log/mysql/mysql-error.log
- Start the MariaDB process:
sudo systemctl start mysql
Check if the cluster member count is correct in the database log. For example, if there are 2 members, the message should be:
members = 2/2(joined/total)
.Verify that the synchronization confirmation message is:
WSREP: Member 0.0 (vsrv-senhasegura-cert05) synced with group.
Do you still have questions? Reach out to the senhasegura Community.