Sun Cluster 3.0 Data Services Installation and Configuration Guide

Example-Switching the Resource Group to a New Primary

This example shows how to switch a resource group (rg-1) from its current primary (phys-schost-1) to the potential primary (phys-schost-2). You first verify that the resource group is online on phys-schost-1, perform the switch, then verify that the group is switched to be online on phys-schost-2.


phys-schost-1# scstat -g
...
Resource Group Name:          rg-1
  Status                                           
    Node Name:                phys-schost-1
    Status:                   Online

    Node Name:                phys-schost-2
    Status:                   Offline
...
phys-schost-1# scswitch -z -g rg-1 -h phys-schost-2
phys-schost-1# scstat -g
...
Resource Group Name:          rg-1
  Status                                           
    Node Name:                phys-schost-2
    Status:                   Online

    Node Name:                phys-schost-1
    Status:                   Offline
...