From owner-freebsd-stable@FreeBSD.ORG Mon Oct 23 15:35:00 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1D5916A415 for ; Mon, 23 Oct 2006 15:35:00 +0000 (UTC) (envelope-from vivek@khera.org) Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9266443D80 for ; Mon, 23 Oct 2006 15:34:47 +0000 (GMT) (envelope-from vivek@khera.org) Received: from [192.168.7.103] (host-103.int.kcilink.com [192.168.7.103]) by yertle.kcilink.com (Postfix) with ESMTP id 7584CB80A for ; Mon, 23 Oct 2006 11:34:46 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.2) To: FreeBSD Stable Message-Id: <8F9483A9-D387-443E-A325-356958211153@khera.org> Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-7-774374722; protocol="application/pkcs7-signature" From: Vivek Khera Date: Mon, 23 Oct 2006 11:34:44 -0400 X-Mailer: Apple Mail (2.752.2) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: CARP not balancing automatically X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2006 15:35:01 -0000 --Apple-Mail-7-774374722 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I'm attempting to use CARP with arpbalance to load balance some services. My only problem is that the balancing doesn't happen automatically. The configuration is just from the carp man page: ifconfig_em0="inet XXX.XXX.XXX.55 netmask 255.255.255.192 " ifconfig_em1="inet 192.168.100.55 netmask 255.255.255.0 " ifconfig_carp0="inet 192.168.100.100 netmask 255.255.255.0 vhid 5 pass dns-prv" ifconfig_carp1="inet 192.168.100.100 netmask 255.255.255.0 vhid 6 advskew 100 pass dns-prv" cloned_interfaces="carp0 carp1" and on the other box: ifconfig_em0="inet XXX.XXX.XXX.56 netmask 255.255.255.192 " ifconfig_em1="inet 192.168.100.56 netmask 255.255.255.0 " ifconfig_carp0="inet 192.168.100.100 netmask 255.255.255.0 vhid 5 advskew 100 pass dns-prv" ifconfig_carp1="inet 192.168.100.100 netmask 255.255.255.0 vhid 6 pass dns-prv" cloned_interfaces="carp0 carp1" and of course net.inet.carp.arpbalance=1 in /etc/sysctl.conf. When I reboot the systems, the first one to boot up becomes the MASTER for both carp0 and carp1 interfaces and remains so even after the other machine comes up. The second machine to boot comes up in BACKUP mode for both interfaces. The only way to make the balance change is to bring down carp0 on the box not designated as the master for it momentarily until such time that the first one (the designated master for carp0) takes over, then bring up carp0 again. Until I perform this manual step, all traffic goes to the single box. After I perform this step, the traffic is balanced nicely as expected amongst the local network hosts. Each box then has one MASTER and one BACKUP carp interface for this IP. What can I do to make the balance automatic as the docs imply? This also happens on another pair of machines I have which are CARP + arpbalance for another IP. The NICs in question are hooked up to a gigabit switch. Thanks! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. MailerMailer, LLC Rockville, MD http://www.MailerMailer.com/ +1-301-869-4449 x806 --Apple-Mail-7-774374722--