Moving The SolusVM Master

From SolusVM

Jump to: navigation, search

Contents

Preparing the New Master

Install a new master server as explained in this guide: http://wiki.solusvm.com/index.php/Install

Backing up the Original Database

You can backup your original SolusVM master database by entering the admin area and selecting System Tools >> Database and clicking 'Send to Email'

Replacing the Encryption Key

Parts of your database are encoded using a unique encryption key stored in /usr/local/solusvm/includes/solusvm.conf. You need to make a copy of the encryption key on the original master and replace it on the new master.

example: <DATABASENAME>:<USER>:<PASSWORD>:<HOST>:<the key is the last entry>

Restoring the Database

Upload the database backup to the new master.

You can get the new database details from /usr/local/solusvm/includes/solusvm.conf, they are seperated with a :

example: <DATABASENAME>:<USER>:<PASSWORD>:<HOST>:<the key is the last entry>

Run this code in SSH on the new master to restore the database:

/usr/bin/mysql --user=USER --password=PASSWORD DATABASENAME < database.sql

If you chang the IP of the master, you might need to reissue the license in solusvm.

Slave Configuration

Each slave in your cluster needs to know the new masters ip address (only if the masters ip is changed).

On each slave you need to add the ip of your master to /usr/local/solusvm/data/allow.dat

OS Templates

FTP, RSYNC etc your OS templates to the new master.

Personal tools
Installation/Upgrading
Customization