Adding, deleting, and modifying resource attributes

Resource names must be unique throughout the cluster and you cannot modify resource attributes defined by the system, such as the resource state.

To modify a new resource

To set a new resource's enabled attribute to 1

The agent managing the resource is started on a system when its Enabled attribute is set to 1 on that system. Specifically, the VCS engine begins to monitor the resource for faults. Agent monitoring is disabled if the Enabled attribute is reset to 0.

To add a resource attribute

# haattr -add resource_type attribute [value] [dimension][default ...]

The variable value is a -string (default), -integer, or -boolean.

The variable dimension is -scalar (default), -keylist, -assoc, or -vector.

The variable default is the default value of the attribute and must be compatible with the value and dimension. Note that this may include more than one item, as indicated by ellipses (...).

To delete a resource attribute

# haattr -delete resource_type attribute

To add a static resource attribute

# haattr -add -static resource_type static_attribute [value] [dimension] [default ...]

To delete a static resource attribute

# haattr -delete -static resource_type static_attribute

To add a temporary resource attribute

# haattr -add -temp resource_type attribute [value] [dimension] [default ...]

To delete a temporary resource attribute

# haattr -delete -temp resource_type attribute

To modify the default value of a resource attribute

# haattr -default resource_type attribute new_value ...

The variable new_value refers to the attribute's new default value.