Symantec logo

Example 6—Setting up replication when data volumes are initialized with zeroes

Because the Primary data volumes are initialized with zeroes, the data on the Secondary node need not be synchronized with the Primary. However, we recommend that you zero initialize the Secondary data volumes.

  1. Create the data volumes by typing the following commands on the Primary seattle and Secondary london. Use different disks for the data volumes and SRL.

# vxassist -g hrdg make hr_dv01 4G layout=mirror \
logtype=dcm mirror=2 init=zero disk01 disk02

# vxassist -g hrdg make hr_dv02 4G layout=mirror \
logtype=dcm mirror=2 init=zero disk03 disk04

  1. Create the SRL on disks that do not have other volumes on them by typing the following command on the Primary seattle and Secondary london:

    # vxassist -g hrdg make hr_srl 4G mirror=2 disk05 disk06

  2. Create the Primary RVG of the RDS by typing the following command on the Primary seattle:

    # vradmin -g hrdg createpri hr_rvg hr_dv01,hr_dv02 hr_srl

  3. Make sure the /etc/vx/vras/.rdg file on the Secondary host london contains the Primary disk group ID of hrdg; then add the Secondary london to the RDS by typing the following command on the Primary seattle:

    # vradmin -g hrdg addsec hr_rvg seattle london


      Note   Do not start the application or mount the file system before completing step 5.


  4. Start replication using the option -f with the vradmin startrep command by typing the following command on any host in the RDS:

    # vradmin -g hrdg -f startrep hr_rvg london

After completing this step, start the application.