Share via


Creating Resources

The following procedure describes the general process of creating a resource.

To Create a Resource

  1. Obtain a handle to a new or existing group in which to create the resource. See CreateClusterGroup and OpenClusterGroup.
  2. Determine the name of the new resource. The name must be unique in the cluster.
  3. Determine whether the new resource should have its own Resource Monitor. This should be done only for volatile or unstable resources or for debugging.
  4. 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.