Sun Cluster Software Installation Guide for Solaris OS

ProcedureHow to Create a Replication Resource Group on the Primary Cluster

Before You Begin

Ensure that you completed steps in How to Configure the File System on the Secondary Cluster for the NFS Application.

  1. Access nodeA as superuser.

  2. Register SUNW.HAStoragePlus as a resource type.

    nodeA# /usr/cluster/bin/scrgadm -a -t SUNW.HAStoragePlus
  3. Create a replication resource group for the disk device group.

    nodeA# /usr/cluster/bin/scrgadm -a -g devicegroup-stor-rg -h nodeA,nodeB

    The name of the disk device group


    The name of the replication resource group

    -h nodeA, nodeB

    Specifies the cluster nodes that can master the replication resource group

  4. Add a SUNW.HAStoragePlus resource to the replication resource group.

    nodeA# /usr/cluster/bin/scrgadm -a -j devicegroup-stor \
    -g devicegroup-stor-rg -t SUNW.HAStoragePlus \
    -x GlobalDevicePaths=devicegroup \
    -x AffinityOn=True

    The HAStoragePlus resource for the replication resource group.

    -x GlobalDevicePaths=

    Specifies the extension property that Sun StorEdge Availability Suite software relies on.

    -x AffinityOn=True

    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.

  5. Add a logical hostname resource to the replication resource group.

    nodeA# /usr/cluster/bin/scrgadm -a -L -j lhost-reprg-prim \
    -g devicegroup-stor-rg -l lhost-reprg-prim

    lhost-reprg-prim is the logical hostname for the replication resource group on the primary cluster.

  6. Enable the resources, manage the resource group, and bring the resource group online.

    nodeA# /usr/cluster/bin/scswitch -Z -g devicegroup-stor-rg
    nodeA# /usr/cluster/bin/scswitch -z -g devicegroup-stor-rg -h nodeA
  7. Verify that the resource group is online.

    nodeA# /usr/cluster/bin/scstat -g

    Examine the resource group state field to confirm that the replication resource group is online on nodeA.

Next Steps

Go to How to Create a Replication Resource Group on the Secondary Cluster.