Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

VERIT AS

E DUCATION

QUICK

REF ERENCE

Basic VERITAS Volume Replicator 4.1 Commands


INSTALLATION AND CONFIGURATION
Action
Install VVR on both the primary system and all
secondary systems
Add a license on all systems (can also be done
during installvvr execution)
Configure a network connection between the
primary and secondary systems

Command Line
installvvr
vxlicinst k license_key
/etc/hostname.device
/etc/hosts
vi /kernel/drv/vxio.conf

Create identical kernel memory parameters on the


primary and secondary systems

Modify memory parameters online (not persistent)

vol_max_rdback_sz=value;
vol_max_nmpool_sz=value;
vol_rvio_maxpool_sz=value;
vol_min_lowmem_sz=value;
vxtune
vxtune
vxtune
vxtune

vol_max_rdback_sz value
vol_max_nmpool_sz value
vol_rvio_maxpool_sz value
vol_min_lowmem_sz value

/usr/sbin/vxstart_vvr
OR
Start the daemons

/etc/rc2.d/S96vradmind
/etc/rc2.d/S94vxnm-vxnetd
/etc/rc2.d/S96vxrsyncd

Examine VVR memory usage on all hosts in the


replicated data set (RDS)

vrstat M rvgname

ESTABLISHING REPLICATION
Action

Command Line
vxdisksetup i disk_access_name

Initialize a disk and create a disk group

vxdg init dg disk_media_name=disk_access_name

Add an initialized disk to a disk group

vxdg g dg adddisk disk_media_name=disk_access_name

Create a data volume

vxassist g dg make datavol size layout=value

Add a DCM log to a data volume

vxassist g dg addlog datavol logtype=DCM

Create an SRL volume

vxassist g dg make srlvol size layout=value

Create a primary RVG

vradmin g dg createpri rvg datavol srlvol

Create a secondary RVG and the RLINKs

vradmin g dg addsec rvg prihost sechost prlink=to_sechost \


srlink=to_prihost

Set replication parameters

vradmin
vradmin
vradmin
vradmin

Synchronize the secondary

vradmin g dg [-full] [-c ckpt] syncrvg rvg sechost

Start replication

vradmin g dg [-f] [-a] [-c ckpt] startrep rvg sechost

g
g
g
g

dg
dg
dg
dg

set
set
set
set

rvg
rvg
rvg
rvg

sechost
sechost
sechost
sechost

srlprot=value
latencyprot=value
synchronous=value
bandwidth_limit=value

VERITAS Education
http://us.training.veritas.com
800-327-2232 (option 2)
Copyright 2004 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS
product names and slogans are trademarks or registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other
product names and/or slogans mentioned herein may be trademarks or registered trademarks of their respective companies. Specifications and
product offerings subject to change without notice. Printed in USA and the EU. April 2004.

VERIT AS

E DUCATION

QUICK

REF ERENCE

STATUS AND VERIFICATION


Action

Command Line

List replicated data set (RDS) configuration

vradmin [g dg] l printrvg

Display replication status of an RDS

vradmin g dg l repstatus rvg

Display RLINK and replication parameters

vxprint g dg -lP

Display RVG and associated volume information

vxprint g dg -lV

Display information about data volumes in an RDS

vxrlink g dg printvol rvg

Display RLINK network information

vxrlink g dg [i interval] stats rlink

Check primary RLINK status

vxrlink g dg status prlink

Collect and display consolidated statistics across


all hosts in an RDS

vrstat V S R M n number rvg

MANAGING REPLICATION
Action

Command Line

Pause replication to a secondary system

vradmin g dg pauserep rvg sechost

Resume replication to a secondary system

vradmin g dg resumerep rvg sechost

Migrate replication to a secondary system

vradmin g dg migrate rvg newpri

Takeover primary role on a secondary system

vradmin g dg takeover rvg

Use fast failback on the new primary system

vradmin g dg [wait] fbsync rvg


vxsnap g dg prepare datavol (On both replication sites)
vxassist g dg make cachevol size (On both replication sites)

Verify online data

vxmake g dg cache cache_obj_name cachevolname=cachevol \


autogrow=yes (On both replication sites)
vradmin g dg [-k cache] verifydata rvg sechost \
cache=cache_obj_name

Change an RLINK IP Address

vradmin g dg changeip rvg newpri_ip newsec_ip

Resize the primary SRL

vradmin g dg resizesrl rvg size

STOPPING AND REMOVING REPLICATION


Action

Command Line

Stop replication to a secondary system

vradmin g dg stoprep rvg sechost

Delete a secondary RVG from an RDS

vradmin g dg delsec rvg sechost

Delete a primary RVG

vradmin g dg [-f] delpri rvg

VERITAS Education
http://us.training.veritas.com
800-327-2232 (option 2)
Copyright 2004 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS
product names and slogans are trademarks or registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other
product names and/or slogans mentioned herein may be trademarks or registered trademarks of their respective companies. Specifications and
product offerings subject to change without notice. Printed in USA and the EU. April 2004.

You might also like