This method performs the backup directly from the Secondary data volumes while the replication to Secondary is frozen. Make sure the Secondary SRL is large enough to hold the writes sent from the Primary while the backup is in progress. In this method, the Secondary data volumes are under replication control, and hence you cannot write to them. Use this method only if the backup process does not perform any writes to the Secondary data volumes.
To perform block-level backup of the Secondary data
Create the following directory on both Primary and Secondary hosts:
/etc/vx/vvr/ibc_scripts/dss_app
Create the quiesce and unquiesce scripts and copy them to the /etc/vx/vvr/ibc_scripts/dss_app directory on the Primary host.
In the quiesce script, provide commands to put the application that is using the Primary data volumes hr_dv01 and hr_dv02 in quiesce mode.
In the unquiesce script, provide commands to resume the application or take it out of the quiesce mode.
Create the onfreeze script and copy it in the /etc/vx/vvr/ibc_scripts/dss_app directory on Secondary host:
In the onfreeze script, include the following commands to perform block-level backup of the Secondary data volumes:
#!/bin/sh dd if=/dev/vx/rdsk/hrdg/hr_dv01 of=/dev/rmt/0 dd if=/dev/vx/rdsk/hrdg/hr_dv02 of=/dev/rmt/0
Run the following vradmin ibc command from any host in the RDS:
# vradmin -g hrdg ibc hr_rvg dss_app london