8.5.12. Adding and Removing Trunking Adapters (HA-SEA)

When adding trunking adapters, make sure that a trunking adapter must be added to both SEAs. The trunking adapters must be created with the same VLANs. With respect to the trunking priority, it is important to ensure that the same priority is used as with the other trunking adapters of a SEA. A trunking adapter with a different trunking priority cannot be added to an existing SEA.

We start by creating a trunking adapter with the PVID 3 and the additional VLANs 17, 18 and 19 in each of the slots 73 of the two virtual I/O servers:

$ lpar addeth -i -t 1 -s ETHTEST3 ms05-vio1 73 3 17,18,19
$ lpar addeth -i -t 2 -s ETHTEST3 ms05-vio2 73 3 17,18,19
$

When adding the new trunking adapter, we start again with the primary SEA ent43 on ms05-vio1. The trunking adapter that has just been created can easily be displayed again using “vios lssea -c“:

$ vios lssea -c ms05-vio1
NAME   STATUS     PHYSLOC                      PARENT  DESCRIPTION
ent2   Available  U78AA.001.VYRGU0Q-P1-C7-T3   pci1    4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent44  Available  U8205.E6C.05E4E5Q-V1-C73-T1  vio0    Virtual I/O Ethernet Adapter (l-lan)
$

The new trunking adapter is ent44 and must be added to the list of virtual adapters (attribute virt_adapters) of the SEA ent43, which currently includes the following adapters:

$ vios lsattr ms05-vio1 ent43 virt_adapters
value
ent41,ent42
$

The new trunking adapter can be added to the list of trunking adapters, with the help of “vios chdev“:

$ vios chdev ms05-vio1 ent43 virt_adapters=ent41,ent42,ent44
$

The new trunking adapter is active immediately and the additional VLANs can be used immediately:

$ vios lssea -V ms05-vio1 ent43
SEA    LNAGG  NAME   TYPE     VSWITCH   MODE  ACTIVE  PRIORITY  PVID  VLAN_TAG_IDS
ent43  -      ent3   real     -         -     -       -         -     -
ent43  -      ent44  virtual  ETHTEST3  VEB   True    1         3     17,18,19
ent43  -      ent42  virtual  ETHTEST3  VEB   True    1         2     14,15,16
ent43  -      ent41  virtual  ETHTEST3  VEB   True    1         1     11,12,13
ent43  -      ent39  control  ETHCTRL   -     -       -         6     None
$

The newly created trunking adapter is not yet known to the current Backup SEA. In the event of a failover, the additional VLANs 17, 18 and 19 would therefore be lost again. Therefore, we list the candidates for a SEA on the second virtual I/O server in order to identify the newly created trunking adapter in slot 73:

$ vios lssea -c ms05-vio2
NAME   STATUS     PHYSLOC                      PARENT  DESCRIPTION
ent3   Available  U78AA.001.VYRGU0Q-P1-C6-T2   pci3    4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent4   Available  U78AA.001.VYRGU0Q-P1-C6-T3   pci3    4-Port Gigabit Ethernet PCI-Express Adapter (e414571614102004)
ent42  Available  U8205.E6C.05E4E5Q-V2-C73-T1  vio0    Virtual I/O Ethernet Adapter (l-lan)
$

The trunking adapter in slot 73 is ent42. The trunking adapters from SEA ent41 to ms05-vio2 are currently:

$ vios lsattr ms05-vio2 ent41 virt_adapters
value
ent39,ent40
$

The new trunking adapter can again be added, simply by adding the new trunking adapter to the list of trunking adapters virt_adapters:

$ vios chdev ms05-vio2 ent41 virt_adapters=ent39,ent40,ent42
$

Removing a trunking adapter is analogous and has already been shown for the case of a simple SEA. Note again that the trunking adapter must be removed from both SEAs, otherwise the two SEAs will have different configurations.
If the trunking adapters that have been removed are no longer required, they should be removed using “lpar rmeth“.