Configuring user-defined resources
PowerHA® SystemMirror® allows you to configure user-defined resource instances for an already configured user-defined resource type.
User-defined resource configuration does the following:
- Creates an instance of the chosen resource type with default attribute values.
- All resource type management scripts/methods can access the attributes
associated with the user-defined resource by using the
cludres -q
command. - A method is called in a specific format, for example, if the
start method is
/opt/udrmethods/start_resource.sh
, then the format to call the method is/opt/udrmethods/start_resource.sh <resourcename>
. - If a monitor method is specified in the user-defined resource
type configuration, a custom resource monitor is added for the current
resource with a name in the format of
cludrm_<RESOURCENAME>
. The custom monitor is added with the following default values for monitor attributes, which you can change by using the Change/Show User Defined Resource Monitor option in SMIT:- INVOCATION = longrunning
- MONITOR_INTERVAL = 60
- HUNG_MONITOR_SIGNAL = 9
- STABILIZATION_INTERVAL = 15
- RESTART_COUNT = 3
- FAILURE_ACTION = fallover
- RESTART_INTERVAL = 15
- MONITOR_METHOD = monitor method defined in resource type configuration
- CLEANUP_METHOD = cleanup method defined in resource type configuration, otherwise, this is the stop script
- FAILURE_NOTIFY_METHOD = failure notification method defined in resource type configuration
- RESTART_METHOD = restart method defined in resource type configuration otherwise start method
- Enables the ability to add the user defined resource type to the resource group in the User defined resources field of the resource group.
To configure a user-defined resource, complete these steps: