VVR常见案例

1、Replication status提示为stopped (primary detached),同步时提示VxVM VVR vxrlink ERROR V-5-1-4324 Cannot attach to_primary until ossrvg is recovered

使用下面的命令重建主备复制连接,建好后会自动进行全同步。
# vxrlink -g ossdg -a att to_secondary

2、手动恢复同步关系

1)解除主备间复制链路
osssvr-1# vxrlink -g ossdg -f det to_secondary
osssvr-2# vxrlink -g ossdg -f det to_primary

主机会有下面的提示,不用管:
VxVM VVR vxrlink INFO V-5-1-6466 Data volumes are in use. Before restarting replication a complete synchronization of the secondary data volumes must be performed.


2)重新设置主备机,将osssvr-1设置为主机:
osssvr-1# vxedit -g ossdg set primary=false ossrvg
osssvr-2# vxedit -g ossdg set primary=true ossrvg

3)重建主备机复制链路:
osssvr-1# vxrlink -g ossdg -a att to_secondary  # 在准备成为主节点的机器上操作,加上-a参数,另外一个节点不要加!
osssvr-2# vxrlink -g ossdg att to_primary

链路重建完成后会自动开始数据同步,可以用如下命令查看同步状态:

3、将卷从同步卷中删掉

# vradmin -g ossdg -f delvol ossrvg omcdb_log_lv001

# vxvol -g ossdg dis exportsync

4、启动VVR

/usr/sbin/vxstart_vvr

5、数据同步处于needs dcm resynchronization状态

  Data status:                consistent, behind
  Replication status:         logging to DCM (needs dcm resynchronization)
  Current mode:               asynchronous
  Logging to:                 DCM (contains 31830688 Kbytes) (SRL protection logging)
  Timestamp Information:      N/A

# vradmin -g ossdg resync ossrvg

你可能感兴趣的:(案例)