Configuring a Heartbeat Cluster Resource Group

Some cluster resources are dependent on other components or resources, and require that each component or resource are started in a specific order and run together on the same server. An example of this is a Web server that requires an IP address and a file system. In this case each component is a separate cluster resource that is combined into a cluster resource group. The resource group would then run on a server or servers, and in case of a software or hardware malfunction, fail over to another server in the cluster the same as an individual cluster resource.

Figure 4.1. Group Resource

Group Resource

To configure a resource group using the above example:

  1. Start the HA Management Client and log in to the cluster as described in Section 4.1, “Graphical HA Management Client”.

  2. Select Resources+Add New Item, or click the + button.

  3. Choose Group as the resource item type, then click OK.

  4. Specify a Group name (ID), leave the default of True for both the Ordered and Collocated fields, then click OK.

    The Ordered value specifies, if the resources in the group will load in order you specified. The Collocated value specifies whether the resources in the group will run on the same server.

  5. Specify a resource name (ID) for the IP address resource portion of the group.

  6. In the Type section of the page, scroll down the list and select IPaddr2 (OCF Resource Agent) as the resource type.

  7. In the Parameters section of the page, find the line that was added for the IP address resource, click the line once, then click the line again under the Value heading to open a text field.

  8. Add the IP address for the IP address cluster resource.

  9. Click the Add Parameter button, select nic as the name and enter eth0 as the value, then click OK.

    The name and value are dependent on your hardware configuration and what you chose in Step 3.

  10. Click the Add button at the bottom of the page to add the resource to the group.

Adding a File System to the Resource Group

  1. Using the HA Management Client, select Resources, and then select Add New Item, or click the + button.

  2. Choose Native as the resource item type, then click OK.

  3. Specify a resource name (ID) for the file system resource, and in the Belong to Group field, select the group you created above.

  4. In the Type section of the page, scroll down the list and select Filesystem as the resource type.

  5. In the Parameters section of the page, find the line that was added for the file system resource, click the line once, then click the line again under the Value heading to open a text field.

  6. Add the name of the file system. For example, Reiser.

  7. Click the Add Parameter button and select Device as the name. For the value, specify the device where the file system is located, then click OK.

    The name and value are dependent on your hardware configuration. For example, you could specify /dev/sdc as the value if the file system is on that device.

Adding the Web Server to the Resource Group

  1. Using the HA Management Client, select Resources, and then select Add New Item, or click the + button.

  2. Choose Native as the resource item type, then click OK.

  3. Specify a resource name (ID) for the Web Server resource, and in the Belong to group field, select the group you created above.

  4. In the Type section of the page, scroll down the list and select Apache as the resource type.

  5. In the Parameters section of the page, find the line that was added for the Apache Web server resource, accept or change the path to the Apache Web server, then click OK.

[Note]Note

If you want to enable resource monitoring for a group resource, you must configure monitoring separately for each resource in the group that you want monitored.


SUSE Linux Enterprise Server Heartbeat Guide 10 SP2