Article ID: 111889, created on Aug 15, 2011, last review on May 7, 2014

  • Applies to:
  • Virtuozzo containers for Linux 4.7
  • Virtuozzo containers for Linux 4.6


Parallels Containers provides an ability to use clustering technology to increase server availability and efficiency. Details of the RHCS cluster (in Parallels Containers environment) deployment procedure are outlined in the "Deploying RHCS Clusters In Parallels-Based Systems" guide. This article provides additional comments while performing 4-nodes RHCS failover cluster deployment.


1) LABEL'ing iSCSI disks

In a 4-node cluster (3 active, 1 passive), you will have 3 iSCSI disks for /vz data partition. Each active node will have its own data partition with a UNIQUE label. You'll perform something like this example:

We will give these Volumes "rhcs1", "rhcs2", and "rhcs3" names and the iSCSI devices we attached are identified as /dev/sda, /dev/sdb and /dev/sdc:

# mke2fs -j -J size=100 -L rhcs1 -b 4096 -i 4096 /dev/sda
# mke2fs -j -J size=100 -L rhcs2 -b 4096 -i 4096 /dev/sdb
# mke2fs -j -J size=100 -L rhcs3 -b 4096 -i 4096 /dev/sdc

2) Parallels Virtuozzo Containers installation

a. Choose the "active" nodes at the time of installation and configure fstab to mount the iSCSI volume:

Node 1:
LABEL=rhcs1 /vz ext3 _netdev,noatime 0 0

Node 2:
LABEL=rhcs2 /vz ext3 _netdev,noatime 0 0

Node 3:
LABEL=rhcs3 /vz ext3 _netdev,noatime 0 0

b. Mount the /vz partition on active nodes:
# mount -a

c. Start PVC install using auto-installer on active nodes:

# ./vzinstall-linux.bin

Choose "Download and Install". Allow the installer to update the software.

d. Reboot and wait for post-install tasks to finish.

e. Log-in and:
- Remove the /vz entry from the /etc/fstab file;
- Disable the PVC service:
# chkconfig vz off

- Stop the PVC service:
# /etc/init.d/vz stop

- On the "passive" node, extract the PVC installation and start the installer using "clustermode" parameter:
# ./install --clustermode

- Reboot the node after installation.
- Disable the vz service:
# chkconfig vz off

- Stop the vz service:
# /etc/init.d/vz stop

3) Configure RCHS (four node cluster)

- Add three IP resources
- Add three file-system resources (for each iSCSI disk, make sure that the partition is referred to by the volume label instead of the device name)
- Add one script resources (vz-cluster)
- Add N-1 Services to this cluster (four nodes = 3 active services). Properly add resources to those Services.

36627b12981f68a16405a79233409a5e d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 0c05f0c76fec3dd785e9feafce1099a9 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF