Previous page

Next page

Locate page in Contents

Print this page

Configuring Shared Storages on NFS

The process of configuring a data shared storage located on an NFS volume includes the following steps:

  1. Configuring the data shared storage for the first node in the cluster.
  2. Configuring the data shared storage for all the other nodes in the cluster.

Configuring the Shared Storage for the First Cluster Node

To configure the data shared storage for the fist node in the cluster, do the following:

  1. Log in to any of your cluster nodes.
  2. Make sure that all NFS services are enabled on the node:

    # chkconfig rpcbind on

    # chkconfig nfslock on

    # chkconfig nfs on

    # chkconfig netfs on

  3. Enable the cluster mode, and stop the vz , parallels-server , and PVA Agent services:

    # prlsrvctl set --cluster-mode on

    # service vz stop

    # service parallels-server stop

    # service pvaagentd stop

    # service pvapp stop

  4. Move the /vz directory to a temporary directory /vz1 and create a new /vz directory:

    # mv /vz /vz1; mkdir /vz

  5. Mount the shared data storage located on the NFS volume to /vz :

    # service rpcbind start

    # service nfslock start

    # mount SERVER :/ PATH /vz

    where SERVER is the IP or hostname of your NFS server and PATH denotes the path to the shared directory on the NFS server.

  6. Move all data from the temporary /vz1 directory to /vz , and remove /vz1 :

    # mv /vz1/* /vz/

    # rm -rf /vz1

  7. Configure the shared data storage to be automatically mounted to /vz on the system boot. To do this, add the /vz entry to the /etc/fstab file:

    SERVER : PATH /vz nfs defaults,noatime 0 0

Configuring the Shared Storage for Other Cluster Nodes

To configure the data shared storage for the second and all remaining nodes in the cluster, do the following:

  1. Log in to the respective node.
  2. Make sure that all NFS services are enabled on the node:

    # chkconfig rpcbind on

    # chkconfig nfslock on

    # chkconfig nfs on

    # chkconfig netfs on

  3. Enable the cluster mode, and stop the vz and parallels-server services:

    # prlsrvctl set --cluster-mode on

    # service vz stop

    # service parallels-server stop

  4. Remove the contents of the /vz directory:

    # rm -rf /vz/*

  5. Configure the shared data storage to be automatically mounted to /vz on the system boot. To do this, add the /vz entry to the /etc/fstab file:

    SERVER : PATH /vz nfs defaults,noatime 0 0

Once you have configured all your cluster nodes, reboot them and make sure each node has the shared data storage mounted to /vz .