How to perform a one time replication of a volume to another site without adding it to a replicated volume group (RVG) data set
A volume does not need to be part of the replicated volume group (RVG) to perform a replication between the two hosts.
It is often necessary to perform a temporary replication during the minimum window time, or when there is a need to add more volumes into a replicated data set. However, despite the fact that a volume does not need to be part of the replicated volume group, a valid VERITAS Volume Replicator (tm) license needs to be installed.
This is the command which performs a replication without using the RVG data set:
Syncvol performs difference-base synchronization by default. However, to perform full synchronization, specify the -full option.
* Prior to using the above command, configure Volume Manager synchronization permissions by editing the
/etc/vx/vras/.rdg file on the secondary RVG. This file must contain the name of the disk group that contains the RVG or a + sign. It is recommended that the remote disk group and remote volume names match.
* Ensure there is no I/O activity going on the volume on the primary site. The volume must not be used prior to running this command, therefore unmount the file system first before executing this command on both hosts. In this way, the data which needs to be synchronized across to the other node remains current at that point in time.
For example in this case, from the primary host site, host A:
# vradmin -g vvrdg syncvol myvol gilly:svrdg:myvol
The following output will be displayed as a result of this command:
vradmin: WARNING: Volumes on remote hosts host B will be overwritten. Continue with syncvol (y/n)? y Message from Primary: vxrsync: INFO: Starting differences volume synchronization to remote vxrsync: INFO: Source host: 10.251.56.110 vxrsync: INFO: Destination host(s): 10.251.56.211 vxrsync: INFO: Total volumes: 1 vxrsync: INFO: Total size: 100.000 MB