Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2011 16:14:10 -0400
From:      John <jwd@SlowBlink.Com>
To:        freebsd-current@freebsd.org
Subject:   hosta carp going down/up/down/up... on hostb reboot
Message-ID:  <20110526201410.GA33357@slowblink.com>

next in thread | raw e-mail | index | archive | help
Hi Folks,

   I have a -current system as of May 9th. Between two systems
I have a dedicated cross over network cable with two carp interfaces
defined on it:

hosta:

ifconfig_bce1="inet 172.1.1.1 netmask 255.255.255.0"  # cross-over
cloned_interfaces="carp1 carp2"
ifconfig_carp1="vhid 1 pass zfscarp1 advbase 1 advskew 100 172.1.1.101 netmask 255.255.255.0"
ifconfig_carp2="vhid 2 pass zfscarp2 advbase 1 advskew 100 172.1.1.102 netmask 255.255.255.0"

hostb:

ifconfig_bce1="inet 172.1.1.2 netmask 255.255.255.0"  # cross-over
cloned_interfaces="carp1 carp2"
ifconfig_carp1="vhid 1 pass zfscarp1 advbase 1 advskew 100 172.1.1.101 netmask 255.255.255.0"
ifconfig_carp2="vhid 2 pass zfscarp2 advbase 1 advskew 100 172.1.1.102 netmask 255.255.255.0"

When the primary system, hosta, is the MASTER for the carp interfaces, I
reboot hostb. I've included the down/up sequence from /var/log/messages
below. During the reboot, the carp interfaces on hosta go down and back
up 5 times. Any ideas why is carp flipping back and forth while the
opposing host is rebooting?  This plays havoc with the associated scripts
and thus resources controlled by the interfaces.

While hosta & hostb are up, I can flip resources back and forth between
the systems with carp 100%, perfect, no errors. 

Comments, ideas, or any other pointers are welcome.

Thanks,
John


May 26 13:29:19 hosta root: start reboot hostb here
May 26 13:29:45 hosta kernel: carp1: link state changed to DOWN
May 26 13:29:45 hosta kernel: carp2: link state changed to DOWN
May 26 13:29:47 hosta kernel: carp1: INIT -> BACKUP
May 26 13:29:47 hosta kernel: carp2: INIT -> BACKUP
May 26 13:29:47 hosta kernel: carp1: link state changed to DOWN
May 26 13:29:47 hosta kernel: carp2: link state changed to DOWN
May 26 13:29:47 hosta kernel: carp1: link state changed to DOWN
May 26 13:29:47 hosta kernel: carp2: link state changed to DOWN
May 26 13:29:50 hosta kernel: carp1: INIT -> BACKUP
May 26 13:29:50 hosta kernel: carp2: INIT -> BACKUP
May 26 13:29:50 hosta kernel: carp1: link state changed to DOWN
May 26 13:29:50 hosta kernel: carp2: link state changed to DOWN
May 26 13:29:59 hosta kernel: carp1: link state changed to UP
May 26 13:29:59 hosta kernel: carp2: link state changed to UP
May 26 13:30:08 hosta kernel: carp1: link state changed to DOWN
May 26 13:30:08 hosta kernel: carp2: link state changed to DOWN
May 26 13:30:11 hosta kernel: carp1: INIT -> BACKUP
May 26 13:30:11 hosta kernel: carp2: INIT -> BACKUP
May 26 13:30:11 hosta kernel: carp1: link state changed to DOWN
May 26 13:30:11 hosta kernel: carp2: link state changed to DOWN
May 26 13:30:11 hosta kernel: carp1: link state changed to DOWN
May 26 13:30:11 hosta kernel: carp2: link state changed to DOWN
May 26 13:30:14 hosta kernel: carp1: INIT -> BACKUP
May 26 13:30:14 hosta kernel: carp2: INIT -> BACKUP
May 26 13:30:14 hosta kernel: carp1: link state changed to DOWN
May 26 13:30:14 hosta kernel: carp2: link state changed to DOWN
May 26 13:30:23 hosta kernel: carp1: link state changed to UP
May 26 13:30:23 hosta kernel: carp2: link state changed to UP
May 26 13:30:49 hosta kernel: carp1: link state changed to DOWN
May 26 13:30:49 hosta kernel: carp2: link state changed to DOWN
May 26 13:30:51 hosta kernel: carp1: INIT -> BACKUP
May 26 13:30:51 hosta kernel: carp2: INIT -> BACKUP
May 26 13:30:51 hosta kernel: carp1: link state changed to DOWN
May 26 13:30:51 hosta kernel: carp2: link state changed to DOWN
May 26 13:31:00 hosta kernel: carp1: link state changed to UP
May 26 13:31:00 hosta kernel: carp2: link state changed to UP
May 26 13:32:35 hosta kernel: carp1: link state changed to DOWN
May 26 13:32:35 hosta kernel: carp2: link state changed to DOWN
May 26 13:32:37 hosta kernel: carp1: INIT -> BACKUP
May 26 13:32:37 hosta kernel: carp2: INIT -> BACKUP
May 26 13:32:37 hosta kernel: carp1: link state changed to DOWN
May 26 13:32:37 hosta kernel: carp2: link state changed to DOWN
May 26 13:32:47 hosta kernel: carp1: link state changed to UP
May 26 13:32:47 hosta kernel: carp2: link state changed to UP
May 26 13:32:52 hosta kernel: carp1: link state changed to DOWN
May 26 13:32:52 hosta kernel: carp2: link state changed to DOWN
May 26 13:32:54 hosta kernel: carp1: INIT -> BACKUP
May 26 13:32:54 hosta kernel: carp2: INIT -> BACKUP
May 26 13:32:54 hosta kernel: carp1: link state changed to DOWN
May 26 13:32:54 hosta kernel: carp2: link state changed to DOWN
May 26 13:33:03 hosta kernel: carp1: link state changed to UP
May 26 13:33:03 hosta kernel: carp2: link state changed to UP
May 26 13:34:37 hosta root: hostb reboot complete




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110526201410.GA33357>