From owner-freebsd-fs@FreeBSD.ORG Sat Apr 24 07:07:44 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CA2E106564A for ; Sat, 24 Apr 2010 07:07:44 +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 4E5018FC15 for ; Sat, 24 Apr 2010 07:07:42 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 21C1B45EC0; Sat, 24 Apr 2010 09:07:41 +0200 (CEST) Received: from localhost (gate.wheel.pl [10.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 9006B45E97; Sat, 24 Apr 2010 09:07:36 +0200 (CEST) Date: Sat, 24 Apr 2010 09:07:37 +0200 From: Pawel Jakub Dawidek To: "hiroshi@soupacific.com" Message-ID: <20100424070737.GC3067@garage.freebsd.pl> References: <20100416065126.GG1705@garage.freebsd.pl> <4BCD3979.8050107@soupacific.com> <4BCD5AD7.8070502@soupacific.com> <4BCFA4C2.6000109@soupacific.com> <4BCFB1C5.5000908@soupacific.com> <4BD01800.9040901@soupacific.com> <4BD0438B.5080308@soupacific.com> <4BD0E432.1000108@soupacific.com> <20100423061521.GC1670@garage.freebsd.pl> <4BD24E16.8000302@soupacific.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XuV1QlJbYrcVoo+x" Content-Disposition: inline In-Reply-To: <4BD24E16.8000302@soupacific.com> 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=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00, TO_ADDRESS_EQ_REAL autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: HAST configuration? 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: Sat, 24 Apr 2010 07:07:44 -0000 --XuV1QlJbYrcVoo+x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 24, 2010 at 10:49:10AM +0900, hiroshi@soupacific.com wrote: > Hi ! >=20 > I checked ucarp_up.sh and modified like this. >=20 > # Wait few seconds for provider to appear. > ##for i in `jot 50`; do > for i in `jot 2000`; do > [ -c "${device}" ] && break > sleep 0.1 > done >=20 > Then 30 seconds to a minute after login the box, /dev/hast and /hapool=20 > appears. >=20 > So hastctl role primary test takes a while when nodeb is downed. >=20 > I hope this info help you some. That makes sense. Connection attempts are made in background, but with one exception - role change. When the role is changed to primary I try to connect to secondary _before_ creating /dev/hast/ provider, so if secondary is fine, we will connect and everything will work. I wanted to avoid situation where we create /dev/hast/ provider, system will start to use it and we will connect to secondary a bit later. This will trigger synchronization, which isn't desiriable when both nodes are in good shape. I think the way to fix it is would be to decrease initial connection timeout. I'll look into this. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --XuV1QlJbYrcVoo+x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvSmLkACgkQForvXbEpPzSZJwCdHhHVXDiwomU77Ou9cGoylSdM lUoAn2PwvgZoYsREo2PIOVo0PW8bPBf6 =P6wc -----END PGP SIGNATURE----- --XuV1QlJbYrcVoo+x--