To identify all resources in the resource group that you are removing, type the following command:
# scrgadm -pv |
Become superuser on a cluster member.
Run the following command to switch the resource group offline.
# scswitch -F -g resource-group |
Switches a resource group offline
Specifies the name of the resource group to take offline
Disable all of the resources in the resource group that you are removing.
# scswitch -n -j resource |
Disables the resource
Specifies the name of the resource to disable
If any dependent data service resources exist in a resource group, you cannot disable the resource until you have disabled all of the resources that depend on it.
Remove all of the resources from the resource group.
For each resource, type the following command.
# scrgadm -r -j resource |
Removes the specified resource
Specifies the name of the resource to be removed
Remove the resource group.
# scrgadm -r -g resource-group |
Removes the specified resource group
Specifies the name of the resource group to be removed.
Verify that the resource group has been removed.
# scrgadm -p |
This example shows how to remove a resource group (resource-group-1) after you have removed its resource (resource-1).
# scswitch -F -g resource-group-1 # scrgadm -r -j resource-1 # scrgadm -r -g resource-group-1 |
The following man pages: