From owner-freebsd-stable@FreeBSD.ORG Wed Jun 8 12:45:06 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1737F1065674 for ; Wed, 8 Jun 2011 12:45:06 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8D7278FC1C for ; Wed, 8 Jun 2011 12:45:05 +0000 (UTC) Received: by fxm11 with SMTP id 11so424255fxm.13 for ; Wed, 08 Jun 2011 05:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:x-comment-to :sender:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=9s08qi3X/wrkPMUo4pGZLK3nldQ9skZ/y7uD86Hlpm0=; b=HjDhwrEQwcGOSxdD92Xi6ylzqjEaVRMO+SCZRDmnGPlOC0tk75P8+ef7+4UkhBfUZs K7/0Dtc0BkpCy6ts8DieAyyH5NKiAGhnmKm2ORCmn5yimK7TBcaRljtNDiKFI15J7Rf8 CYPALUX4LYxCNp7Xp6AT+G89RFGDOa32vHp48= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:x-comment-to:sender:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=XZc4Dt+PaiNZToXvKja6xAN2zmcnjdnCY6FA6X3JzNkUaWjrnllt+T0V6rLWyeqPeZ thzeoINykNlYMweIv17MzNAWTNnD7vW4li1UFhblMqJJSM/DrOnz9Vef2Y/MxDWD5P4Y klw18RR99E7kA2z/UsbexNK0qHSKOFzG8eNCY= Received: by 10.223.55.27 with SMTP id s27mr812565fag.121.1307535790010; Wed, 08 Jun 2011 05:23:10 -0700 (PDT) Received: from localhost ([95.69.172.154]) by mx.google.com with ESMTPS id b22sm209429fak.25.2011.06.08.05.23.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2011 05:23:08 -0700 (PDT) From: Mikolaj Golub To: Victor Balada Diaz References: <20110606144655.GG6624@equilibrium.bsdes.net> X-Comment-To: Victor Balada Diaz Sender: Mikolaj Golub Date: Wed, 08 Jun 2011 15:23:06 +0300 In-Reply-To: <20110606144655.GG6624@equilibrium.bsdes.net> (Victor Balada Diaz's message of "Mon, 6 Jun 2011 16:46:55 +0200") Message-ID: <86vcwgikb9.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: stable@freebsd.org Subject: Re: Unusable hastd in FreeBSD 8.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2011 12:45:06 -0000 Hi, On Mon, 6 Jun 2011 16:46:55 +0200 Victor Balada Diaz wrote: VBD> Hello, VBD> Hastd in it's current form is not usable on FreeBSD 8.2-RELEASE or in 8-STABLE. You VBD> can see why in this thread: VBD> http://lists.freebsd.org/pipermail/freebsd-fs/2011-February/010752.html VBD> You can see the committed fix in: VBD> http://svnweb.freebsd.org/base?view=revision&revision=219721 VBD> But it's never been MFCd. Is it possible to MFC it to 8-STABLE and maybe VBD> do an errata notice for RELENG_8_2? Actually, it was MFCed. In r220151. Also, I don't think this is an issue that makes hastd unusable in FreeBSD 8.2 :-). The issue is the following. Before switching the node to primary the failover (third-party) script is checking if secondary process is still alive (assuming that in this case the primary on another node is still alive too) and fails if it is -- some protection against split brain. But before r219721 secondary might not die automatically when primary host was down. This can be workarounded. E.g. by removing the check in the script :-). Or setting net.inet.tcp.keepidle to some small value (e.g. 10 seconds) -- this should make secondary notice that another end is dead after this interval. -- Mikolaj Golub