Setting up the disk group on secondary site for replication

Create the replication objects on the secondary site from the master node of 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:

    • dg_pri is the disk group on the primary site that VVR will replicate. For example: rac1_vol

    • rvg_pri is the RVG on the primary site. For example: rac1_rvg

    • pri_host is the virtual IP address or resolvable virtual host name of the cluster on the primary site.

      For example: clus1_1

    • sec_host is the virtual IP address or resolvable virtual host name of the cluster on the secondary site.

      For example: clus2_1

    For example, the command to add the cluster on the primary site to the Replicated Data Set (RDS) is:

    						vradmin -g oradatadg addsec rac1_rvg \
    						clus1_1
    						clus2_1

    On the secondary site, the above command performs the following tasks:

    • Creates an RVG within the specified disk group using the same name as the one for the primary site

    • Associates the data and SRL volumes that have the same names as the ones on the primary site with the specified RVG

    • Adds a data change map (DCM) for the data volume

    • Creates cluster RLINKS for the primary and secondary sites with the default names

  2. Verify the list of RVGs in the RDS by executing the following command.
     # vradmin -g oradatadg -l printrvg
    						

    For example:

    Replicated Data Set: rac1_rvg
    Primary:
    HostName: 10.180.88.187 <localhost>
    RvgName: rac1_rvg
    DgName: rac1_vol
    datavol_cnt: 1
    vset_cnt: 0
    srl: rac1_srl
    RLinks:
    name=rlk_clus2_1_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_clus1_1_rac1_rvg, detached=on,
    synchronous=off

    Note:

    Once the replication is started the value of the detached flag will change the status from ON to OFF.