We had a UPS failure last week in which a breaker on the UPS tripped throwing everything plugged into that PDU offline. That included half the switch stack. When power resumed, the network is operating normally but I noticed that now two of the five switches in the stack are reporting that they are the master. I assume that when the power went off, the Master went down and thus an election occured between the members that were still up.
What do I need to do to fix this without screwing up the port configurations? When I do a remote session to the switch and run show switch it shows the stack still intact. Even the web console shows the stack still intact. Can I simply just power cycle the switch that's saying it's a master and power it back on?
If the rest of the stack is working fine. You can turn off the second master (the one that is not should to be) and than turn it back on. When you are on the master command line, what is the output of sh switch det?
Also, if you don't have priority assigned to your switches (master being the highest) it may be a good idea to do so. This way you always know which switch is the master.
Power cycling should be done during an outage window