Server Restoration: H-Sphere Unix/Linux Servers

Server Restoration: H-Sphere Unix/Linux Servers

Here you can see how to recreate H-Sphere physical servers with H-Sphere services, users, and resources on a particular non-CP Linux/Unix box. Servers are recreated on empty machines with a newly installed operating system.

Servers are recreated by means of a Perl script inluded into H-Sphere distributions starting with version 2.4 Patch 3. You must have all user content and configuration files backed up.

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. We don’t recommend setting up updated versions of integrated party software at this point. Please stick to the original versions. You may have to follow the P-Soft prepare the server document [WWW]

Download the installer

Download and untar the installer of the H-Sphere version you were running on the crashed server. See the list of H-Sphere versions. If you already have an older version of hsinst.tgz in the current directory, please remove or rename this file before the download.

Note: – this has to be done on the CP server


Run the recreator

Run the recreator on the CP server as root: # ./ 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.

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. To restore the contents please copy of the folders from /backup/.snapshot/

List of folders to be restored

Control Panel Server

/hsphere/local/home/cpanel/shiva/psoft_config/ H-Sphere configuration and properties files

/hsphere/shared/SiteStudio/psoft_config/ SiteStudio configuration and properties files
/hsphere/local/home/cpanel/apache/etc/ Apache configuration and properties files
/hsphere/local/home/cpanel/shiva/shiva-templates/IMAGES Control Panel icons and images
/hsphere/local/home/cpanel/shiva/custom Custom Control Panel templates, etc.
/hsphere/shared/SiteStudio/var/websites SiteStudio user data
/var/lib/pgsql H-Sphere and SiteStudio system databases and database settings
/hsphere/local/home/cpanel/.kb/ H-Sphere knowledge bases
/hsphere/local/home/cpanel/.attachments/ H-Sphere knowledge bases

Web Server

/hsphere/local/home/ User Home Directories
/usr/local/frontpage FrontPage Extensions settings
/hsphere/local/config/ httpd and ftp configs
/var/spool/cron/ (Linux) Customer Crontabs
/var/cron/tabs/ (FreeBSD) Customer Crontabs
/hsphere/shared/apache/htdocs/phpMyAdmin/ phpMyAdmin configuration file
/hsphere/shared/apache/htdocs/phpPgAdmin/ phpPgAdmin configuration file
/hsphere/local/network/ ips file, etc.
/hsphere/shared/awstats/wwwroot/cgi-bin/ AWS configs et al.

Mail Server

/hsphere/local/var/vpopmail/etc/ vpopmail settings
/hsphere/local/var/vpopmail/domains/ Mail domains
/var/qmail/control/ Settings for qmail addons
/var/qmail/users/ qmail users
/hsphere/local/config/ httpd and ftp configs
/var/lib/mysql/ (Linux)
/var/db/mysql/ (FreeBSD) MySQL databases (used to store user settings for integrated antispam and antivirus software)
/hsphere/shared/apache/htdocs/horde/config/horde.php Horde settings

DNS Server

/etc/named.conf/ Main DNS config
/hsphere/local/var/named/ DNS zone files

MySQL Server

/var/lib/mysql/ (Linux) MySQL settings and databases
/var/db/mysql/ (FreeBSD) MySQL settings and databases
User PostgreSQL Server
/var/lib/pgsql/ (Linux) User postgres settings and databases
/usr/local/pgsql/ (FreeBSD) User postgres settings and databases


Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.