Virtuozzo Fail-over cluster VPS Server Node Setup
Virtuozzo 4.0 can easily create a cluster of 2 or more than 2 hardware nodes running on the same Virtuozzo container which means it provides higher availability for virtuozzo container installation. Virtuozzo Software Fail-over clusters are based upon the following :
- Rhel 5 - linux distribution clustering source
- Automatic restart of failed services
In a cluster configuration, SCSI / ISCSI storage device is a cluster storage. LUN is created as per clustered service. /vz partition is on shared SCSI storage device and format as ext3. GFS is not used in this case. It consists of server1 + server2 where server1 shows server2 hardware node failures. In order to setup a virtuozzo fail-over cluster, servers needs to be in the same system architecture.
In order to setup Virtuozzo Fail-over Cluster Server, you will need to follow the steps :
- Host OS installation
Server configurations and partitions differ from stand-along installation. If in case of iSCSI, you should use Gigabit Ethernet adapters and network infrastructure. It's important to allocate atleast 8GB Disk space allocated to root partition.
At the time of partitioning, /vz partition is not required. This partition will only be located on a remote SCSI storage. Cluster administation GUI tool requires X-windows installed on the server. Also, disable standard firewall as Virtuozzo containers and data sharing clusters use TCP/IP ports. However, in this case, you can use external firewall.
- Installation / Configuration of Cluster Software
Once the host OS installation is complete, update your server software to the latest version and then following tasks need to be completed :
-> Installation of cluster software. Following is required :
perl-Net-Telnet;
cman;
system-config-cluster;
rgmanager;
openais.
-> Edit /usr/share/cluster/fs.sh
and changing it as follows:
- Configuration of shared cluster storage with integration with server
Once the cluster software is installed, you can then configure the shared storage which is used as /vz partition. It can configured from a single server or different servers. Allocated resources should be calculated on bassis of the requirements of the containers and virtuozzo templates. Number of partitions should read the number of clustered services and less than number of physical servers in your cluster. All servers should access shared LUNs.
- Installation / Configuration of Parallel's Virtuozzo 4.0 software on server
Once shared cluster storage configuration is done, make partitions using fdisk utility or software and then create file system :
# mke2fs -j -J size=100 –L vz-1 -b 4096 -i 4096 /dev/sdc1
Replace /dev/sdc1 with real disk device.
# mount LABEL=vz-1 /vz
After that, unmount the device:
# umount /vz
- Installing Parallels Containers 4.0
First, make sure /vz partition is mounted on the server. If they are mounted already, no mounting isrequired. add /vz entry to /etc/fstab and run virtuozzo installer by :
# ./install
If you do not have /vz partition, make sure you remove /vz entry in /etc/fstab and run the installer as :
# ./install --clustermode
Once installation is complete, update Virtuozzo software. If your server has /vz mounted :
Remove the /vz entry from the /etc/fstab file;
disable the vz service:
# chkconfig vz off
stop the vz service:
# /etc/init.d/vz stop</parameter></parameter>
|