Symantec logo

Example 4—Setting up replication using Disk Group Split and Join

Do not perform the steps listed in Creating a Replicated Data Set for the examples.

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

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


      Note   You must create the SRL on disks that do not contain any other volume.


  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. Create a snapshot plex for each data volume in the Primary RVG by issuing the following commands on the Primary seattle:

    # vxassist -g hrdg snapstart hr_dv01

# vxassist -g hrdg snapstart hr_dv02

You can use the -b option with the vxassist snapstart command to run the command in the background. Note that if you use the -b option of the vxassist snapstart command, you must wait for the snapshot plexes for all the data volumes in the RVG to be created and synchronized completely before you proceed to the next step. When the plex synchronization completes, the output of the vxprint command displays the state of the new snapshot plex as snapdone.

  1. Start a Primary checkpoint by issuing the following command on the Primary seattle:

    # vxrvg -g hrdg -c checkpt_presync checkstart hr_rvg

  2. Take snapshot of each data volume in the Primary RVG by issuing the following command on the Primary seattle:

    # vxrvg -g hrdg snapshot hr_rvg

  3. End the checkpoint by issuing the following command on the Primary seattle:

    # vxrvg -g hrdg checkend hr_rvg

  4. Split the snapshot volumes into a new disk group by issuing the following command on the Primary seattle:

    # vxdg split hrdg new_hrdg SNAP-hr_dv01 SNAP-hr_dv02

  5. Rename each snapshot volume in the new disk group with the same name as the corresponding data volume in the Primary RVG by issuing the following commands on the Primary seattle:

    # vxedit -g new_hrdg rename SNAP-hr_dv01 hr_dv01

# vxedit -g new_hrdg rename SNAP-hr_dv02 hr_dv02

  1. Deport the split-off disk group, rename it to the same name as the disk group of the Primary RVG and change the ownership of the split-off disk group to be the Secondary host so that it may be automatically imported on the Secondary on reboot. To do this, issue the following command on the Primary seattle:

    # vxdg -n hrdg -h london deport new_hrdg

  2. Physically remove the disks contained in the deported disk group by following the procedures recommended by the disk manufacturer; then attach the disks to the Secondary host.
  3. On the Secondary london, import the disks that were moved over from the Primary if not already imported.

    # vxdg import hrdg

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

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


      Note   You must create the SRL on disks that do not contain any other volume.


  5. 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 to the RDS by issuing the following command on the Primary seattle:

    # vradmin -g hrdg addsec hr_rvg seattle london

  6. Start replication by issuing the following command on any host in the RDS:

    # vradmin -g hrdg -c checkpt_presync startrep hr_rvg london