Sharing a Highly Available Local File System Across Zone Clusters

You can use the SUNW.HAStoragePlus resource type to share a highly available local
file system directory managed by a global cluster resource to a zone cluster.
This method consolidates the storage and shares a highly available local file system
with different applications running on different zone clusters. For information on adding a
file system to a zone cluster, see Adding File Systems to a Zone Cluster in Oracle Solaris Cluster Software Installation Guide.

This section explains the requirements and procedures for sharing a highly available local
file system directory across zone clusters.

Configuration Requirements for Sharing a Highly Available Local File System Directory to a Zone Cluster

The directory of a highly available local file system managed by a
global cluster resource can be shared to a zone cluster. To share a
highly available local file system directory, the configuration must meet the following requirements:

Create an HAStoragePlus resource in a failover resource group in a global cluster with the file system where the directory to be shared belongs.

The directory of the highly available local file system that you want to share must be configured to a zone cluster as an lofs file system.

Create an HAStoragePlus resource in a failover resource group in a zone cluster with the lofs file system.

The zone cluster resource must have an offline restart dependency on the global cluster resource.

The zone cluster resource's resource group must have a strong positive affinity or strong positive affinity with failover delegation on the global cluster resource's resource group.

Note - The applications sharing a highly available local file system will experience an availability
impact due to collocation of the applications. An application failure on a node
and its intent to fail over might have a cascading effect on other
applications and the applications would be forced to fail over to another node.
Mitigate the problem by reducing the number of applications that are sharing the
file system. If the file system that is being shared is UFS, you
can choose to configure the cluster file system to a zone cluster. See
How to Set Up the HAStoragePlus Resource for Cluster File Systems.

How to Set Up the HAStorage Plus Resource Type to Share a Highly Available Local File System Directory to a Zone Cluster

The following procedure explains how to set up the HAStoragePlus resource type to
share a highly available local file system (for example, UFS) or a
ZFS pool directory to a zone cluster called zoneclustername.

On any node in the global cluster, assume the root role that provides
solaris.cluster.modify RBAC authorization.

Perform the steps from a node in the global cluster, because the
dependencies and affinities from a zone cluster to a global cluster can only
be set by an authorized cluster node administrator.

Create a failover resource group in the global cluster.

# clresourcegroup creategc-hasp-resource-group

Register the HAStoragePlus resource type in the global cluster.

# clresourcetype register SUNW.HAStoragePlus

Create an HAStoragePlus resource in a failover resource group of the global cluster
with the highly available local file system that contains the directory that you
want to share to a zone cluster.

Create an HAStoragePlus resource in a failover resource group of the zone cluster.
Configure the zone cluster with the lofs file system for a shared
directory with a dependency on the global cluster resource that you want to
share to the zone cluster.