Oracle® Solaris Cluster Data Services Planning and Administration Guide

Exit Print View

Updated: September 2014, E39648–02
 
 

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 2-15  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: