
25
Deploying a Data Sharing Cluster
• apc port=1 is the name of the fencing device (APC) and the unique port ID of the APC
switch power for the psbmNode server. Each node in the cluster must have its own unique
port ID.
Run the ccs_tool addnode command for each node you want to add to the cluster.
4 Create cluster resources. For a data sharing cluster, you need to create two resources—script
and IP address.
a Script. One script per cluster is required. The following command creates the script
resource vzservice:
# ccs_tool addscript vzservice /etc/init.d/vz-cluster
When creating scripts, just replace vzservice with your own name.
b IP address. An IP address is required for each pair of vz and parallels-server services. This
IP address is used for a direct SSH connection to the server. Note that the IP address will
be managed by the cluster and, therefore, must not be already in use or assigned to any
node. For example:
# ccs_tool addip 10.10.10.111
5 Create and configure failover domains. You need to create one failover domain per cluster
service managed by the cluster and configure the list of cluster nodes that will be able to run
cluster services from these domains. For example, you can run the following command to
create the failover domain domain1 and add the nodes psbmNode1 and psbmNode2 to this
domain:
# ccs_tool addfdomain domain1 psbmNode1 psbmNode2
6 Create clustered services. The number of services must correspond to the number of active
servers and shared partitions. When creating a clustered service, do the following:
a Enable the service autostart.
b Configure the service operation mode:
• For an active/passive cluster, configure the service to run exclusively. This will prevent the
cluster from trying to run more than one pair of vz and parallels-server services on the same
physical server.
• For an active/active cluster, make sure that the service is configured not to run exclusively
so that more than one vz service will be able to run on the same node.
a Set the service recovery policy to relocate or restart. In the latter case, if the vz and
parallels-server services are stopped for some reason, the cluster will try to restart these
services on the same server before relocating it to another one.
b Specify the IP address resource for the service.
c Specify the proper failover domain.
d Specify the script resource for the service.
e Specify the name to assign to the service.
For example:
# ccs_tool addservice -a 1 -x 1 -r restart -i 10.10.10.200 -d domain1 -s vzservice
pservice1
Komentarze do niniejszej Instrukcji