How to configure a 3 node VVR configuration & successfully fail back the primary role upon an aborted syncrvg operation.

Problem

How to configure a 3 node VVR configuration & successfully fail back the primary role upon an aborted syncrvg operation.

Solution

[root@walv215-a1e:/]# vradmin -g vvrdg repstatus vvr1rvg

Replicated Data Set: vvr1rvg
Primary:
Host name: walv215-a1e
RVG name: vvr1rvg
DG name: vvrdg
RVG state: enabled for I/O
Data volumes: 1
VSets: 0
SRL name: vvrsrl
SRL size: 200.00 M
Total secondaries: 2
Secondary:
Host name: walv215-a1k
RVG name: vvr1rvg
DG name: vvrdg
Data status: consistent, up-to-date
Replication status: replicating (connected)
Current mode: asynchronous
Logging to: SRL
Timestamp Information: behind by 0h 0m 0s
Secondary:
Host name: walv215-a1f
RVG name: vvr1rvg
DG name: vvrdg
Data status: consistent, up-to-date
Replication status: replicating (connected)
Current mode: asynchronous
Logging to: SRL
Timestamp Information: behind by 0h 0m 0s

[root@walv215-a1e:/]#vxprint -lP
Disk group: vvrdg
Rlink: walv215-a1e_to_walv215-a1f
info: timeout=500 packet_size=8400 rid=0.1095
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=ACTIVE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1f IP_addr=10.100.33.171 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231882331.32.walv215-a1f
remote_rvg_version=30
remote_rlink=walv215-a1f_to_walv215-a1e
remote_rlink_rid=0.1090
local_host=walv215-a1e IP_addr=10.100.33.167 port=4145
protocol: UDP/IP
flags: write enabled attached consistent connected asynchronous
Rlink: walv215-a1e_to_walv215-a1k
info: timeout=500 packet_size=8400 rid=0.1101
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=ACTIVE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1k IP_addr=10.100.33.191 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231887145.29.walv215-a1k
remote_rvg_version=30
remote_rlink=walv215-a1k_to_walv215-a1e
remote_rlink_rid=0.1090
local_host=walv215-a1e IP_addr=10.100.33.167 port=4145
protocol: UDP/IP
flags: write enabled attached consistent connected asynchronous

* RLINKs from walv215-a1e to walv215-a1f and walv215-a1k are CONNECTED and up-to-date.


[root@walv215-a1f:/]#vxprint -lP
Disk group: vvrdg
Rlink: walv215-a1f_to_walv215-a1e
info: timeout=500 packet_size=8400 rid=0.1090
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=ACTIVE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1e IP_addr=10.100.33.167 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231882477.23.walv215-a1e
remote_rvg_version=30
remote_rlink=walv215-a1e_to_walv215-a1f
remote_rlink_rid=0.1095
local_host=walv215-a1f IP_addr=10.100.33.171 port=4145
protocol: UDP/IP
flags: write enabled attached consistent connected
Rlink: walv215-a1f_to_walv215-a1k
info: timeout=500 packet_size=8400 rid=0.1105
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=STALE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1k IP_addr=10.100.33.191 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231887145.29.walv215-a1k
remote_rvg_version=30
remote_rlink=walv215-a1k_to_walv215-a1f
remote_rlink_rid=0.1105
local_host=walv215-a1f IP_addr=10.100.33.171 port=4145
protocol: UDP/IP
flags: write enabled detached consistent disconnected

* RLINKS from walv215-a1f (secondary) to walv215-a1k (secondary) are detached, disconnected & STALE


[root@walv215-a1k:volume_replicator]#vxprint -lP
Disk group: vvrdg
Rlink: walv215-a1k_to_walv215-a1e
info: timeout=500 packet_size=8400 rid=0.1090
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=ACTIVE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1e IP_addr=10.100.33.167 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231882477.23.walv215-a1e
remote_rvg_version=30
remote_rlink=walv215-a1e_to_walv215-a1k
remote_rlink_rid=0.1101
local_host=walv215-a1k IP_addr=10.100.33.191 port=4145
protocol: UDP/IP
flags: write enabled attached consistent connected
Rlink: walv215-a1k_to_walv215-a1f
info: timeout=500 packet_size=8400 rid=0.1105
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=STALE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1f IP_addr=10.100.33.171 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231882331.32.walv215-a1f
remote_rvg_version=30
remote_rlink=walv215-a1f_to_walv215-a1k
remote_rlink_rid=0.1105
local_host=walv215-a1k IP_addr=10.100.33.191 port=4145
protocol: UDP/IP
flags: write enabled detached consistent disconnected

