Sun Cluster Data Services Planning and Administration Guide for Solaris OS

ProcedureHow to Remove a Resource Group

Before You Begin

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


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

  2. Run the following command to switch the resource group offline.


    # scswitch -F -g resource-group
    
    -F

    Switches a resource group offline

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


    # scswitch -n -j resource
    
    -n

    Disables the resource

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

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

    For each resource, type the following command.


    # scrgadm -r -j resource
    
    -r

    Removes the specified resource

    -j resource

    Specifies the name of the resource to be removed

  5. Remove the resource group.


    # scrgadm -r -g resource-group
    
    -r

    Removes the specified resource group

    -g resource-group

    Specifies the name of the resource group to be removed.

  6. Verify that the resource group has been removed.


    # scrgadm -p
    

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


# scswitch -F -g resource-group-1
# scrgadm -r -j resource-1
# scrgadm -r -g resource-group-1

See Also

The following man pages: