From owner-freebsd-fs@FreeBSD.ORG Fri Mar 5 03:56:10 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 426EB1065670 for ; Fri, 5 Mar 2010 03:56:10 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-iw0-f173.google.com (mail-iw0-f173.google.com [209.85.223.173]) by mx1.freebsd.org (Postfix) with ESMTP id 094B88FC12 for ; Fri, 5 Mar 2010 03:56:09 +0000 (UTC) Received: by iwn3 with SMTP id 3so2403606iwn.13 for ; Thu, 04 Mar 2010 19:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=UJ0UiJuIOXDYJVwQoXwhhUwPoCuMPiTDAQFdBg5qIs0=; b=gEUbksir2LMMIewipgyeo9Kb4Gbtl40q3lz4LlugcWE+cZK29RfNcnAMnjRIvNi0xg 3dpAYqllnOFePgrPfaMxFzGlVUrMeN0k4aH4OlA0TZS/Z3WhK5ZXNnI4z/uAmyVTLYuE N+dqi+CzIL6PnN3NUN8A/Aq6o18Qlt2xCuI2M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=uerTVx5zWu8f7U+7e/TtkqeDDUWpOqHLxFOChaEKVPmXoZswqJYPj+OQlkxIXO54lc z3XGOm5NC5WoY82T4Z2T2kStLKEcx/9veuR9Ci48fFMw7XgnqZ+5l1mV+Ql3WoG5CS+m PAb0D3AA31WP1Oz3KuEUcgfXEDVLmBkqz5/M8= MIME-Version: 1.0 Received: by 10.231.150.74 with SMTP id x10mr1274456ibv.97.1267761367157; Thu, 04 Mar 2010 19:56:07 -0800 (PST) In-Reply-To: <20100304210508.GA1816@garage.freebsd.pl> References: <20100304210508.GA1816@garage.freebsd.pl> Date: Thu, 4 Mar 2010 19:56:06 -0800 Message-ID: From: Freddie Cash To: fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Fri, 05 Mar 2010 03:56:10 -0000 On Thu, Mar 4, 2010 at 1:05 PM, Pawel Jakub Dawidek wrote: > 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 > able > > 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 > will > > start to re-sync. > > > > 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 > > I figured it would be something simple like that. Thanks for the pointers. I'll give this a try in a couple of weeks, when we're back from vacation. :) -- Freddie Cash fjwcash@gmail.com