![]() |
![]() |
![]() |
![]() |
![]() |
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:
/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