Setting up the Replicated Volume Group on the primary site

Before creating the Replicated Volume Group (RVG) on the primary site, make sure the volumes and Cluster Volume Manager (CVM) group are active and online.

To review the status of replication objects on the primary site

  1. Verify the volumes you intend to include in the group are active.
  2. Review the output of the hagrp -state cvm command to verify that the CVM group is online.
  3. On each site, verify vradmin is running:
    #  ps -ef |grep vradmin
        root  536594  598036   0 12:31:25      0  0:00 grep vradmin

    If vradmin is not running start it:

    # vxstart_vvr
    VxVM VVR INFO V-5-2-3935 Using following ports:
    heartbeat: 4145
    vradmind: 8199
    vxrsyncd: 8989
    data: Anonymous-Ports
    To change, see vrport(1M) command
    #  ps -ef |grep vradmin
        root  536782       1   0 12:32:47      -  0:00 /usr/sbin/vradmind 
        root 1048622  598036   0 12:32:55      0  0:00 grep vradmin 
    # netstat -an |grep 4145
    tcp4       0      0  *.4145                 *.*         LISTEN
    udp4       0      0  *.4145                 *.*    

After reviewing the status of replication objects on the primary site, you can create the primary RVG.

The command to create the primary RVG takes the form:

vradmin -g disk_group createpri rvg_name data_volume srl_volume
			

where:

To create the primary RVG

  1. Determine which node is the CVM master node by entering:
    # vxdctl -c mode
  2. To create the dbdata_rvg RVG, you must run the following on the master node:
    # vradmin -g dbdatadg createpri dbdata_rvg dbdata_vol dbdata_srl

The command creates the RVG on the primary site and adds a Data Change Map (DCM) for each data volume. In this case, a DCM exists for dbdata_vol.