Adding, deleting, and modifying resource types

After creating a resource type, use the command haattr to add its attributes. By default, resource type information is stored in the types.cf configuration file.

To add a resource type

# hatype -add resource_type

To delete a resource type

# hatype -delete resource_type

You must delete all resources of the type before deleting the resource type.

To add or modify resource types in main.cf without shutting down VCS

# hatype -modify resource_type SourceFile "./resource_type.cf"

The information regarding resource_type is stored in the file config/resource_type.cf, and an include line for resource_type.cf is added to the main.cf file. Make sure that the path to the SourceFile exists on all nodes before you run this command.

To set the value of static resource type attributes

# hatype -modify ...