IBM Support

SEA Failover Delayed and Supported Methods to Test the Failover

Question & Answer


Question

Why is my Shared Ethernet Adapter (SEA) failover delayed?

Cause

Spanning tree is turned on at the switch port with portfast disabled.

Answer

During an Shared Ethernet Adapter failover (from primary to backup), the delay is sometimes due to Spanning Tree Protocol (STP) being enabled on the switch port.
To ensure prompt recovery times when Spanning Tree Protocol is enabled on the switch port that is connected to the physical adapter used by Shared Ethernet Adapter, you can also enable the portfast option on the switch port.  The portfast option allows the switch to immediately forward packets on the port without first completing the Spanning Tree Protocol. (Spanning Tree Protocol blocks the port completely until it is finished.)
During Shared Ethernet Adapter failback (from backup back to primary), there is an additional issue. The switches are sometimes not ready to read transmit and receive packets even after declaring the link as up. Hence, it leads to packet loss. This type of problem can be avoided or reduce failback time by disabling Spanning Tree Protocol all together.

Next are the 5 supported methods to test Shared Ethernet Adapter failover:

Scenario 1 - Manual Shared Ethernet Adapter Failover
On VIO server:
1. Identify the ent# for the desired SEA
$ lsdev -type adapter|grep -i shared
2. Determine the SEA state (PRIMARY, or BACKUP)
$ entstat -all ent#|grep -i state      > where ent# is the SEA
3. On primary VIOS, set the high availability mode (ha_mode) attribute to standby using chdev command:
$ chdev -dev ent# -attr ha_mode=standby
4. Reset it back to auto and the SEA should fail back to the primary VIOS
$ chdev -dev ent# -attr ha_mode=auto

Scenario 2 - Primary VIOS Shutdown
Reboot the primary VIOS for fail over to backup SEA adapter.
When the primary VIOS is up again, it should fail back to the primary SEA adapter.

Scenario 3 - Primary VIOS Error
Deactivate primary VIOS from the HMC for fail over to backup SEA adapter.
Activate the primary VIOS for the fail back to the primary SEA adapter again.

Scenario 4 - Physical Link Failure
Unplug the cable of the physical ethernet adapter on primary VIOS for the failover to the backup VIOS.
Replug the cable of the physical ethernet adapter on primary VIOS for the failback to the primary VIOS.

Scenario 5 - Reverse Boot Sequence
Shut down both VIO servers.
Activate the VIOS with backup SEA. Wait for the VIOS to boot up for the adapter to become active.
Activate the VIOS with primary SEA. The configuration should fail back to the primary SEA.

NOTE:
When we force a manual failover in Scenario 1, we bring down the link to the switch connected to VIO1, thus asking the switch to modify its MAC tables accordingly. The backup VIOS is able to take over immediately since it is up and running but was just not being used as yet. Now, during failback, the same situation occurs. Less delay happens because we forced the failover while the primary VIOS is up and running.
In Scenario 2, when primary VIO1 is shutdown, the failover is also immediate. However, the failback to VIO 1 takes more time because the switch connected to VIO1 takes more time to start requeuing packets.
The fact that the delay is shorter for manual failover and longer for VIOS shutdown, implies that the delay is happening because some switches don't start transmitting and receiving packets for some time even after declaring that the link as up. From IBM's side, if the link is up when TCPIP is started, then we assume the switch is ready to start sending and receiving packets even though it may not actually be ready.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSPHKW","label":"PowerVM Virtual I\/O Server"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"}],"Version":"Virtual I\/O Server 2.2 and 3.1","Edition":"Enterprise;Standard","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
19 February 2022

UID

isg3T1011063