Date: Sat, 03 Jul 2010 22:41:40 +0900 From: "hiroshi@soupacific.com" <hiroshi@soupacific.com> To: Mikolaj Golub <to.my.trociny@gmail.com> Cc: freebsd-fs@freebsd.org, Pawel Jakub Dawidek <pjd@FreeBSD.org> Subject: Re: HAST and CARP Message-ID: <4C2F3E14.1080601@soupacific.com> In-Reply-To: <86iq4xx9fy.fsf@kopusha.home.net> References: <4C139F9C.2090305@soupacific.com><86iq5oc82y.fsf@kopusha.home.net> <4C14215D.9090304@soupacific.com><20100613003635.GA60012@icarus.home.lan><20100613074921.GB1320@garage.freebsd.pl><4C149A5C.3070401@soupacific.com><20100613102401.GE1320@garage.freebsd.pl><86eigavzsg.fsf@kopusha.home.net><20100614095044.GH1721@garage.freebsd.pl><868w6hwt2w.fsf@kopusha.home.net><20100614153746.GN1721@garage.freebsd.pl><86zkyxvc4v.fsf@kopusha.home.net> <4C2C43D5.1080907@soupacific.com><86mxubndrp.fsf@kopusha.home.net> <4C2D7615.5070606@soupacific.com><861vbm1hpr.fsf@zhuzha.ua1> <4C2D9C62.4050105@soupacific.com><86wrtez14z.fsf@zhuzha.ua1> <4C2DC801.5080108@soupacific.com> <86iq4xx9fy.fsf@kopusha.home.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Mikolaj! > > I don't think resolving split-brain by script is a good idea. You can detect > split-brain on primary monitoring provider status and then resolve it > manually. It is much better to have scripts/setup that prevent split-brain > situations than scripts that resolve it :-) I agree with you solving split-brain by script. Today I was thinking about this situation resolving, and conclusion is some thing like hastctl role secondary -f xxx But this command can be used only for emergency situation and not inside script. ifstated is enabled in rc.conf, once reboot ServerB without ServerA connection. Such case ServerB became CARP's MASTER then ifstated also set hast as primary. This may happen often when setting hast testing time. So I think some rescue command may help to get out split-brain situation caused by any accident or mistake. > > You should have a setup so when the master is rebooted after the reboot it > checks the status of other node and sets its own role accordingly (so there > would not be two masters simultaneously). Software I use in my setup (our home > made application) does this well. sysutils/heartbeat should work fine too. As > for me carp might not do well for this but I am not very experienced with carp > so I can be wrong. > By CARP, ifconfig carp0 advskew {bigger value than secondary} on console sets CARP as secondary. How do you think this idea ? Hiroshi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C2F3E14.1080601>