Hi List,
We're using bonding to create bond0 with 2 NICs, and noticing that CentOS 5 2.6.18-8.1.14.el5 (and presumably older) creates bond1 as well.
I'd like to remove bond1 from the system, so that our monitoring scripts don't pick it up, except for those machines that actually do have a bond1.
So... how does one remove bond1?
Thanks! Misc info below of configuration and what doesn't work.
best, Jeff
% cat /etc/modprobe.conf | grep bond alias bond0 bonding options bond0 max_bonds=2 miimon=100 mode=1
% find /etc/ -iname "*bond1*" | wc -l 0
% grep -r bond1 /etc/ 2> /dev/null | wc -l 0
% cat /sys/class/net/bonding_masters bond0 bond1
% echo "bond0" > /sys/class/net/bonding_masters -bash: echo: write error: Operation not permitted
% id uid=0(root) gid=0(root) ...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 10/20/07, J. Potter jpotter-centos@codepuppy.com wrote:
So... how does one remove bond1?
Shouldn't this do the trick?
rm /etc/sysconfig/network-scripts/ifcfg-bond1
Also, I did not put the max_bonds param in my modprobe.conf.
So... how does one remove bond1?
Shouldn't this do the trick? rm /etc/sysconfig/network-scripts/ifcfg-bond1
One would hope... but that file doesn't exist. In fact, there is no file under /etc that contains the letters "bond1", nor any file under /etc that contains the contents "bond1".
???
best, Jeff
J. Potter wrote:
So... how does one remove bond1?
Shouldn't this do the trick? rm /etc/sysconfig/network-scripts/ifcfg-bond1
One would hope... but that file doesn't exist. In fact, there is no file under /etc that contains the letters "bond1", nor any file under /etc that contains the contents "bond1".
Remove the max_bonds=2 from /etc/modprobe.conf
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.