* RLINKS from walv215-a1k (secondary) to walv215-a1f (secondary) detached, disconnected & STALE

* From Primary - stop replication to walv215-a1k
[root@walv215-a1e:/]#vradmin -g vvrdg stoprep vvr1rvg walv215-a1k
VxVM VVR vradmin WARNING V-5-52-92 Secondary data volumes will become out-of-date.
vradmin: Continue with stoprep (y/n)? y
[root@walv215-a1e:/]#vradmin -g vvrdg repstatus vvr1rvg
Replicated Data Set: vvr1rvg
Primary:
Host name: walv215-a1e
RVG name: vvr1rvg
DG name: vvrdg
RVG state: enabled for I/O
Data volumes: 1
VSets: 0
SRL name: vvrsrl
SRL size: 200.00 M
Total secondaries: 2
Secondary:
Host name: walv215-a1k
RVG name: vvr1rvg
DG name: vvrdg
Data status: consistent, stale
Replication status: stopped (primary detached)
Current mode: N/A
Logging to: SRL
Timestamp Information: N/A
Secondary:
Host name: walv215-a1f
RVG name: vvr1rvg
DG name: vvrdg
Data status: consistent, up-to-date
Replication status: replicating (connected)
Current mode: asynchronous
Logging to: SRL
Timestamp Information: behind by 0h 0m 0s

* Initiate a syncrvg to walv215-a1k & abort half way through the sync.

[root@walv215-a1e:/]#vradmin -g vvrdg syncrvg vvr1rvg walv215-a1k
VxVM VVR vradmin WARNING V-5-52-136 The checkpoint option will be mandatory in future VVR releases.
Message from Host walv215-a1k:
VxVM VVR vxrlink WARNING V-5-1-3532 Rlink walv215-a1k_to_walv215-a1e is already detached
Message from Primary:
VxVM VVR vxrsync INFO V-5-52-2233 Starting differences volume synchronization to remote
VxVM VVR vxrsync INFO V-5-52-2211 Source host: 10.100.33.167
VxVM VVR vxrsync INFO V-5-52-2212 Destination host(s): 10.100.33.191
VxVM VVR vxrsync INFO V-5-52-2213 Total volumes: 1
VxVM VVR vxrsync INFO V-5-52-2214 Total size: 500.000 M
Eps_time Dest_host Src_vol Dest_vol F'shed/Tot_sz Diff Done
00:00:00 10.100.33.191 vvrdata1 vvrdata1 0M/500M 0% 0%
00:00:10 10.100.33.191 vvrdata1 vvrdata1 245M/500M 0% 49%
^C
[root@walv215-a1e:/]#


* Disassociate the walv215-a1e_to_walv215-a1k rlink
[root@walv215-a1e:/]#vxrlink -g vvrdg dis walv215-a1e_to_walv215-a1k
[root@walv215-a1e:/]#vxprint -lP
Disk group: vvrdg
Rlink: walv215-a1e_to_walv215-a1f
info: timeout=500 packet_size=8400 rid=0.1095
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=ACTIVE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1f IP_addr=10.100.33.171 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231882331.32.walv215-a1f
remote_rvg_version=30
remote_rlink=walv215-a1f_to_walv215-a1e
remote_rlink_rid=0.1090
local_host=walv215-a1e IP_addr=10.100.33.167 port=4145
protocol: UDP/IP
flags: write enabled attached consistent connected asynchronous
Rlink: walv215-a1e_to_walv215-a1k
info: timeout=500 packet_size=8400 rid=0.1101
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=UNASSOC
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=(dissoc)
remote_host=walv215-a1k IP_addr=10.100.33.191 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231887145.29.walv215-a1k
remote_rvg_version=30
remote_rlink=walv215-a1k_to_walv215-a1e
remote_rlink_rid=0.1090
local_host=walv215-a1e IP_addr=10.100.33.167 port=4145
protocol: UDP/IP
flags: write disabled detached inconsistent cant_sync disconnected


* Migrate primary role from walv215-a1e to walv215-a1f
[root@walv215-a1e:/]#vradmin -g vvrdg migrate vvr1rvg walv215-a1f
VxVM VVR vradmin WARNING V-5-52-93 Make sure applications using Primary data volumes are stopped.
vradmin: Continue with migrate (y/n)? y

