If possible, use bonded ports for OSA-based virtual switches to configure for increased
availability.
About this task
This example creates a virtual switch, vs_osa0, that groups the network interfaces enc1108 and enca112 to a bonded interface, vsbond0:Figure 1. Virtual switch with a bonded interface
Figure 1 shows the
virtual switch with just two ports that connect to the bonded interfaces. When virtual servers connect to the switch, libvirt automatically
creates the required switch ports.
Procedure
Verify that the OSA network-devices are configured as bridge ports.
# lszdev 0.0.1108,0.0.a112 --columns NAMES,ATTR:bridge_state
ID ATTR:bridge_state
enc1108 active
enca112 active
Create the virtual switch.
# ovs-vsctl add-br vs_osa0
# ovs-vsctl show
3935bfec-241e-4610-a555-9e6f60987f87
Bridge "vs_osa0"
Port "vs_osa0"
Interface "vs_osa0"
type: internal
ovs_version: ...
Create an uplink port.
# ovs-vsctl add-bond vs_osa0 vsbond0 enc1108 enca112
# ovs-vsctl show
...
Bridge "vs_osa0"
Port "vsbond0"
Interface "enc1108"
Interface "enca112"
Port "vs_osa0"
Interface "vs_osa0"
type: internal
...