Putting a device group in maintenance state prevents that device group from automatically being brought online whenever one of its devices is accessed. You should put a device group in maintenance state when completing repair procedures that require that all I/O activity be quiesced until completion of the repair. Putting a device group in maintenance state also helps prevent data loss by ensuring that a device group is not brought online on one node while the disk set or disk group is being repaired on another node.
For instructions on how to restore a corrupted diskset, see Restoring a Corrupted Diskset.
The phys-schost# prompt reflects a global-cluster prompt. Perform this procedure on a global cluster.
This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical.
You can also take an active device group offline using the Oracle Solaris Cluster Manager GUI. See the Oracle Solaris Cluster Manager online help for more information. For GUI log-in instructions, see How to Access Oracle Solaris Cluster Manager.
# cldevicegroup disable devicegroup
# cldevicegroup offline devicegroup
For Solaris Volume Manager:
# metaset -C take -f -s diskset
Caution - If you are taking ownership of a Solaris Volume Manager disk set, you must use the metaset -C take command when the device group is in maintenance state. Using metaset -t brings the device group online as part of taking ownership.
Caution - Before taking the device group out of maintenance state, you must release ownership of the disk set or disk group. Failure to release ownership can result in data loss.
# metaset -C release -s diskset
# cldevicegroup online devicegroup # cldevicegroup enable devicegroup
This example shows how to put device group dg-schost-1 in maintenance state, and remove the device group from maintenance state.
[Place the device group in maintenance state.]# cldevicegroup disable dg-schost-1 # cldevicegroup offline dg-schost-1 [If needed, manually import the disk set or disk group.]# metaset -C take -f -s dg-schost-1 [Complete all necessary repair procedures.] [Release ownership.]# metaset -C release -s dg-schost-1 [Bring the device group online.]# cldevicegroup online dg-schost-1 # cldevicegroup enable dg-schost-1