Sun Cluster 2.2 System Administration Guide

Switching Over Logical Hosts

The haswitch(1M) command is used to switch over the specified logical hosts (and associated disk groups, data services, and logical IP addresses) to the node specified by the destination host. For example, the following command switches over logical hosts hahost1 and hahost2 to both be mastered by phys-hahost1.


# haswitch phys-hahost1 hahost1 hahost2

If the logical host has more than one data service configured on it, you cannot selectively switch over just one data service, or a subset of the data services. Your only option is to switch over all the data services on the logical host.


Caution - Caution -

If a failover or switchover occurs while a logical host's file system is busy, the logical host fails over only partially; some of the disk group remains on the original target physical host. Do not attempt a switchover if a logical host's file system is busy. Also, do not access any host's file system locally, because file locking does not work correctly when both NFS locks and local locks are present.



Note -

Both the destination host and the current master of the logical host must be in the cluster membership. Otherwise, the command fails.