How to setup bonding in a VPS? [message #11688] |
Mon, 02 April 2007 16:51 |
oviney
Messages: 17 Registered: April 2007 Location: Ottawa
|
Junior Member |
|
|
Hi Support:
I am attempting to setup bonding in a vps but have come to a halt when attempting to configure the modules, see example below:
<snippet>
Make sure bonding module is loaded when the channel-bonding interface (bond0) is brought up. You need to modify kernel modules configuration file:
# vi /etc/modprobe.conf
alias bond0 bonding
options bond0 miimon=100
</snippet>
I am not sure if I want to install the required package but would like someone to confirm if this is even possible. As I understand it, the vps would have to access the Hardware Node's /proc file system in order for this to work, which according to the design of openvz, appears to be totally restricted, which does makes sense.
Could someone please confirm if it is possible to configure a VPS to use bonding? If it is possible, could someone explain how to work around the issue that a default VPS RHAS server image doesn't contain modprobe (package name mod-utils??)
Also, let me know if you need more information.
Thank you
|
|
|
Re: How to setup bonding in a VPS? [message #11690 is a reply to message #11688] |
Mon, 02 April 2007 17:27 |
oviney
Messages: 17 Registered: April 2007 Location: Ottawa
|
Junior Member |
|
|
Ok I did a little more research and found that there is a default package that comes with the RHAS 4 update 4 image. The package is called:
default package -> module-init-tools.i386
openvz package -> dummy-centos-4.i386
By default there isn't a /etc/modprobe.conf file create. I decided to try to hack this a bit and created the file manually and placed the following in it:
alias bond0 bonding
options bond0 miimon=100
I do notice that if I test the bonding config I get:
[root@caotta000807l ~]# vzctl exec 101 cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v2.6.3 (June 8, 2005)
Bonding Mode: load balancing (round-robin)
MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
then I look at the message log file:
Apr 2 12:26:08 caotta000807l-1 network: Shutting down loopback interface: succeeded
Apr 2 12:26:08 caotta000807l-1 sysctl: net.ipv4.ip_forward = 0
Apr 2 12:26:08 caotta000807l-1 network: Disabling IPv4 packet forwarding: succeeded
Apr 2 12:26:08 caotta000807l-1 network: Setting network parameters: succeeded
Apr 2 12:26:08 caotta000807l-1 network: Bringing up loopback interface: succeeded
Apr 2 12:26:08 caotta000807l-1 network: Bringing up interface bond0: succeeded
I am still hunting, but I have not idea at this point why this isn't working as expected.
Any help would be appreciated
[Updated on: Mon, 02 April 2007 18:09] Report message to a moderator
|
|
|
|
|