Symantec logo
Configuring replication for the secondary site

To create objects for replication on the secondary site, use the vradmin command with the addsec option. To set up replication on the secondary site:

  Creating a disk group on the storage with the same name as the equivalent disk group on the primary site if you have not already done so.

See Installing Oracle on the secondary site

  Creating volumes for the database and SRL on the secondary site.

See Creating the data and SRL volumes on the secondary site

  Editing the /etc/vx/vras/.rdg file on the secondary site.

See Editing the /etc/vx/vras/.rdg files

  Resolvable virtual IP addresses that set network RLINK connections as host names of the primary and secondary sites.

See Setting up IP addresses for RLINKs on each cluster

  Creating the replication objects on the secondary site.

See Setting up disk group on secondary site for replication

Creating the data and SRL volumes on the secondary site

When creating volumes for the data and SRL:

 To create the data and SRL volumes on the secondary site

  1. In the disk group created for the Oracle database, create a volume for data; in this case, the rac_vol1 volume on the primary site is 6.6 GB:

    # vxassist -g oradatadg make rac_vol1 6600M nmirror=2 disk1 disk2

  2. Create the volume for the SRL, using the same name and size of the equivalent volume on the primary site. Create the volume on a different disk from the disks for the database volume:

    # vxassist -g oradatadg make rac1_srl 1500M nmirror=2 disk4 disk6

Editing the /etc/vx/vras/.rdg files

Editing the /etc/vx/vras/.rdg file on the secondary site enables VVR to replicate the disk group from the primary site to the secondary site. On each node, VVR uses the /etc/vx/vras/.rdg file to check the authorization to replicate the RVG on the primary site to the secondary site. The file on each node in the secondary site must contain the primary disk group ID, and likewise, the file on each primary system must contain the secondary disk group ID.

  1. On a node in the primary site, display the primary disk group ID:

    # vxprint -l diskgroup

    .....

  2. On each node in the secondary site, edit the /etc/vx/vras/.rdg file and enter the primary disk group ID on a single line.
  3. On each cluster node of the primary cluster, edit the file and enter the primary disk group ID on a single line.
Setting up IP addresses for RLINKs on each cluster

Creating objects with the vradmin command requires resolvable virtual IP addresses that set network RLINK connections as host names of the primary and secondary sites.

 To set up IP addresses for RLINKS on each cluster

  1. For each RVG running on each cluster, set up a virtual IP address on one of the nodes of the cluster. These IP addresses are part of the RLINK. The example assumes that the public network interface isen0:1, the virtual IP address is 10.10.9.101, and the net mask is 255.255.240.0 for the cluster on the primary site:

    # ifconfig en0 10.180.13.140 netmask 255.255.248.0 broadcast
    10.180.95.255 alias

    # ifconfig en0 up

  2. Use the same commands with appropriate values for the interface, IP address, and net mask on the secondary site. The example assumes the interface is en0:1, virtual IP address is 10.11.9.102, and the net mask is 255.255.240.0 on the secondary site.
  3. Define the virtual IP addresses to correspond to a virtual cluster host name on the primary site and a virtual cluster host name on the secondary site. For example, update /etc/hosts file on all nodes in each cluster. The examples assume rac_clus101_priv has IP address 10.10.9.101 and rac_clus102_priv has IP address 10.11.9.102.
  4. Use the ping command to verify the links are functional.
Setting up disk group on secondary site for replication

Create the replication objects on the secondary site from the master node on the primary site, using the vradmin command.

 To set up the disk group on the secondary site for replication

  1. Issue the command in the following format from the cluster on the primary site:

    vradmin -g dg_pri addsec rvg_pri pri_host sec_host

    where:

  2. On the secondary site, the command:
  3. Verify the list of RVGs in the RDS by executing the following command.

    # # vradmin -g oradg -l printrvg

    For example:

    Reeplicated Data Set: rac1_rvg

    Primary:

    HostName: 10.180.88.187 <localhost>

    RvgName: rac1_rvg

    DgName: oradatadg

    datavol_cnt: 1

    vset_cnt: 0

    srl: rac1_srl

    RLinks:

    name=rlk_10.11.9.102_ rac1_rvg, detached=on,

    synchronous=off

    Secondary:

    HostName: 10.190.99.197

    RvgName: rac1_rvg

    DgName: oradatadg

    datavol_cnt: 1

    vset_cnt: 0

    srl: rac1_srl

    RLinks:

    name=rlk_10.10.9.101_ rac1_rvg, detached=on,

    synchronous=off


      Note   Once the replication is started the value off detached flag will change the status from off to on.