8.5.17. Adding and Removing Trunking Adapters (Load Sharing)

When adding and removing trunking adapters in the case of load sharing, the two SEAs are initially set to failover HA mode (ha_mode=auto):

$ vios chdev ms05-vio1 ent46 ha_mode=auto
$ vios chdev ms05-vio2 ent44 ha_mode=auto
$

In order to add trunking adapters, they must first be created. This has already been shown several times. We therefore limit ourselves to showing the removal of a trunking adapter here. First we list all trunking adapters of the primary SEA on ms05-vio1:

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

The trunking adapter for VLAN 23 (ent45) is to be removed here. The trunking adapters are stored in the virt_adapters attribute of the SEA:

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

To remove the trunking adapter ent45, all you have to do, is to remove the adapter ent45 from the list of trunking adapters (attribute virt_adapters):

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

A check of the trunking adapters shows that the adapter ent45 has been successfully removed:

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

The corresponding trunking adapter for VLAN 23 is still known on the backup SEA:

$ vios lssea -V ms05-vio2 ent44
SEA    LNAGG  NAME   TYPE     VSWITCH  MODE  ACTIVE  PRIORITY  PVID  VLAN_TAG_IDS
ent44  -      ent5   real     -        -     -       -         -     -
ent44  -      ent43  virtual  ETHTEST3  VEB   False   2         5     23
ent44  -      ent42  virtual  ETHTEST3  VEB   False   2         4     20,21,22
ent44  -      ent41  virtual  ETHTEST3  VEB   False   2         3     17,18,19
ent44  -      ent40  virtual  ETHTEST3  VEB   False   2         2     14,15,16
ent44  -      ent39  virtual  ETHTEST3  VEB   False   2         1     11,12,13
ent44  -      ent38  control  ETHCTRL  -     -       -         1     None
$

The trunking adapter for VLAN 23 has the device name ent43 here. The list of trunking adapters of the backup SEA still contains the adapter ent43:

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

The list stored in the virt_adapters attribute can be overwritten using “vios chdev“:

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

A quick check shows that the trunking adapter is no longer in use:

$ vios lssea -V ms05-vio2 ent44
SEA    LNAGG  NAME   TYPE     VSWITCH   MODE  ACTIVE  PRIORITY  PVID  VLAN_TAG_IDS
ent44  -      ent5   real     -        -     -       -         -     -
ent44  -      ent42  virtual  ETHTEST3  VEB   False   2         4     20,21,22
ent44  -      ent41  virtual  ETHTEST3  VEB   False   2         3     17,18,19
ent44  -      ent40  virtual  ETHTEST3  VEB   False   2         2     14,15,16
ent44  -      ent39  virtual  ETHTEST3  VEB   False   2         1     11,12,13
ent44  -      ent38  control  ETHCTRL  -     -       -         1     None
$

If the two removed trunking adapters are no longer needed, they should be deleted with the help of “lpar rmeth“! We do not do this at this point.

Finally, the SEAs are configured for load sharing again by setting the ha_mode attribute back to sharing:

$ vios chdev ms05-vio1 ent46 ha_mode=sharing
$ vios chdev ms05-vio2 ent44 ha_mode=sharing
$

A check of the distribution of the VLANs, shows that both SEAs are active again (for their VLANs):

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

The distribution of the VLANs between the two SEAs has changed compared to the initial situation. At the beginning there were 5 trunking adapters, whereby the first 3 trunking adapters were active on the primary SEA. By removing a trunking adapter, both SEAs only have 2 active trunking adapters. The trunking adapter ent43 with VLANs 17, 18 and 19 was active on the primary SEA before the trunking adapter was removed. After removing the trunking adapter, it is now inactive on the primary SEA.

Note: Adding or removing trunking adapters can change the distribution of the VLANs!