Sun Cluster 3.0 U1 Data Services Installation and Configuration Guide

Removing Resource Types

You do not need to remove resource types that are not in use. However, if you want to remove a resource type, you can use this procedure to do so.

See the scrgadm(1M) and scswitch(1M) man pages for additional information.


Note -

Perform this procedure from any cluster node.


How to Remove a Resource Type

Before you remove a resource type, you must disable and remove all the resources of that type in all the resource groups in the cluster. Use the scrgadm -pv command to identify the resources and resource groups in the cluster.

  1. Become superuser on a cluster member.

  2. Disable each resource of the resource type to be removed.


    # scswitch -n -j resource
    
    -n

    Disables the resource.

    -j resource

    Specifies the name of the resource to disable.

  3. Remove each resource of the resource type to be removed.


    # scrgadm -r -j resource
    
    -r

    Removes the specified resource.

    -j

    Specifies the name of the resource to remove.

  4. Remove the resource type.


    # scrgadm -r -t resource-type
    
    -r

    Removes the specified resource type.

    -t resource-type

    Specifies the name of the resource type to remove.

  5. Verify that the resource type has been removed.


    # scrgadm -p
    

Example - Removing a Resource Type

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


# scswitch -n -j resource-1
# scrgadm -r -j resource-1
# scrgadm -r -t resource-type-1