Sun Cluster Data Services Planning and Administration Guide for Solaris OS

ProcedureHow to Disable a Resource and Move Its Resource Group Into the UNMANAGED State

Note –

When a shared address resource is disabled, the resource might still be able to respond to ping(1M) commands from some hosts. To ensure that a disabled shared address resource cannot respond to ping commands, you must bring the resource's resource group to the UNMANAGED state.

Before You Begin

Ensure that you have the following information.

To determine the resource and resource group names that you need for this procedure, type the following command:

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

  2. Disable all resources in the resource group.

    # scswitch -n -j resource-list

    Disables the resources

    -j resource-list

    Specifies a comma-separated list of the resources in the resource group

    Note –

    You can specify the resources in resource-list in any order. The scswitch command disables the resources in the order that is required to satisfy dependencies between the resources, regardless of their order in resource-list.

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

    # scswitch -F -g resource-group

    Switches a resource group offline

    -g resource-group

    Specifies the name of the resource group to take offline

  4. Move the resource group into the UNMANAGED state.

    # scswitch -u -g resource-group

    Moves the specified resource group in the UNMANAGED state

    -g resource-group

    Specifies the name of the resource group to move into the UNMANAGED state

  5. Verify that the resources are disabled and the resource group is in the UNMANAGED state.

    # scrgadm -pv -g resource-group

Example 2–18 Disabling a Resource and Moving the Resource Group Into the UNMANAGED State

This example shows how to disable the resource (resource-1) and then move the resource group (resource-group-1) into the UNMANAGED state.

# scswitch -n -j resource-1
# scswitch -F -g resource-group-1
# scswitch -u -g resource-group-1
# scrgadm -pv -g resource-group-1
Res Group name:                                             resource-group-1
  (resource-group-1) Res Group RG_description:              <NULL>
  (resource-group-1) Res Group management state:            Unmanaged
  (resource-group-1) Res Group Failback:                    False
  (resource-group-1) Res Group Nodelist:                    phys-schost-1
  (resource-group-1) Res Group Maximum_primaries:           2
  (resource-group-1) Res Group Desired_primaries:           2
  (resource-group-1) Res Group RG_dependencies:             <NULL>
  (resource-group-1) Res Group mode:                        Failover
  (resource-group-1) Res Group network dependencies:        True
  (resource-group-1) Res Group Global_resources_used:       All
  (resource-group-1) Res Group Pathprefix:
  (resource-group-1) Res name:                              resource-1
    (resource-group-1:resource-1) Res R_description:
    (resource-group-1:resource-1) Res resource type:        SUNW.apache
    (resource-group-1:resource-1) Res resource group name:  resource-group-1
    (resource-group-1:resource-1) Res enabled:              True
    (resource-group-1:resource-1) Res monitor enabled:      False
    (resource-group-1:resource-1) Res detached:             False

See Also

The following man pages: