Specifying Which Services Should Be Loaded

Last, you need to specify what service should be loaded as a clustered resource. Here you can specify the name of just one service, but it is possible as well to load more than one service from one line. By default, the Heartbeat software will try to locate the name of this script from /etc/ init.d and /etc/ha.d/resource.d, so make sure the script you refer to is present at one of these locations. This script will automatically be started with the start argument, and it will be stopped with the stop argument. Therefore, the script you refer to should listen to these arguments. Most, if not all, scripts that are provided with SUSE Linux Enterprise Server 10 can be executed with start or stop as a parameter.

Note You just learned how to configure a complex resource for use in the Heartbeat cluster environment. Configuring a shared resource can be much easier. It is, for example, possible to configure just a secondary IP address as the cluster resource, just the shared storage device without anything else, or just the service you want to cluster without using any shared storage. For example, the following line is a perfectly legal resource configuration that will load the IP address on server1 by default.


Also, you can use the following to configure a clustered resource that doesn't need any shared storage because all the configuration it requires is available on the local file system:

server1 dhcp

Was this article helpful?

0 0

Post a comment