Date: Thu, 4 Mar 2010 22:05:08 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Freddie Cash <fjwcash@gmail.com> Cc: fs@freebsd.org Subject: Re: HAST: split-brain -- how to force one side to become primary? Message-ID: <20100304210508.GA1816@garage.freebsd.pl> In-Reply-To: <b269bc571003031631s1c4cbde1rb3f54b9189d95ea8@mail.gmail.com> References: <b269bc571003031631s1c4cbde1rb3f54b9189d95ea8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 03, 2010 at 04:31:40PM -0800, Freddie Cash wrote: > According to the wiki, when a split-brain situation arises, I should be a= ble > to stop hastd on one side, write changes to the /dev/hast/* providers on = the > primary to increment the localcnt valye, and then bring up the secondary > hastd. The locacnt/remotecnt values will be different, and everything wi= ll > start to re-sync. >=20 > However, this doesn't seem to work. Or, maybe I'm not doing things right= to > make it work. Or maybe I've completely misunderstood how it all works. > (Nah, that can never happen. roll-eyes) :) On split-brain, when you decide that you don't need data on one of the nodes you simply do the following on this node: # hastctl role init <resource> # hastctl create <resource> # hastctl role secondary <resource> --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuQIIQACgkQForvXbEpPzT6UQCffhCXvk4qdlCV46iABfmbNPtV RyYAn2pg990Uh6zhVtNXXKTWCopifoco =nu6r -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100304210508.GA1816>