Hi,

On 5/20/19 8:19 AM, Yuan Y Bai wrote:
> Hi Roosen,
>  
> Thanks your information.
>  
> Could you find `bond0!BONDING_OPTS=mode=2` in output of updatenode?
> Do you find `BONDING_OPTS="mode=2"` from ifcfg-bond0 after updatenode
> command?
>  
> I cannot reproduce this issue in my RH7.6 environment, I tried the
> command `chdef node1 nicextraparams.bond0="BONDING_OPTS=mode=2"` and
> `updatenode node1 confignetwork`, it worked.
>  

Yes I provisioned the node again and I cannot reproduce it either. Maybe
something else went in the way ...

Thanks.


> "802.3ad" is the default value for BONDING_OPTS in our code
> /install/postscripts/nicutils.sh,  You can replace line
> _bonding_opts="mode=802.3ad miimon=100"  with _bonding_opts="mode=2" in
> our code /install/postscripts/nicutils.sh, then try to run "updatenode
> node1 confignetwork" to see if it work or not. 
>  
>  
> Best Regards
> --------------------------------------------------
> Yuan Bai (白媛)
> 
> CSTL HPC System Management Development
> Tel:86-10-82451401
> E-mail: by...@cn.ibm.com
> Address: IBM ZGC Campus. Ring Building 28,
> ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District,
> Beijing P.R.China 100193
> 
> IBM环宇大厦
> 北京市海淀区东北旺西路8号,中关村软件园28号楼
> 邮编:100193
>  
>  
> 
>     ----- Original message -----
>     From: "Roosen, Nicolas" <nicolas.roo...@hpe.com>
>     To: "xcat-user@lists.sourceforge.net" <xcat-user@lists.sourceforge.net>
>     Cc:
>     Subject: [EXTERNAL] Re: [xcat-user] Ethernet bonding mode (BONDING_OPTS)
>     Date: Fri, May 17, 2019 9:54 PM
>      
>     Answering to myself:
> 
>     On 5/17/19 12:43 PM, Roosen, Nicolas wrote:
>     > Hello, I am trying to setup a bonded Ethernet interface on a node
>     (xCAT
>     > 2.14.6 / RHEL 7.6).
>     >
>     > It works almost fine, except for the bonding options which I fail
>     to change.
>     > The default seems to be "802.3ad".
>     > I'd like to set it to "mode=2".
>     >
>     > I tried this:
>     >
>     > chdef node1 nicextraparams.bond0="BONDING_OPTS=mode=2"
>     >
>     > Which seems to be taken into account:
>     >
>     > tabdump nics
>     >
>     
> #node,nicips,nichostnamesuffixes,nichostnameprefixes,nictypes,niccustomscripts,nicnetworks,nicaliases,nicextraparams,nicdevices,nicsadapter,comments,disable
>     >
>     
> "node1","bond0!172.31.0.11",,,"bond0!bond,enp195s0f1!ethernet,enp195s0f0!ethernet",,"bond0!172_31_0_0-255_255_0_0",,"bond0!BONDING_OPTS=mode=2","bond0!enp195s0f0|enp195s0f1",,,
>     >
>     > But when I update the network configuration on the node, the
>     settings is
>     > not applied.
>     >
>     > cat /proc/net/bonding/bond0 | grep -i mode
>     > Bonding Mode: IEEE 802.3ad Dynamic link aggregation
>     >
>     > What else can I try?
>     >
> 
>     It works fine when I re-install the node.
> 
>     [root@localhost network-scripts]# cat ifcfg-bond0
>     ONBOOT="yes"
>     USERCTL="no"
>     TYPE="Bond"
>     BONDING_MASTER="yes"
>     BONDING_OPTS="mode=2"
>     BOOTPROTO="static"
>     DHCLIENTARGS="-timeout 200"
>     MTU="1500"
>     DEVICE="bond0"
> 
> 
>     cat /proc/net/bonding/bond0
> 
>     Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
> 
>     Bonding Mode: load balancing (xor)
>     Transmit Hash Policy: layer2 (0)
> 
>     --
>     Nicolas
> 
>     _______________________________________________
>     xCAT-user mailing list
>     xCAT-user@lists.sourceforge.net
>     https://lists.sourceforge.net/lists/listinfo/xcat-user
>     <https://lists.sourceforge.net/lists/listinfo/xcat-user>
>      
> 
>  
> 
> 
> 
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
> 

-- 
Nicolas Roosen
Technical Consultant

+33 970010023  Office
+33 777161256  Mobile


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to