| Table of Contents |
|---|
Introduction
If there is a request to move DualShield Replication cluster to a new set of servers, the best approach would be to Clone just one dualshield/mysql node server in the cluster using the instructions as written here...
How to move DualShield to a new machine with the same Windows OS System Type
Then create a new replication cluster using the DualShield Assistant tool to clone from the new server and set up of the current environment and then restore to the new environment and from that create a new replication cluster.
However, this may not be 100% straightforward as there are a couple of factors to consider, such as the size of the audit log table , eg
...
| Expand | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Binary log files (often referred to as binlogs) in MySQL are a record of all changes made to the database. They are essential for replication, backups, and recovery purposes. Binlogs track events such as:
MySQL uses binlogs to propagate changes from a master database to one or more slave databases in a replication setup. The slaves read and apply the binlogs from the master to stay synchronized. Over time the the amount of bin log files increase and therefore so does the size of the file they are stored in. This will take up hard drive space plus, this will significantly slow the process if you are cloning the system as the more bin log files there are, the more that have to be copied during the cloning process. Therefore there is some house keeping that needs to be done to ensure the older bin log files get deleted.
|
Begin the Initial Clone
Please do the following to move a DualShield Server from the current VM to a new one.
| Expand | ||||||
|---|---|---|---|---|---|---|
| ||||||
|
Prepare to Create a New Replication Cluster
Before you begin the process the master and slave configurations from the former cluster must be removed,
1) Stop the DualShied Server service on the new machine,
2) Open a command prompt and change directory to C:\Program Files\Deepnet DualShield\mysql\bin
Log into MySQL console , and stop the slave service:
| Code Block | ||||
|---|---|---|---|---|
| ||||
mysql -u root -p
(Enter your password at prompt)
mysql> stop slave; |
3) Reset master and slave on both servers. This will clear the replication configuration and status information from the previous cluster.
| Code Block | ||
|---|---|---|
| ||
mysql> reset master;
mysql> reset slave;
|
4) Stop the MySQL(Dual) Service
5) Launch Notepad in Admin mode and open the das.ini file in C:\Program Files\Deepnet DualShield\mysql
6) Delete all existing replication server configuration details from the das.ini file.
7) Download DualShield Assistant from here: DualShield Assistant v2.5
8) Install DualShield Assistant on Source and Target machines (In other words the new machine running DualShield and the other machines In your new environment you wish DualShield Server to be deployed to)
Create New Replication Cluster using DualShield Assistant
1) Follow Cloning DualShield to clone DualShield and MySQL server and deploy to another new hosting server
2) Once the clone is complete follow Setting up Replication to setup replication between the two servers.
3) If you wish to add additional servers please follow steps 1 and 2 again and repeat until you have replication set up on all the servers you need.