[root@walv215-a1f:/]#vradmin -g vvrdg repstatus vvr1rvg
Replicated Data Set: vvr1rvg
Primary:
Host name: walv215-a1f
RVG name: vvr1rvg
DG name: vvrdg
RVG state: enabled for I/O
Data volumes: 1
VSets: 0
SRL name: vvrsrl
SRL size: 200.00 M
Total secondaries: 2
Secondary:
Host name: walv215-a1k
RVG name: vvr1rvg
DG name: vvrdg
Data status: consistent, stale
Replication status: stopped (primary detached)
Current mode: N/A
Logging to: SRL
Timestamp Information: N/A
Secondary:
Host name: walv215-a1e
RVG name: vvr1rvg
DG name: vvrdg
Data status: consistent, up-to-date
Replication status: replicating (connected)
Current mode: asynchronous
Logging to: SRL
Timestamp Information: behind by 0h 0m 0s


[root@walv215-a1f:/]#vxprint -lP
Disk group: vvrdg
Rlink: walv215-a1f_to_walv215-a1e
info: timeout=500 packet_size=8400 rid=0.1090
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=ACTIVE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1e IP_addr=10.100.33.167 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231882477.23.walv215-a1e
remote_rvg_version=30
remote_rlink=walv215-a1e_to_walv215-a1f
remote_rlink_rid=0.1095
local_host=walv215-a1f IP_addr=10.100.33.171 port=4145
protocol: UDP/IP
flags: write enabled attached consistent connected asynchronous
Rlink: walv215-a1f_to_walv215-a1k
info: timeout=500 packet_size=8400 rid=0.1105
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=STALE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1k IP_addr=10.100.33.191 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231887145.29.walv215-a1k
remote_rvg_version=30
remote_rlink=walv215-a1k_to_walv215-a1f
remote_rlink_rid=0.1105
local_host=walv215-a1f IP_addr=10.100.33.171 port=4145
protocol: UDP/IP
flags: write enabled detached consistent disconnected

* Start replication from walv215-a1f (new Primary) to walv215-a1k
[root@walv215-a1f:/]#vradmin -g vvrdg -a startrep vvr1rvg walv215-a1k
Message from Primary:
VxVM VVR vxrlink WARNING V-5-1-3359 Attaching rlink to non-empty rvg. Autosync will be performed.
VxVM VVR vxrlink INFO V-5-1-3614 Secondary data volumes detected with rvg vvr1rvg as parent:
VxVM VVR vxrlink INFO V-5-1-6183 vvrdata1: len=1024000 primary_datavol=vvrdata1
VxVM VVR vxrlink INFO V-5-1-3365 Autosync operation has started


[root@walv215-a1f:/]#vxprint -lP
Disk group: vvrdg
Rlink: walv215-a1f_to_walv215-a1e
info: timeout=500 packet_size=8400 rid=0.1090
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=ACTIVE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1e IP_addr=10.100.33.167 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231882477.23.walv215-a1e
remote_rvg_version=30
remote_rlink=walv215-a1e_to_walv215-a1f
remote_rlink_rid=0.1095
local_host=walv215-a1f IP_addr=10.100.33.171 port=4145
protocol: UDP/IP
flags: write enabled attached consistent connected asynchronous
Rlink: walv215-a1f_to_walv215-a1k
info: timeout=500 packet_size=8400 rid=0.1105
latency_high_mark=10000 latency_low_mark=9950
bandwidth_limit=none
state: state=ACTIVE
synchronous=off latencyprot=off srlprot=autodcm
assoc: rvg=vvr1rvg
remote_host=walv215-a1k IP_addr=10.100.33.191 port=4145
remote_dg=vvrdg
remote_dg_dgid=1231887145.29.walv215-a1k
remote_rvg_version=30
remote_rlink=walv215-a1k_to_walv215-a1f
remote_rlink_rid=0.1105
local_host=walv215-a1f IP_addr=10.100.33.171 port=4145
protocol: UDP/IP
flags: write enabled attached inconsistent cant_sync connected asynchronous autosync resync_started

[root@walv215-a1f:/]#vradmin -g vvrdg repstatus vvr1rvg
Replicated Data Set: vvr1rvg
Primary:
Host name: walv215-a1f
RVG name: vvr1rvg
DG name: vvrdg
RVG state: enabled for I/O
Data volumes: 1
VSets: 0
SRL name: vvrsrl
SRL size: 200.00 M
Total secondaries: 2
Secondary:
Host name: walv215-a1k
RVG name: vvr1rvg
DG name: vvrdg
Data status: consistent, up-to-date
Replication status: replicating (connected)
Current mode: asynchronous
Logging to: SRL
Timestamp Information: behind by 0h 0m 0s
Secondary:
Host name: walv215-a1e
RVG name: vvr1rvg
DG name: vvrdg
Data status: consistent, up-to-date
Replication status: replicating (connected)
Current mode: asynchronous
Logging to: SRL
Timestamp Information: behind by 0h 0m 0s


Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)