Symantec logo

Example 2—Backing up using the snapshot feature and the vradmin ibc command

  1. Perform step 1 and step 2 from Example 1—Decision support using the snapshot feature and the vradmin ibc command.
  2. Create the prefreeze, onfreeze, and postfreeze scripts and copy them in the /etc/vx/vvr/ibc_scripts/dss_app directory on the Secondary host.

    In the prefreeze script, include the following commands to add snapshot plexes to the Secondary data volumes hr_dv01 and hr_dv02:

    #!/bin/sh

/usr/sbin/vxassist -g hrdg snapstart hr_dv01

/usr/sbin/vxassist -g hrdg snapstart hr_dv02

In the onfreeze script, include the following command to take the snapshot of the Secondary volumes:

/usr/sbin/vxrvg -g hrdg snapshot hr_rvg

In the postfreeze script, include the following commands to back up the snapshot volumes and to reattach the snapshot plexes to the original volumes after the backup is complete:

# Back up data from SNAP-hr_dv01 and SNAP-hr_dv02

dd if=/dev/vx/rdsk/hrdg/SNAP-hr_dv01 of=/dev/rmt/0

dd if=/dev/vx/rdsk/hrdg/SNAP-hr_dv02 of=/dev/rmt/0

# Reattach the snapshot volumes to the Secondary data volumes

/usr/sbin/vxrvg -g hrdg snapback hr_rvg

  1. Run the following vradmin ibc command from any host in the RDS:

    # vradmin -g hrdg ibc hr_rvg dss_app london