You can create the following types of resources:
A primitive resource, the most basic type of a resource.
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”.
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”.
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
Start the Linux HA Management Client and log in to the cluster as described in Section 4.1, “Linux HA Management Client”.
In the left pane, select and click +.
In the next dialog, set the following parameters for the resource:
Enter a unique ID for the resource.
From the list, select the resource agent class you want to use for that resource: , , or . For more information, see Section 14.1, “Supported Resource Agent Classes”.
If you selected as class, specify also the of your OCF resource agent. The OCF specification allows multiple vendors to supply the same resource agent.
From the list, select the resource agent you want to use (for example, or ). A short description for this resource agent is displayed below.
The selection you get in the list depends on the (and for OCF resources also on the ) you have chosen.
Below , set the .
Activate if you want the cluster to monitor if the resource is still healthy.
![]() |
Click . The next window shows a summary of the parameters that you have already defined for that resource. All required 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.
If all parameters are set according to your wishes, click 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 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 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”.
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
In the Linux HA Management Client main window, click in the left pane to see the resources already configured for the cluster.
In the right pane, select the resource to modify and click (or double-click the resource). The next window shows the basic resource parameters and the , or already defined for that resource.
![]() |
To add a new meta attribute or instance attribute, select the respective tab and click .
Select the of the attribute you want to add. A short is displayed.
If needed, specify an attribute . Otherwise the default value of that attribute will be used.
Click to confirm your changes. The newly added or modified attribute appears on the tab.
If all parameters are set according to your wishes, click to finish the configuration of that resource. The configuration dialog is closed and the main window shows the modified resource.
![]() | 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 + in the top right corner of the resource configuration dialog or in the view of the main window. The editor displaying the XML code allows you to or the XML elements or to manually edit the XML code. | |