This section explains how to perform a switchover from target1 to target2.

Configuration

Execute the command on target2.

  1. Make sure the status of the resource that you will switch over is ISP on target1.
[target2]# lkcli status -q --remote target1
LOCAL    TAG            ID             STATE     PRIO  PRIMARY
target1  ip-10.1.6.100  ip-10.1.6.100  ISP          1  target1
 
MACHINE  NETWORK ADDRESSES/DEVICE     STATE     PRIO
target2  TCP     10.1.6.88/10.1.6.89  ALIVE        1
  1. Make sure the status of the resource that you want to switch over is OSU on target2. Make a note of the resource tag name.
[target2]# lkcli status -q
LOCAL    TAG            ID             STATE     PRIO  PRIMARY
target2  ip-10.1.6.100  ip-10.1.6.100  OSU         10  target1
 
MACHINE  NETWORK ADDRESSES/DEVICE     STATE     PRIO
target1  TCP     10.1.6.89/10.1.6.88  ALIVE        1
  1. Switch the resource to target2.
[target2]# lkcli resource restore --tag ip-10.1.6.100
BEGIN restore of "ip-10.1.6.100"
END successful restore of "ip-10.1.6.100"
  1. Make sure the resource is ISP on target2.
[target2]# lkcli status -q
LOCAL    TAG            ID             STATE     PRIO  PRIMARY
target2  ip-10.1.6.100  ip-10.1.6.100  ISP         10  target1
 
MACHINE  NETWORK ADDRESSES/DEVICE     STATE     PRIO
target1  TCP     10.1.6.89/10.1.6.88  ALIVE        1

Feedback

Thanks for your feedback.

Post your comment on this topic.

Post Comment