Below are steps to setup volume replication from one system (singapore) to another (india)
Do following on both systems
> Install SF, latest patches, SF and VVR licenses
> You need at least 2 disks on each nodes - one for data another for SRL. On both nodes, disks size should be same.
> Create data and srl volume
vxdisk list
vxdisksetup -i data_disk
vxdisksetup -i srl_disk
vxdg init app_dg app_data_1=data_disk
vxdg -g app_dg adddisk app_srl_1=srl_disk
# Create data and srl volume of same size as remote system
vxprint |grep ^v # on remote system
vxassist -g app_dg make app_vol 1g app_data_1
vxassist -g app_dg make srl_vol 10g app_srl_1
vxprint |grep ^v # on both system - compare size
/opt/VRTS/bin/mkfs -f vxfs /dev/vx/rdsk/app_dg/app_vol
mount -t vxfs /dev/vx/dsk/app_dg/app_vol /mnt
df -hP /mnt ; umount /mnt
> Start VVR and exusre below 3 ports are up on boths ystem
/usr/sbin/vxstart_vvr start
ps -ef|grep vradmind
netstat -nlp|grep 4145 # udp and tcp both - below 2 ports are only ycp
netstat -nlp|grep 8199
netstat -nlp|grep 8989
> Bring up VVR IP on nodes ( Ideally, we should be using dedicated NIC interface for data replication)
> Do cross ping and and ensure ports are reachable. Repeat it for each port and test it in both direction
singapore# ping india
india# ping singapore
singapore# nc -l 4145
india# telnet singapore 4145
Ctrl ]
quit
> Add DG IDs on remote nodes (a nodes will have remote node dg id)
vxlist app_dg
vi /etc/vx/vras/.rdg
On Primary Site
> Create RVG (Singappore)
vradmin -g app_dg createpri app_rvg app_vol srl_vol
> Add secondary
vradmin -g app_dg addsec app_rvg singapore india
> Start replication
vradmin -g app_dg -a startrep app_rvg india # Use -a first time start - auto replication
vradmin -g app_dg repstatus app_rvg
vxprint -Pl
vxprint -Vl
> Move replication role to secondary
umount /mount/point
vradmin -g app_dg migrate app_rvg india
vradmin -g app_dg repstatus app_rvg
On Secondary
> Mount filesystem
mount -t vxfs /dev/vx/dsk/app_dg/app_vol /mnt
> Increase data voume ( it will extend on remote system as well)
vradmin -g app_dg -f resizevol app_rvg app_vol 999g
Do following on both systems
> Install SF, latest patches, SF and VVR licenses
> You need at least 2 disks on each nodes - one for data another for SRL. On both nodes, disks size should be same.
> Create data and srl volume
vxdisk list
vxdisksetup -i data_disk
vxdisksetup -i srl_disk
vxdg init app_dg app_data_1=data_disk
vxdg -g app_dg adddisk app_srl_1=srl_disk
# Create data and srl volume of same size as remote system
vxprint |grep ^v # on remote system
vxassist -g app_dg make app_vol 1g app_data_1
vxassist -g app_dg make srl_vol 10g app_srl_1
vxprint |grep ^v # on both system - compare size
/opt/VRTS/bin/mkfs -f vxfs /dev/vx/rdsk/app_dg/app_vol
mount -t vxfs /dev/vx/dsk/app_dg/app_vol /mnt
df -hP /mnt ; umount /mnt
> Start VVR and exusre below 3 ports are up on boths ystem
/usr/sbin/vxstart_vvr start
ps -ef|grep vradmind
netstat -nlp|grep 4145 # udp and tcp both - below 2 ports are only ycp
netstat -nlp|grep 8199
netstat -nlp|grep 8989
> Bring up VVR IP on nodes ( Ideally, we should be using dedicated NIC interface for data replication)
> Do cross ping and and ensure ports are reachable. Repeat it for each port and test it in both direction
singapore# ping india
india# ping singapore
singapore# nc -l 4145
india# telnet singapore 4145
Ctrl ]
quit
> Add DG IDs on remote nodes (a nodes will have remote node dg id)
vxlist app_dg
vi /etc/vx/vras/.rdg
On Primary Site
> Create RVG (Singappore)
vradmin -g app_dg createpri app_rvg app_vol srl_vol
> Add secondary
vradmin -g app_dg addsec app_rvg singapore india
> Start replication
vradmin -g app_dg -a startrep app_rvg india # Use -a first time start - auto replication
vradmin -g app_dg repstatus app_rvg
vxprint -Pl
vxprint -Vl
> Move replication role to secondary
umount /mount/point
vradmin -g app_dg migrate app_rvg india
vradmin -g app_dg repstatus app_rvg
On Secondary
> Mount filesystem
mount -t vxfs /dev/vx/dsk/app_dg/app_vol /mnt
> Increase data voume ( it will extend on remote system as well)
vradmin -g app_dg -f resizevol app_rvg app_vol 999g
No comments:
Post a Comment