Sun Cluster 3.0 Data Services Installation and Configuration Guide

How to Remove a Resource

  1. Become superuser on a node in the cluster.

  2. Disable the resource for the resource that you want to remove.


    # scswitch -n -j resource-name
    
    -n

    Disables the resource.

    -j resource-name

    Specifies the name of the resource to disable.

  3. Remove the resource.


    # scrgadm -r -j resource-name
    
    -r

    Removes the specified resource.

    -j resource-name

    Specifies the name of the resource to remove.

  4. Verify that the resource has been removed.


    # scrgadm -p
    

Example-Removing a Resource

This example shows how to disable and remove a resource (resource-1).


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