OpenVZ Forum


Home » General » Support » How to setup bonding in a VPS?
How to setup bonding in a VPS? [message #11688] Mon, 02 April 2007 16:51 Go to next message
oviney is currently offline  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 Go to previous messageGo to next message
oviney is currently offline  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

Re: How to setup bonding in a VPS? [message #11691 is a reply to message #11690] Mon, 02 April 2007 18:01 Go to previous messageGo to next message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
I ran strace -o strace.out -ff ifup bond0 and have now attached the log output to this topic.
Re: How to setup bonding in a VPS? [message #11745 is a reply to message #11688] Wed, 04 April 2007 13:34 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

before starting VE in question, please, load bonding kernel module on hardware node.

Vasily.
Previous Topic: *SOLVED* 2.6.18-ovz028stab023.1-smp kernel stopped
Next Topic: Server4you Server and Connecting to the Internet and from the Internet
Goto Forum:
  


Current Time: Sat Nov 16 17:15:01 GMT 2024

Total time taken to generate the page: 0.03028 seconds