Sun Cluster Data Services Planning and Administration Guide for Solaris OS

ProcedureHow to Remove a Resource Type

Removing a resource type involves disabling and removing all resources of that type in the cluster before unregistering the resource type.

Before You Begin

To identify all instances of the resource type that you are removing, type the following command:


# clresourcetype show -v
  1. On a cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Disable each resource of the resource type that you are removing.


    # clresource disable resource
    
    resource

    Specifies the name of the resource to disable.

  3. Remove each resource of the resource type that you are removing.


    # clresource delete resource
    
    resource

    Specifies the name of the resource to remove.

  4. Unregister the resource type.


    # clresourcetype unregister resource-type
    
    resource-type

    Specifies the name of the resource type to unregister.

  5. Verify that the resource type has been removed.


    # clresourcetype show
    

Example 2–14 Removing a Resource Type

This example shows how to disable and remove all of the resources of a resource type (resource-type-1) and then unregister the resource type. In this example, resource-1 is a resource of the resource type resource-type-1.


# clresource disable resource-1
# clresource delete resource-1
# clresourcetype unregister resource-type-1

See Also

The following man pages: