Sun Cluster Software Installation Guide for Solaris OS

Guidelines for Configuring Data Replication

This section provides guidelines for configuring data replication between clusters. This section also contains tips for configuring replication resource groups and application resource groups. Use these guidelines when you are configuring data replication for your cluster.

This section discusses the following topics:

Configuring Replication Resource Groups

Replication resource groups colocate the device group under Sun StorEdge Availability Suite software control with the logical hostname resource. A replication resource group must have the following characteristics:

Configuring Application Resource Groups

To be highly available, an application must be managed as a resource in an application resource group. An application resource group can be configured for a failover application or a scalable application.

Application resources and application resource groups configured on the primary cluster must also be configured on the secondary cluster. Also, the data accessed by the application resource must be replicated to the secondary cluster.

This section provides guidelines for configuring the following application resource groups:

Configuring Resource Groups for a Failover Application

In a failover application, an application runs on one node at a time. If that node fails, the application fails over to another node in the same cluster. A resource group for a failover application must have the following characteristics:

The following figure illustrates the configuration of an application resource group and a replication resource group in a failover application.

Figure 6–4 Configuration of Resource Groups in a Failover Application

Figure illustrates the configuration of an application resource group and a replication resource group in a failover application.

Configuring Resource Groups for a Scalable Application

In a scalable application, an application runs on several nodes to create a single, logical service. If a node that is running a scalable application fails, failover does not occur. The application continues to run on the other nodes.

When a scalable application is managed as a resource in an application resource group, it is not necessary to colocate the application resource group with the device group. Therefore, it is not necessary to create an HAStoragePlus resource for the application resource group.

A resource group for a scalable application must have the following characteristics:

The following figure illustrates the configuration of resource groups in a scalable application.

Figure 6–5 Configuration of Resource Groups in a Scalable Application

Figure illustrates the configuration of a resource groups in a scalable application.

Guidelines for Managing a Failover or Switchover

If the primary cluster fails, the application must be switched over to the secondary cluster as soon as possible. To enable the secondary cluster to take over, the DNS must be updated. In addition, the secondary volume must be mounted on the mount point directory for the application file system.

The DNS associates a client with the logical hostname of an application. After a failover or switchover, the DNS mapping to the primary cluster must be removed, and a DNS mapping to the secondary cluster must be created. The following figure shows how the DNS maps a client to a cluster.

Figure 6–6 DNS Mapping of a Client to a Cluster

 Figure shows how the DNS maps a client to a cluster.

To update the DNS, use the nsupdate command. For information, see the nsupdate(1M) man page. For an example of how to cope with a failover or switchover, see Example of How to Cope With a Failover or Switchover.

After repair, the primary cluster can be brought back online. To switch back to the original primary cluster, perform the following steps:

  1. Synchronize the primary cluster with the secondary cluster to ensure that the primary volume is up-to-date.

  2. Update the DNS so that clients can access the application on the primary cluster.

  3. Mount the primary volume on to the mount point directory for the application file system.