12-16-2021 08:57 AM
Hello,
We have a pair of Nexus switches. We need to remove one of them from service to do some hardware upgrades, and then bring it back into service. We need to get the Operational VPC Role swung to Nexus1 which is going to stay operational, away from Nexus2. As of now we have the following for show vpc.
vPC domain id : 2
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success
vPC role : primary, operational secondary
Number of vPCs configured : 3
Peer Gateway : Enabled
Peer gateway excluded VLANs : -
Dual-active excluded VLANs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Disabled
vPC domain id : 2
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success
vPC role : secondary, operational primary
Number of vPCs configured : 3
Peer Gateway : Enabled
Peer gateway excluded VLANs : -
Dual-active excluded VLANs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Disabled
Here is the running config for VPC on each.
vpc domain 2
role priority 1
peer-keepalive destination <IP> source <IP> vrf default
peer-gateway
vpc domain 2
peer-keepalive destination <IP> source <IP> vrf default
peer-gateway
As you can see we have the priority as low as it can go on Nexus1. We then bounced, shutdown and no shutdown, the VPC Peer Link. Unfortunately, this resulted in Nexus1 shutting down all of its VPC links, while Nexus2 simply retained the Operational Primary Role. In a sense we gained nothing.
Am I missing something else to try and force the switch? Would killing both the VPC Keepalive Link and VPC Peer Link completely force Nexus1 to recapture the Operational Primary Role? Thanks to any insight you can provide, much appreciated.
Solved! Go to Solution.
12-16-2021 03:28 PM
Yes, since the code does not support the command, the choice is pretty much a reload of Nexus-2.
Good Luck!
12-16-2021 02:19 PM
Hi,
Have you tried using this command:
vpc role preempt
more info:
HTH
12-16-2021 02:59 PM
Unfortunately, the code we are running doesn't support that command. This is a big part of the upgrade as well. I am thinking our best bet is to simply migrate all the links to Nexus 1, and then reload Nexus 2. That would certainly force Nexus 1 to revert back to Primary / Primary right?
12-16-2021 03:28 PM
Yes, since the code does not support the command, the choice is pretty much a reload of Nexus-2.
Good Luck!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide