Sun Cluster System Administration Guide for Solaris OS

ProcedureHow to Configure a Hitachi TrueCopy Replication Group

Before You Begin

First, configure the Hitachi TrueCopy device groups on shared disks in the primary cluster. This configuration information is specified in the/etc/horcm.conf file on each of the cluster's nodes that has access to the Hitachi array. For more information about how to configure the /etc/horcm.conf file, see the Sun StorEdge SE 9900 V Series Command and Control Interface User and Reference Guide.


Caution – Caution –

The name of the Sun Cluster device group that you create (Solaris Volume Manager, Veritas Volume Manager, or raw-disk) must be the same as the name of the replicated device group.


  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on all nodes connected to the storage array.

  2. Add the horcm entry to the /etc/services file.


    horcm  9970/udp

    Specify a port number and protocol name for the new entry.

  3. Specify the Hitachi TrueCopy device group configuration information in the /etc/horcm.conf file.

    For instructions, refer to the documentation that shipped with your TrueCopy software.

  4. Start the TrueCopy CCI daemon by running the horcmstart.sh command on all nodes.


    # /usr/bin/horcmstart.sh
  5. If you have not already created the replica pairs, create them now.

    Use the paircreate command to create your replica pairs with the desired fence level. For instructions on creating the replica pairs, refer to your TrueCopy documentation.

  6. On each node configured with replicated devices, verify that data replication is set up correctly by using the pairdisplay command.


    # pairdisplay -g group-name
    Group PairVol(L/R) (Port#,TID,LU),Seq#,LDEV#,P/S,Status,Fence,Seq#,P-LDEV# M 
    group-name pair1(L) (CL1-C , 0, 9) 54321   58..P-VOL PAIR DATA ,12345 29   -
    group-name pair1(R) (CL1-A , 0, 29)12345   29..S-VOL PAIR DATA ,----- 58   -
  7. Verify that all nodes can master the replication groups.

    1. Determine which node contains the primary replica and which node contains the secondary replica by using the pairdisplay command.


      # pairdisplay -g group-name
      Group PairVol(L/R) (Port#,TID,LU),Seq#,LDEV#,P/S,Status,Fence,Seq#,P-LDEV# M 
      group-name pair1(L) (CL1-C , 0, 9) 54321   58..P-VOL PAIR DATA ,12345 29   -
      group-name pair1(R) (CL1-A , 0, 29)12345   29..S-VOL PAIR DATA ,----- 58   -

      The node with the local (L) device in the P-VOL state contains the primary replica and the node with the local (L) device in the S-VOL state contains the secondary replica.

    2. Make the secondary node the master by running the horctakeover command on the node that contains the secondary replica.


      # horctakeover -g group-name
      

      Wait for the initial data copy to complete before proceeding to the next step.

    3. Verify that the node that performed the horctakeover now has the local (L) device in the P-VOL state.


      # pairdisplay -g group-name
      Group PairVol(L/R) (Port#,TID,LU),Seq#,LDEV#,P/S,Status,Fence,Seq#,P-LDEV# M 
      group-name pair1(L) (CL1-C , 0, 9) 54321   58..S-VOL PAIR DATA ,12345 29   -
      group-name pair1(R) (CL1-A , 0, 29)12345   29..P-VOL PAIR DATA ,----- 58   -
    4. Run the horctakeover command on the node that originally contained the primary replica.


      # horctakeover -g group-name
      
    5. Verify that the primary node has changed back to the original configuration by running the pairdisplay command.


      # pairdisplay -g group-name
      Group PairVol(L/R) (Port#,TID,LU),Seq#,LDEV#,P/S,Status,Fence,Seq#,P-LDEV# M 
      group-name pair1(L) (CL1-C , 0, 9) 54321   58..P-VOL PAIR DATA ,12345 29   -
      group-name pair1(R) (CL1-A , 0, 29)12345   29..S-VOL PAIR DATA ,----- 58   -
Next Steps

Continue the configuration of your replicated device by following the instructions in How to Configure DID Devices for Replication Using Hitachi TrueCopy.