WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Configuring bonding in domU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Configuring bonding in domU
From: dongkyu lee <dongq.lee@xxxxxxxxx>
Date: Fri, 9 Jul 2010 15:42:10 +0900
Delivery-date: Thu, 08 Jul 2010 23:43:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=3/r3RC+6U6zLI7HaksjCQ0a8sKbC+QPlSQrZOHUQ+4E=; b=eseBAOUx1seT8C3VeyzKZNVSpq7JYVi19jv83jcvVOtW0mZe4OIxYNumVGHhqVEZ25 VykHCQGzc/a8S4lOKzMtuRulpZWWxB2+zO/mnkooPD1f0u7Wnw+IzZOrCWNIfvvl0Uop EQGcsr61RsS5E/dSOhvNfBSKBTebJHclIZVAc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=PIcb0LvWZbWdY4M69xicbJNbB427FwRDnMAp2cxJK91hNxA3To/K9SI4NXoP3hE6uM blNn0Qo/3f+Co7lNvidJ8vuS/QjQVji2frJe9gJtddO6fT5/PVnbltvbhf50weGs+AxD Gw6tADO0Xm+ctdD6qchn2FT2YZxy+tTUIS0r8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi everyone

After configuring bonding eth0 and eth1 in domU, "cat /proc/net/bonding/bond0" showed it was configured correctly.
-----------------------------------------------------------------------------------------
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth1
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
ARP Polling Interval (ms): 1000
ARP IP target/s (n.n.n.n form): 10.25.81.1, 10.24.22.70

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:16:3e:46:90:bb

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:16:3e:74:81:2f
-----------------------------------------------------------------------------------------------


and /etc/modprobe.conf file was edited for bonding like below
-----------------------------------------------------------------------------------------------
alias eth0 xennet
alias scsi_hostadapter xenblk
alias eth1 xennet

alias bond0 bonding

#options bond0 miimon=100 mode=1 primary=eth0
options bond0 arp_interval=1000 arp_ip_target=10.25.81.1,10.24.22.70 mode=1 primary=eth1
-----------------------------------------------------------------------------------------------

When switch port which currently active slave is connected (via eth1 in dom0) was down,
this domU detected eth1 was no longer connected and changed primary interface to backup slave (eth0).
It was observed by /var/log/message

-----------------------------------------------------------------------------------------------
kernel: bonding: bond0: changing from interface eth0 to primary interface eth1
kernel: bonding: bond0: making interface eth1 the new active one.
kernel: bonding: bond0: link status down for active interface eth1, disabling it
kernel: bonding: bond0: making interface eth0 the new active one.
kernel: bonding: bond0: backup interface eth1 is now up
-----------------------------------------------------------------------------------------------

the problem was that last message "kernel: bonding: bond0: backup interface eth1 is now up" keep repeating in domU and
network did not work. At this time,  I tcpdumped eth0 in dom0 and domU and showed domU keep sending/receiving arp message properly.

tcpdump message in domU
-----------------------------------------------------------------------------------------------
15:32:03.592087 arp who-has 10.25.81.1 tell 10.25.81.100
15:32:04.592047 arp who-has 10.25.81.1 tell 10.25.81.100
15:32:04.593386 arp reply 10.25.81.1 is-at 00:00:0c:07:ac:16
15:32:05.592228 arp who-has 10.25.81.1 tell 10.25.81.100
15:32:06.592252 arp who-has 10.25.81.1 tell 10.25.81.100
15:32:07.592237 arp who-has 10.25.81.1 tell 10.25.81.100
15:32:07.592810 arp reply 10.25.81.1 is-at 00:00:0c:07:ac:16
15:32:08.592456 arp who-has 10.25.81.1 tell 10.25.81.100
15:32:09.592457 arp who-has 10.25.81.1 tell 10.25.81.100
15:32:10.592417 arp who-has 10.25.81.1 tell 10.25.81.100
15:32:10.593041 arp reply 10.25.81.1 is-at 00:00:0c:07:ac:16
15:32:11.592588 arp who-has 10.25.81.1 tell 10.25.81.100
-----------------------------------------------------------------------------------------------

In conclusion, domU network was not working but arp networking seems working. 

Any guess/suggestion? Thank you in advance.

System Info
Xen Version : 3.4.1
Dom0 OS : Centos 5.3 x64
DomU OS : Centos 5.3 x64


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Configuring bonding in domU, dongkyu lee <=