|
In H-Sphere 3.0, H-Sphere installation and update is performed by a common script.
This script brings about more flexibility in the process of installation, update and post-configuration,
and introduces a variety of advanced features and improvements.
Before running H-Sphere updater/installer:
- Download the install/update script - it is actually located and run in a similar way as the update script in lower versions.
For example, for H-Sphere 3.0 RC4 run under root on Linux box:
# wget http://www.psoft.net/shiv/HS/releases/U30.0/U30.0RC4/U30.0RC4
- Run script with corresponding option:
- To update H-Sphere, run the script in the update mode:
# sh U30.0RC4 update
You will get the list of update modes, each having its own options.
- To install H-Sphere, run the script in the install mode:
# sh U30.0RC4 install
You will get the list of installation modes, each having its own options.
- If you run:
# sh U30.0RC4
the script will choose to update or install, according to what is available on the server:
- CP Unix user cpanel
- the hsphere.properties file
- consistent H-Sphere system PostgreSQL database
- H-Sphere related software (if user ran updater mistakenly on a non-CP box)
Important: It is highly recommended to run script with specified update or install mode.
Update Modes and Options
After running the script with update mode, you will get the below menu with the choice of update options:
==========================================================================
UPDATE
==========================================================================
(1) hsupdate -- update H-Sphere cluster, except SiteStudio.
(for more details, type '1').
==========================================================================
(2) update -- update H-Sphere cluster including SiteStudio.
(for more details, type '2').
==========================================================================
(3) sitestudio -- update SiteStudio on the Control Panel box.
(for more details, type '3').
==========================================================================
(4) cpupdate -- update H-Sphere core and related packages only.
(for more details, type '4').
==========================================================================
(5) deploy -- H-Sphere cluster post-update configuration.
(for more details, type '5').
==========================================================================
(6) hspackages -- H-Sphere cluster update in custom mode; additional
update options (forming custom configuration files,
maintaining exclude package lists, skipping CP update,
etc.)
(for more details, type '6').
==========================================================================
(7) 3rdpackages -- install missing files for H-Sphere 'hsp'
packages on physical boxes.
(for more details, type '7').
==========================================================================
(8) revert -- downgrade packages to previous versions.
(for more details, type '8').
==========================================================================
If you want more info on every mode, simply type its number in the command line.
Update modes:
hsupdate - common H-Sphere update, excluding system postgres and SiteStudio.
Options:
hsupdate [ help ] [ ips=IP1,IP2,.. ] [ group=lgroup1,lgroup2,... ]
[ private ] [ strict ] [ nomd5 ] [ force ] [ skip=stage ] [ url=Link ]
[ mirror=mirror_number ]
update - H-Sphere update, including system postgres and SiteStudio.
Options:
update [ help ] [ ips=IP1,IP2,.. ] [ group=lgroup1,lgroup2,... ]
[ private ] [ strict ] [ nomd5 ] [ force ] [ skip=stage ] [ url=Link ]
[ mirror=mirror_number ]
sitestudio - SiteStudio update.
Options:
sitestudio [ help ] [ ips=IP1,IP2,.. ] [ group=lgroup1,lgroup2,... ] [ url=Link ]
[ mirror=mirror_number ]
cpupdate - update only Control Panel packages, templates, jars, etc.
Options:
cpupdate [ help ] [ ips=IP1,IP2,.. ] [ group=lgroup1,lgroup2,... ] [ url=Link ] [ mirror=mirror_number ]
- deploy - the so-called "deploy" mode is run after all the system packages are installed/updated.
In the deploy mode H-Sphere updater downloads and installs post-configuration scripts
that perform general H-Sphere post-install/post-update configuration.
H-Sphere install/update script runs in the deploy mode
to complete Single Server Edition H-Sphere installation in the
the postsingle mode.
Options:
deploy [ help ] [ ips=IP1,IP2,.. ] [ group=lgroup1,lgroup2,... ]
[ private ] [ strict ] [ nomd5 ] [ force ] [ skip=stage ] [ url=Link ] [ mirror=mirror_number ]
hspackages - advanced mode to update H-Sphere related packages across H-Sphere cluster.
Options:
hspackages [ help ] [ ips=IP1,IP2,.. ] [ group=lgroup1,lgroup2,... ]
[ private ] [ strict ] [ nomd5 ] [ force ] [ skip=stage ]
[ reconfig=front-end|spamassassin|all ]
[ mode=modename ] [ oscode ] [ mirror=mirror_number ]
[ exclude=[show|add:pattern1,...|del:pattern1,...|del:all] |
exclude-mysql=show|add|del | exclude-postgresql=show|add|del ]
[ sitestudio ] [ postgres ] [ url=Link ] [ verbose ]
[ ctemplates=php,httpd,ftpd,mysql,pgsql,httpdcp,named ]
[ edit=IP:/path/to/custom/template ] [ skip-exclude ]
[ old-platform ]
Read more about hspackages options.
3rdpackages - install missing files
for H-Sphere 'hsp' packages on physical boxes.
3rdpackages [ help ]
This is a long term operation. To examine the output of the script use tail -f logfile command.
revert - downgrade packages to previous versions.
(More..)
Options:
revert pkgs=[ list | package_name,package_name2,.. ] [ help ]
Options description:
Installation Options
After running the script with install mode, you will get the below menu with the choice of installation options:
======================================================================
H-SPHERE INSTALLATION
======================================================================
(1) install -- Full installation mode. Requires prepared
config.xml with H-Sphere cluster configuration.
(for more details, type '1').
======================================================================
(2) cpinstall -- Control Panel installation mode.
Afterwards, log into H-Sphere Control Panel
Web interface, go through Pre-Configuration
wizard, and then complete installation in mode (3).
(for more details, type '2').
======================================================================
(3) postinstall -- post-installation H-Sphere cluster configuration,
to be run after mode (2).
(for more details, type '3').
======================================================================
(4) sitestudio -- install SiteStudio on the Control Panel box.
(for more details, type '4').
======================================================================
If you want more info on every mode, simply type its number in the command line.
Install modes:
install - H-Sphere installation from the prepared config.xml file
with configuration of H-Sphere cluster to be installed. config.xml contains information about
H-Sphere physical and logical servers, with root passwords to physical server where H-Sphere is to be installed
(see sample config.xml).
During the installation this file is temporarily stored in the ~cpanel/.settings directory.
You can also use the cpinstall mode and run H-Sphere Pre-Configuration Wizard in admin CP to create
and import/export config.xml.
install xml=CONFIG_XML [ skip-sitestudio ] [ url=Link ]
[ mirror=mirror_number ]
cpinstall - install only system PostgreSQL and packages to be able to run Control Panel. Later on,
you need to log into admin CP and go through H-Sphere Pre-Configuration Wizard to shape your H-Sphere cluster,
and finally, run the installer in the postinstall mode.
cpinstall zone=SERVICE_ZONE ip=IP1 [ ip2=IP2 ]
[ natip=NAT_IP ] [ mask=MASK ] [ url=Link ]
[ mirror=mirror_number ]
postinstall - run this mode to complete H-Sphere installation after cpinstall and
after adding servers and services in the H-Sphere Pre-Configuration mode in admin CP.
postinstall
sitestudio - install SiteStudio on the Control Panel box.
sitestudio [ url=Link ] [ mirror=mirror_number ]
Where:
Obligatory parameters:
- xml - the path to config.xml file. This path should not be /hsphere/shared/etc/config.xml
- zone - service domain name (e.g., samplehosting.com).
- ip - service zone IP - IP of Control Panel box.
Optional parameters:
- ip2 - the IP of the second DNS logical server (ns2). If ip2 is not set, the ns2 logical server will not be created.
- natip - the external server IP for NAT mapping.
- mask - the network mask. If mask is not set, the default value (255.255.255.0) is used.
- skip-sitestudio - install H-Sphere without SiteStudio.
- group - comma-separated list of logical servers to be installed.
Possible groups: mail, web, dns, mysql, pgsql, cp, vps (using common ips and group tags is allowed).
- url - alternative path to package download, this option differs from 'mirror', which includes predefined list
of the maintained HS mirrors. Package lists are downloaded from default location or mirror, pointed via mirror option.
(Default path is http://www.psoft.net/shiv/HS)
- mirror
(in HS 3.0+)- allows setting another mirror instead of the default one.
At this moment available the following HS servers: [0] - psoft.net (USA, default) and [1] - mirror.psoft.net (Europe).
|