9.5 Onlining and Offlining (Loading and Unloading) Cluster Resources from a Cluster Node

After a cluster resource is enabled, the load and unload scripts take care of starting and stopping the services or mounting and dismounting the volumes that are configured in the resource. You start services and mount devices by onlining the resource. You stop services and unmount devices by offlining the resource.

9.5.1 Guidelines for Onlining and Offlining Resources

Onlining a resource runs the load script, which loads the resource on its primary preferred node, or on an alternate preferred node if the primary node is not available.

Offlining a resource runs the unload script and unloads the resource from the server. The resource cannot be loaded on any other servers in the cluster and remains unloaded until you load it again.

If monitoring is enabled for a resource and you start, stop, or restart services outside the cluster framework while the cluster resource is online, a monitoring failure occurs, which triggers a failover of the cluster resource.

If you edit the scripts for a resource that is online, the changes you made do not take effect until the resource is taken offline and brought online again.

If a resource is in a comatose state, you must take the resource offline before it can be brought online again.

There are maintenance situations where you might need to control services by using the standard interfaces. In these rare cases, you must first offline the cluster resource, then use non-cluster methods to start and stop a service or mount and dismount a volume outside the cluster framework. When you are done, online the cluster resource to resume normal cluster handling.

9.5.2 Using iManager to Online and Offline Resources

  1. In iManager, select Clusters, then select Cluster Manager.

  2. Browse to locate and select the Cluster object of the cluster you want to manage.

    A list of resources and resource states displays.

  3. Select the check box next to the resource you want to manage, then click Online or click Offline.

9.5.3 Using the Cluster Online Command

To bring a resource online on its most preferred node that is currently active:

  1. As the root user, enter the following at the console command prompt of a cluster node:

    cluster online resource_name
    

To bring a resource online on a specific active node:

  1. As the root user, enter the following at the console command prompt of a cluster node:

    cluster online resource_name node_name
    

9.5.4 Using the Cluster Offline Command

To take a resource offline:

  1. As the root user, enter the following at the console command prompt of a cluster node:

    cluster offline resource_name
    

9.5.5 Using the Cluster Migrate Command

The cluster migrate command can be used to move a specified resource from the node where it is currently running to the node you specify in the command. The destination node must be running in the cluster and also be assigned in the resource's Preferred Nodes list.

  1. As the root user, enter the following at the console command prompt of a cluster node:

    cluster migrate resource_name node_name