Sun Cluster 2.2 System Administration Guide

Putting Logical Hosts in Maintenance Mode

Maintenance mode is useful for some administration tasks on file systems and disk groups. To put the disk groups of a logical host into maintenance mode, use the -m option to the haswitch(1M) command.


Note -

Unlike other types of ownership of a logical host, maintenance mode persists across node reboots.


For example, this command puts logical host hahost1 in maintenance mode.


phys-hahost2# haswitch -m hahost1

This command stops the data services associated with hahost1 on the Sun Cluster node that currently owns the disk group, and also halts the fault monitoring programs associated with hahost1 on all Sun Cluster nodes. The command also executes a umount(1M) of any Sun Cluster file systems on the logical host. The associated disk group ownership is released.

This command runs on any host, regardless of current ownership of the logical host and disk group.

You can remove a logical host from maintenance mode by performing a switchover specifying the physical host that is to own the disk group. For example, you could use the following command to remove hahost1 from maintenance mode:


phys-hahost1# haswitch phys-hahost1 hahost1