The HAStorage and the HAStoragePlus resource types can be used to configure the following options.
Coordinate the boot order of disk devices and resource groups. Other resources in the resource group that contains the HAStorage or HAStoragePlus resource are brought online only after the disk device resources become available.
With AffinityOn set to True, enforce colocation of resource groups and disk device groups on the same node. This enforced colocation enhances the performance of disk-intensive data services.
In addition, HAStoragePlus is capable of mounting any global file system that is in an unmounted state. For more information, see Planning the Cluster File System Configuration.
If the device group is switched to another node while the HAStorage or HAStoragePlus resource is online, AffinityOn has no effect. The resource group does not migrate with the device group. However, if the resource group is switched to another node, the setting of AffinityOn to True causes the device group to follow the resource group to the new node.
See Synchronizing the Startups Between Resource Groups and Disk Device Groups for information about the relationship between disk device groups and resource groups. The SUNW.HAStorage(5) and SUNW.HAStoragePlus(5) man pages provide additional details.
The following types of data services require HAStorage or HAStoragePlus:
Data services with nodes that are not directly connected to storage
Data services that are disk intensive
Some nodes in the node list of a data service's resource group might not be directly connected to the storage. In this situation, you must coordinate the boot order between the storage and the data service. To meet this requirement, configure the resource group as follows:
Configure HAStorage or HAStoragePlus resources in the resource group.
Set the dependency of the other data service resources to the HAStorage or HAStoragePlus resource.
Some data services, such as Sun Cluster HA for Oracle and Sun Cluster HA for NFS are disk intensive. If your data service is disk intensive, ensure that the resource groups and disk device groups are colocated on the same node. To meet this requirement, perform the following tasks.
Adding an HAStorage or HAStoragePlus resource to your data service resource group
Switching the HAStorage or HAStoragePlus resource online
Setting the dependency of your data service resources to the HAStorage resource or HAStoragePlus resource
Setting AffinityOn to True
The failback settings must be identical for both the resource group and device groups.
Some data services are not disk intensive. For example, Sun Cluster HA for DNS, which reads all of its files at startup, is not disk intensive. If your data service is not disk intensive, configuring the HAStorage resource type or HAStoragePlus resource type is optional.
To determine whether to create HAStorageresources or HAStoragePlus resources in a data service resource group, consider the following criteria.
Use HAStoragePlus if you are using Sun Cluster 3.0 5/02 or Sun Cluster 3.1.
Use HAStorage if you are using Sun Cluster 3.0 12/01 or earlier.
To integrate any file system locally into a Sun Cluster environment that is configured for failover, you use the HAStoragePlus resource type. For more information, see Planning the Cluster File System Configuration. If you are using Sun Cluster 3.0 12/01 or earlier, you must first upgrade to Sun Cluster 3.0 5/02 or Sun Cluster 3.1.