Chapter 3. Setting Up a Simple Resource

Contents

3.1. Configuration of a Resource Using the Heartbeat GUI
3.2. Manual Configuration of a Resource

Once your cluster is installed and set up as described in Chapter 2, Installation and Setup, you can start adding resources to your configuration. Configure resources using the Heartbeat GUI or manually using the command line tools. These options are shown using an IP address resource as an example.

3.1. Configuration of a Resource Using the Heartbeat GUI

Creating a sample cluster resource and migrating it to another server can help you test to ensure your Heartbeat cluster is functioning properly. A simple resource to configure and migrate is an IP address.

To create an IP address cluster resource:

  1. Start the HA Management Client by entering hb_gui at the command line.

  2. Log in to the cluster by clicking Connection, selecting Login, and then providing the username and password.

    The server and username fields should already be filled in.

  3. Click Resources, then click Add New Item, or click the + button.

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

  5. Enter a resource name (ID) for the IP address resource.

    For example, ipaddress1.

  6. In the Type section of the page, scroll down the list and select IPaddr (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 and 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 for the media configuration during the Heartbeat installation.

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

  11. Select the resource in the left pane of the main page, then click Resources+Start to start the new resource on the cluster.

To migrate the resource to another node in the cluster, enter the following command at the command line:

crm_resource -M -r resource_name -H hostname

For example, if the resource name is ipaddress1 and you want to migrate it to a cluster node named node2, you would enter the following at the command line:

crm_resource -M -r ipaddress1 -H node2


SUSE Linux Enterprise Server Heartbeat Guide 10 SP1