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:


# scrgadm -pv
Steps
  1. Become superuser on a cluster member.

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


    # 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 that you are removing.


    # scrgadm -r -j resource
    
    -r

    Removes the specified resource

    -j

    Specifies the name of the resource to remove

  4. Unregister the resource type.


    # scrgadm -r -t resource-type
    
    -r

    Unregisters 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 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.


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

See Also

The following man pages: