Creating Resources
The following procedure describes the general process of creating a resource.
To Create a Resource
- Obtain a handle to a new or existing group in which to create the resource. See CreateClusterGroup and OpenClusterGroup.
- Determine the name of the new resource. The name must be unique in the cluster.
- Determine whether the new resource should have its own Resource Monitor. This should be done only for volatile or unstable resources or for debugging.
- Call CreateClusterResource to create a new resource in the specified group.
The resource may need to be configured before it can be brought online. For configuration procedures see Configuring Resources and Copying Resource Configurations.
Example Code
The following sections contain examples of resource configuration.