Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: November 2019
 
 

Removing Resource Groups

To remove a resource group in the CLI, you must first remove all of the resources from the resource group.


Note -  You can also use the Oracle Solaris Cluster Manager browser interface to delete a resource group and all of its resources, and to bring a resource group offline. For Oracle Solaris Cluster Manager log-in instructions, see How to Access Oracle Solaris Cluster Manager in Administering an Oracle Solaris Cluster 4.4 Configuration.

Perform this procedure from any cluster node.

How to Remove a Resource Group

Before You Begin

To identify all resources in the resource group that you are removing, type the following command:

# clresource show -v
  1. On a cluster member, assume the root role that provides solaris.cluster.modify RBAC authorization.
  2. Run the following command to switch the resource group offline.
    # clresourcegroup offline resource-group
    resource-group

    Specifies the name of the resource group to take offline.

  3. Disable all of the resources in the resource group that you are removing.
    # clresource disable resource
    resource

    Specifies the name of the resource to disable.

  4. Remove all of the resources from the resource group.

    For each resource, type the following command.

    # clresource delete resource
    resource

    Specifies the name of the resource to be removed.

  5. Remove the resource group.
    # clresourcegroup delete resource-group
    resource-group

    Specifies the name of the resource group to be removed.

  6. Verify that the resource group has been removed.
    # clresourcegroup show
Example 18  Removing a Resource Group

This example shows how to remove a resource group (resource-group-1) after you have removed its resource (resource-1).

# clresourcegroup offline resource-group-1
# clresource disable resource-1
# clresource delete resource-1
# clresourcegroup delete resource-group-1

See Also

The following man pages: