From owner-freebsd-fs@FreeBSD.ORG Thu Mar 4 21:05:19 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A905C106564A for ; Thu, 4 Mar 2010 21:05:19 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id DEDA08FC0C for ; Thu, 4 Mar 2010 21:05:18 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 16DD145E49; Thu, 4 Mar 2010 22:05:16 +0100 (CET) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C81B745CDD; Thu, 4 Mar 2010 22:05:10 +0100 (CET) Date: Thu, 4 Mar 2010 22:05:08 +0100 From: Pawel Jakub Dawidek To: Freddie Cash Message-ID: <20100304210508.GA1816@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: fs@freebsd.org Subject: Re: HAST: split-brain -- how to force one side to become primary? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2010 21:05:19 -0000 --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 # hastctl create # hastctl role secondary --=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--