Date: Wed, 18 Jan 2012 09:31:00 +0200 From: Artem Kajalainen <artem@kayalaynen.ru> To: freebsd-questions@freebsd.org Subject: carp+hastd at boot Message-ID: <CAGS-ugnu=q1i4f79QOewSH78uQKJ3DhYo%2B3uHbSarp3eQ5zinw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello, I'm trying to setup hastd+carp on two FreeBSD 9.0-STABLE servers. hast switch roles by devd events, and there is one problem. When box is rebooted, carp interface flapping between states. A have the same problem as described here - http://lists.freebsd.org/pipermail/freebsd-stable/2011-August/063742.html. I have already one master, it set hast node to primary, so when second box rebooted and carp comes up as master, script invoked by devd set hast to primary -> split-brain. After few seconds it changes to backup state. gw_chlb_2# cat /var/log/messages | grep carp Jan 18 00:15:20 gw_chlb_2 kernel: carp0: INIT -> BACKUP Jan 18 00:15:20 gw_chlb_2 kernel: carp0: link state changed to DOWN Jan 18 00:15:23 gw_chlb_2 kernel: carp0: link state changed to UP Jan 18 00:15:28 gw_chlb_2 kernel: carp0: MASTER -> BACKUP (more frequent advertisement received) Jan 18 00:15:28 gw_chlb_2 kernel: carp0: link state changed to DOWN I think, I can write shell script, which will check carp state after 2-3 minutes after boot and then set up hast role accordingly, but I don't want to re-invent wheel. How this master state at boot can be avoided? --- With Best Regards / Yst=C3=A4v=C3=A4llisin terveisin Artem Kajalainen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGS-ugnu=q1i4f79QOewSH78uQKJ3DhYo%2B3uHbSarp3eQ5zinw>