
16
Deploying a Failover Cluster
# ccs_tool ppscr /etc/init.d/pvapp
b IP address. An IP address is required for each pair of vz and parallels-server services. The
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, to create an IP resource, you can run this command:
# 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:
• Enable the service autostart.
• 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.
• 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 this
service on the same server before relocating it to another one.
• Specify the IP address resource for the service.
• Specify the proper failover domain.
• Specify the script and filesystem resources for the service. This will ensure the proper start
order of the services.
If you plan to use the Parallels Virtual Automation application for managing your cluster
nodes, you also need to indicate the PVA scripts.
• 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 -s
pvascr -s ppscr -f PSBM_partition_1 pservice1
This command creates the clustered service pservice1; enables its autostart (-a 1);
configures the service to run exclusively (-x 1); sets its recovery policy to restart (-r
restart); assigns IP address 10.10.10.200 to the service (-i 10.10.10.200); and
associates the service with the failover domain domain1 (-d domain1), the scripts
vzservice, pvascr, ppscr (-s vzservice, -s pvascr, -s ppscr), and the filesystem
resource PSBM_partition_1 (-f PSBM_partition_1).
Komentarze do niniejszej Instrukcji