Basic VERITAS Volume Replicator Commands

Veritas Volume Replicator (VVR) is data-replication software designed to contribute to an effective disaster recovery plan. VVR enables you to maintain a consistent copy of application data at one or more remote locations.

VVR is an option of Veritas Volume Manager (VxVM) that works as a fully integrated component of VxVM. VVR benefits from the robustness, ease of use, and high performance of VxVM, and at the same time, adds replication capability to VxVM. VVR can replicate existing VxVM configurations, and can be transparently configured while the application is active.

This post provides a list of some basic VVR administration commands:

Installation and Configuration

ActionCommand Line
Install VVR on both primary and all secondary systems pkgadd -d VRTSvras VRTSvrdoc
Add a license on all systems vxlicense -c
Configure a network connection between primary and secondary /etc/hostname.device /etc/hosts
Create identical kernel memory parameters on primary and secondary vi /etc/system * start kernal memory for vvr32 set vxio:voliomem_maxpool_sz= set vxio:vol_min_lowmem_sz= set vxio:vol_max_rdback_sz= set vxio:vol_max_nmpool_sz=
Start daemons /etc/rc2.d/S94vxnm-host_infod /etc/rc2.d/S94vxnm-vxnetd
Examine VVR memory pkgadd -d . VRTSspt /opt/VRTSspt/VVR/vvrmemstat

Constructing an RVG

ActionCommand Line
Create an RVG vxassist -g diskgroup remove log volume vxassist -g diskgroup addlog volume logtype=dcm
Create an SRL volume vxassist -g diskgroup make srl 500m
Create a Primary RVG vradmin —g diskgroup createpri rvg volume srl
Create Secondary RVG and RLINK vradmin —g diskgroup addsec rvg sysB-priv sysA-priv prlink=to_sysA srlink=to_sysB
Set replication paramters on both primary and secondary vxedit —g diskgroup set srlprot=dcm to_sysA vxedit —g diskgroup set latencyprot=off to_sysA vxedit —g diskgroup set synchronous=off to_sysA
Set spare, non-hot relocation use, or set reserved space on disk vxedit -g diskgroup set {spare|nohotuse|reserve}=on|off diskname
Resize a data volume vradmin -g diskgroup resizevol rvg volume 200m

Status and Verification

ActionCommand Line
Display number of blocks being replicated vxrlink -i 3 stats to_sysA
Determine whether asynchronous replication is current vxrlink -g diskgroup status to_sysA
List all RLINKs and replication parameters vxprint -Pl
List all RVGs vxprint -Vl
List volumes within an RVG vradmin printvol
List Replicated Data Set (RDS) configuration vradmin -l printrvg

Removing an RVG

ActionCommand Line
Detach RLINKS on primary and secondary vxrlink -g diskgroup det to_sysA vxrlink -g diskgroup det to_sysB
Stop any RVG on primary and secondary vxrvg -g diskgroup stop rvg
Disassociate data volumes from an RVG vxvol -g diskgroup dis volume vxvol -g diskgroup dis srl
Remove the RVG and SRL on primary and secondary vxedit -g diskgroup -rf rm rvg