Cisco UCS 6120 Manual Switch Failover
Over the weekend maintenance, I needed to manually failover the primary role from one 6120 to the other. This was being done as part of our firmware upgrade to 1.3(1c). Below is the process of failing over.
Login to the primary 6120 via the UCS cluster IP address (SSH).
Verify the current state (roles) of the cluster
ucs01-B# show cluster state Cluster Id: 0xg7949/79843654he-0x8486a7868s8787785 A: UP, SUBORDINATE B: UP, PRIMARY
Enter local management on the primary.
ucs01-B# connect local-mgmt Cisco UCS 6100 Series Fabric Interconnect
Since the “b” 6120 is the current primary, the following will activate “a” as the primary.
ucs01-B(local-mgmt)# cluster lead a Cluster Id: 0xg7949/79843654he-0x8486a7868s8787785
Verify that the subordinate 6120 has now become the primary. This was done by SSHing directly to 6120 “a”.
ucs01-A# show cluster state Cluster Id: 0xg7949/79843654he-0x8486a7868s8787785 A: UP, PRIMARY B: UP, SUBORDINATE HA READY
Process to failover
1. Login to the primary 6120 via the UCS cluster IP address.
2. Verify the current primary 6120 in the cluster.
3. Enter local management on the primary via “connect local-mgmt” command.
4. Issue the “cluster lead x” command to make the subordinate switch become the primary. Replace “x” with the correct switch letter.
5. Verify that the role has changed on the previously subordinate switch by SSH’ing into it and issuing the “show cluster state” command. The switch show now show up as the primary.
Notes: I listed the 5 step process above with the “fluff” removed. Just in case you don’t need to see the command(s) output.
