Example of How to Configure Device Groups and Resource Groups

This chapter describes how disk device groups and resource groups were configured for an NFS application. The following table lists the names of the groups and resources that were created
for the example configuration.

Table 6–2 Summary of the Groups and Resources in the Example Configuration

Group or Resource

Name

Description

Disk device group

devicegroup

The disk device group.

Replication resource group and resources

devicegroup-stor-rg

The replication resource group.

lhost-reprg-prim, lhost-reprg-sec

The logical hostnames for the replication resource group on the primary cluster and the secondary cluster.

devicegroup-stor

The HAStoragePlus resource for the replication resource group.

Application resource group and resources

nfs-rg

The application resource group.

lhost-nfsrg-prim, lhost-nfsrg-sec

The logical hostnames for the application resource group on the primary cluster and the secondary cluster.

nfs-dg-rs

The HAStoragePlus resource for the application.

nfs-rs

The NFS resource.

With the exception of devicegroup-stor-rg, the names of the groups and resources are example names that can be changed as required. The replication resource group must have a name with the format devicegroup-stor-rg.

Specifies that the SUNW.HAStoragePlus resource must perform an affinity switchover for the global devices
and cluster file systems defined by -x GlobalDevicePaths=. Therefore, when the replication resource group fails over or is switched over, the associated device group is switched over.

For more information about these extension properties, see the SUNW.HAStoragePlus(5) man page.

Creating Application Resource Groups

This section describes how application resource groups were
created for an NFS application. The procedures in this section are specific to the application. The procedures cannot be used for another type of application.

How to Create an Application Resource Group on the Primary Cluster

Access nodeA as superuser.

Register SUNW.nfs as a resource type.

nodeA# scrgadm -a -t SUNW.nfs

If SUNW.HAStoragePlus has not been registered as a resource type, register it.

Specifies a directory into which the resources in the group can write administrative files.

Auto_start_on_new_cluster=False

Specifies that the application resource group is not started automatically.

RG_dependencies=devicegroup-stor-rg

Specifies the resource groups that the application resource group depends on. In this example, the application resource group depends on the replication
resource group.

If the application resource group is switched over to a new primary node, the replication resource group is automatically switched over. However, if the replication resource group is switched over to a new primary node, the application resource group must be manually switched over.

Specifies that the application resource must perform an affinity switchover for the global devices and cluster file systems defined by -x GlobalDevicePaths=. Therefore, when the application resource
group fails over or is switched over, the associated device group is switched over.

For more information about these extension properties, see the SUNW.HAStoragePlus(5) man page.