Recreating H-Sphere physical and logical servers, users, and resources


How to recreate H-Sphere physical and logical servers, users, and resources.

Servers are recreated on empty machines with a newly installed operating system. This is an alternative to the manual recovering services procedure.

Don’t use this instruction to recreate boxes with the CP server, including one server installations.

Servers are recreated by means of a perl script, which is inluded into H-Sphere distributions starting with version 2.4 Patch 3.

You must have all user content and configuration files backed up.

Step 1. Prepare the server
Step 2. Download the installer
Step 3. Run the recreator
Step 4. Restore user content

Step 1. Prepare The Server

To start the recreate, you need to set up a clean server with the IP address of the server you are recreating and prepare it for H-Sphere installation.

Step 2. Download Current Installer

Log into the CP server as root:
su –
Make sure you don’t have installers for older versions. If you do, delete them.
Download H-Sphere 2.4 installer:
Linux:
wget http://www.psoft.net/shiv/HS/hsinst24.tgz
FreeBSD:
fetch http://www.psoft.net/shiv/HS/hsinst24.tgz
untar/ungzip the downloaded archive:
tar xfz ./hsinst24.tgz
and cd into the installation directory:

cd ./hsinst

Step 3. Run The Recreator

Run the recreator:

./phbox_recreate.pl
It will allow you to select the server to recreate, and will take you through the recreation wizard. Once it finishes, the server will be up and running.

Step 4. Restore User Content

If you are recovering servers with user content, such as web, mail, or mysql, postresql, you need to restore user content from backup. This is not necessary for DNS servers.