Creating Cluster Resources

You can create the following types of resources:

Primitive

A primitive resource, the most basic type of a resource.

Group

Groups contain a set of resources that need to be located together, start sequentially and stop in the reverse order. For more information, refer to Section 4.10, “Configuring a Cluster Resource Group”.

Clone

Clones are resources that can be active on multiple hosts. Any resource can be cloned, provided the respective resource agent supports it. For more information, refer to Section 4.11, “Configuring a Clone Resource”.

Master

Masters are a special type of a clone resources, masters can have multiple modes. Masters must contain exactly one group or one regular resource.

Procedure 4.1. Adding Primitive Resources

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

  2. In the left pane, select Resources and click Add+Primitive.

  3. In the next dialog, set the following parameters for the resource:

    1. Enter a unique ID for the resource.

    2. From the Class list, select the resource agent class you want to use for that resource: heartbeat, lsb, ocf or stonith. For more information, see Section 14.1, “Supported Resource Agent Classes”.

    3. If you selected ocf as class, specify also the Provider of your OCF resource agent. The OCF specification allows multiple vendors to supply the same resource agent.

    4. From the Type list, select the resource agent you want to use (for example, IPaddr or Filesystem). A short description for this resource agent is displayed below.

      The selection you get in the Type list depends on the Class (and for OCF resources also on the Provider) you have chosen.

    5. Below Options, set the Initial state of resource.

    6. Activate Add monitor operation if you want the cluster to monitor if the resource is still healthy.

  4. Click Forward. The next window shows a summary of the parameters that you have already defined for that resource. All required Instance Attributes for that resource are listed. You need to edit them in order to set them to appropriate values. You may also need to add more attributes, depending on your deployment and settings. For details how to do so, refer to Adding or Modifying Meta and Instance Attributes.

  5. If all parameters are set according to your wishes, click Apply to finish the configuration of that resource. The configuration dialog is closed and the main window shows the newly added resource.

You can add or modify the following parameters for primitive resources at any time:

Meta Attributes

Meta attributes are options you can add for a resource. They tell the CRM how to treat a specific resource. For an overview of the available meta attributes, their values and defaults, refer to Section 14.3, “Resource Options”.

Instance Attributes

Instance attributes are parameters for certain resource classes that determine how they behave and which instance of a service they control. For more information, refer to Section 14.5, “Instance Attributes”.

Operations

The monitor operations added for a resource. These instruct the cluster to make sure that the resource is still healthy. Monitor operations can be added for all classes of resource agents. You can also set particular parameters, such as Timeout for start or stop operations. For more information, refer to Section 4.7, “Configuring Resource Monitoring”.

Procedure 4.2. Adding or Modifying Meta and Instance Attributes

  1. In the Linux HA Management Client main window, click Resources in the left pane to see the resources already configured for the cluster.

  2. In the right pane, select the resource to modify and click Edit (or double-click the resource). The next window shows the basic resource parameters and the Meta Attributes, Instance Attributes or Operations already defined for that resource.

  3. To add a new meta attribute or instance attribute, select the respective tab and click Add.

  4. Select the Name of the attribute you want to add. A short Description is displayed.

  5. If needed, specify an attribute Value. Otherwise the default value of that attribute will be used.

  6. Click OK to confirm your changes. The newly added or modified attribute appears on the tab.

  7. If all parameters are set according to your wishes, click OK to finish the configuration of that resource. The configuration dialog is closed and the main window shows the modified resource.

[Tip]XML Source Code

The Linux HA Management Client allows you to view the XML that is generated from the parameters that you have defined for a specific resource or for all resources. Select Show+XML Mode in the top right corner of the resource configuration dialog or in the Resources view of the main window.

The editor displaying the XML code allows you to Import or Export the XML elements or to manually edit the XML code.