Sun Cluster Data Services Planning and Administration Guide for Solaris OS

Removing Resources

Disable the resource before you remove it from a resource group.

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

  1. Become superuser on a cluster member.

  2. Disable the resource that you want to remove.


    # scswitch -n -j resource
    
    -n

    Disables the resource.

    -j resource

    Specifies the name of the resource to disable.

  3. Remove the resource.


    # scrgadm -r -j resource
    
    -r

    Removes the specified resource.

    -j resource

    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