Chinaunix首页 | 论坛 | 博客
  • 博客访问: 55832
  • 博文数量: 21
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 155
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-11 08:40
个人简介

努力过着轻松日子的苦逼IT工程师……

文章分类

全部博文(21)

文章存档

2013年(21)

我的朋友

分类: LINUX

2013-05-22 16:15:26

1.check status:

#vxprint -lPV
#vxprint -hrt
#vrport
#vradmin -g dg_name -l printrvg
#ifconfig -a
#netstat -an
#vradmin -g ossdg -l repstatus ossrvg
#vrlink -g ossdg -i 3 status to_secondary
#vrlink -g ossdg -i 3 stats to_secondary


2.change heartbeat port

#vrport heartbeat 5000
#vradmin -g ossdg changeip ossrvg osssvr-2
#vxprint -g ossdg -l to_secondary
#/usr/bin/vxnetd stop
#/usr/bin/vxnetd


3.change IP

osssvr-1:
#ifconfig nxge1:1 unplumb
#ifconfig nxge1 76.96.197.183 netmask 255.255.255.0 up
osssvr-2:
#ifconfig nxge1:1 unplumb
#ifconfig nxge1 76.96.199.183 netmask 255.255.255.0 up

#vradmin -g ossdg pauserep ossrvg 
#vxedit -g ossdg  set local_host=76.96.196.198  remote_host=76.96.198.198  to_secondary   (osssvr-1上)
#vxedit -g ossdg  set local_host=76.96.198.198  remote_host=76.96.196.198  to_primary   (osssvr-2上)
#vradmin -g ossdg resumerep ossrvg
osssvr-1
# /usr/sbin/vxstart_vvr stop
osssvr-2
# /usr/sbin/vxstart_vvr stop
osssvr-1
# /usr/sbin/vxstart_vvr start
osssvr-2
# /usr/sbin/vxstart_vvr start


4.change protocol

#vradmin -g ossdg pauserep ossrvg  (pause replication if running, Primary only)
#vradmin -g ossdg set ossrvg protocol=UDP  (change the VVR transport protocol, Primary only)
#vradmin -g ossdg resumerep ossrvg (resume replication, Primary only)

5.snoop
osssvr-1
#snoop -t a -d nxge1  -o /tmp/osssvr-1_snoop.out
osssvr-2
#snoop -t a -d  nxge1 -o /tmp/osssvr-2_snoop.out
15分钟后,2个命令都用ctrl+c 中断, 然后2个机器分别收集 /tmp/osssvr-*.snoop.out

The threadlist with both nodes some time.
#echo "$/tmp/`date '+%H:%M:%S_%m:%d:%y'`_threadlist.out

6.full sync:
#vradmin –g ossdg –f stoprep ossrvg
#vradmin -g ossdg -a startrep ossrvg

7.
 Try to restart VVR daemon and pause/resume VVR.

#vradmin –g pauserep          (in primary)

# /usr/sbin/vxstart_vvr stop          (in primary and secondary)

# /usr/sbin/vxstart_vvr start          (in primary and secondary)

#vradmin –g resumerep    (in primary)

Then check the replicating speed as following

#vrstatus -R

8.     
Try to increase the TCP link and NMCOM buffer as following:

.Example:

# vxtune            (check current value)

#vradmin –g pauserep          (in primary)

#vxtune nmcom_max_connections 4   (in primary and secondary)

#vxtune vol_rvio_maxpool_sz 256M  (in primary and secondary)

#vxtune vol_max_nmpool_sz 64M  (in primary and secondary)

 #vradmin –g resumerep    (in primary)

  

Then check the replicating speed as following

#vrstatus -R

阅读(684) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~