Configuring Shared Storages on NFS
The process of configuring a data shared storage located on an NFS volume includes the following steps:
-
Configuring the data shared storage for the first node in the cluster.
-
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:
-
Log in to any of your cluster nodes.
-
Make sure that all NFS services are enabled on the node:
# chkconfig rpcbind on
# chkconfig nfslock on
# chkconfig nfs on
# chkconfig netfs on
-
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
-
Move the
/vz
directory to a temporary directory
/vz1
and create a new
/vz
directory:
# mv /vz /vz1; mkdir /vz
-
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.
-
Move all data from the temporary
/vz1
directory to
/vz
, and remove
/vz1
:
# mv /vz1/* /vz/
# rm -rf /vz1
-
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:
-
Log in to the respective node.
-
Make sure that all NFS services are enabled on the node:
# chkconfig rpcbind on
# chkconfig nfslock on
# chkconfig nfs on
# chkconfig netfs on
-
Enable the cluster mode, and stop the
vz
and
parallels-server
services:
# prlsrvctl set --cluster-mode on
# service vz stop
# service parallels-server stop
-
Remove the contents of the
/vz
directory:
# rm -rf /vz/*
-
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
.
|