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.
Become superuser on a node in the cluster.
Disable each resource of the resource type to be removed.
# scswitch -n -j resource-name |
Disables the resource.
Specifies the name of the resource to disable.
Remove each resource of the resource type to be removed.
# scrgadm -r -j resource-name |
Removes the specified resource.
Specifies the name of the resource to remove.
Remove the resource type.
# scrgadm -r -t resource-type-name |
Removes the specified resource type.
Specifies the name of the resource type to remove.
Verify that the resource type has been removed.
# scrgadm -p |
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 |