Sun Cluster 3.0 Data Services Installation and Configuration Guide

How to Remove a Resource Type

Before removing 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 node in the cluster.

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


    # scswitch -n -j resource-name
    
    -n

    Disables the resource.

    -j resource-name

    Specifies the name of the resource to disable.

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


    # scrgadm -r -j resource-name
    
    -r

    Removes the specified resource.

    -j

    Specifies the name of the resource to remove.

  4. Remove the resource type.


    # scrgadm -r -t resource-type-name
    
    -r

    Removes the specified resource type.

    -t resource-type-name

    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