Loading...

Configuring Network Bonding For Storage Pool Network

Network bonding can be configured for Storage Pool network, when DHCP is not available or enabled.

Before You Begin

Obtain the following IP addresses before you start:

Entity

IP Address

IP address for the bonded interface

 

Netmask IP for the interface

 

Gateway IP for the interface to connect to

 

IP addresses associated with the bonded ports for storage pool network

 

Procedure

  1. Login to the node using the following default credentials:

    Login: root

    Password: cvadmin

    Note: This password can be changed during setup.

  2. Navigate to the following folder:

    /opt/commvault/MediaAgent

  3. Execute the cvnwlacpbond.py with appropriate parameters to setup the bonding.
  4. Restart the network service to create the bonding with the appropriate parameters using the following command:

    systemctl restart network

  5. Repeat these steps in the other nodes.

Examples

Help to Run the Bonding modes

Use the following command to display help:

./cvnwlacpbond.py -h

The following output will be displayed:

usage: cvnwlacpbond.py [-h] [-c] [-m {802.3ad,active-backup}] [-t {dp,sp}]
[-i IP] [-f IFACE IFACE] [-n NETMASK] [-g GATEWAY]
[-d DNS [DNS ...]] [-s]

Tool to augment and validate network settings for HyperScale

optional arguments:
-h, --help show this help message and exit

Configure Network:
-c, --configure Option to configure network
-m {802.3ad,active-backup}, --mode {802.3ad,active-backup}
Mode of bonding. Defaults to 802.3ad
-t {dp,sp}, --nwtype {dp,sp}
Type of network. Defaults to Data Protection
-i IP, --ip IP IP address of the interface
-f IFACE IFACE, --iface IFACE IFACE
Interfaces to use for configuring the bond
-n NETMASK, --netmask NETMASK
Netmask IP of the interface
-g GATEWAY, --gateway GATEWAY
Gateway IP for the interface to connect to
-d DNS [DNS ...], --dns DNS [DNS ...]
DNS IPs for the interface to configure with
-s, --suppress Suppress link validation while configuring the
interface

Note: Multiple DNS servers can be provided for the -d option, using space as the delimiter.

Configuring Active-Backup Bonding on Storage Pool Network

Use the following options to set mode 1 (active-backup bonding) for Storage Pool network:

./cvnwlacpbond.py -c -m active-backup -t sp -i <Bonded IP for private storage pool network> -n <Storage Pool Netmask IP>

For example:

./cvnwlacpbond.py -c -m active-backup -t sp -i 10.11.11.71 -n 255.255.255.0

The following output will be displayed:

Arguments entered: {'nwtype': 'sp', 'configure': True, 'ip': '10.11.11.71', 'netmask': '255.255.255.0', 'mode': 'active-backup', 'dns': None, 'validate': False, 'gateway': None}
Creating network config files for Storage pool network..
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-eno4...
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-enp134s0f1...
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-bond2...
All network config files created successfully..

Configuring LACP Bonding on Storage Pool Network

Use the following options to set mode 4 (LACP bonding) for Storage Pool network:

./cvnwlacpbond.py -c -m 802.3ad -t sp -i <Bonded IP for private storage pool network> -n <Storage Pool Netmask IP>

For example:

./cvnwlacpbond.py -c -m 802.3ad -t sp -i 10.11.11.51 -n 255.255.255.0

The following output will be displayed:

Arguments entered: {'nwtype': 'sp', 'configure': True, 'ip': '10.11.11.51', 'netmask': '255.255.255.0', 'mode': '802.3ad', 'dns': None, 'validate': False, 'gateway': None}
Creating network config files for Storage pool network..
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-eno4...
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-enp134s0f1...
Processing file: /opt/commvault/MediaAgent/ifcfg-scripts/lacp/ifcfg-bond2...
All network config files created successfully..

Last modified: 5/14/2021 3:26:55 PM