From owner-freebsd-fs@FreeBSD.ORG Thu Apr 29 08:12:11 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 7DF2F106566B for ; Thu, 29 Apr 2010 08:12:11 +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 A0BA58FC12 for ; Thu, 29 Apr 2010 08:12:10 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id BCA8845CD9; Thu, 29 Apr 2010 10:12:07 +0200 (CEST) Received: from localhost (pdawidek.wheel.pl [10.0.1.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 CD81A45C9B; Thu, 29 Apr 2010 10:12:02 +0200 (CEST) Date: Thu, 29 Apr 2010 10:12:00 +0200 From: Pawel Jakub Dawidek To: Mikolaj Golub Message-ID: <20100429081200.GB1697@garage.freebsd.pl> References: <86r5m9dvqf.fsf@zhuzha.ua1> <20100423062950.GD1670@garage.freebsd.pl> <86k4rye33e.fsf@zhuzha.ua1> <20100424073031.GD3067@garage.freebsd.pl> <868w8dgk4e.fsf@kopusha.onet> <86tyqzeq84.fsf@kopusha.onet> <20100428214636.GD1677@garage.freebsd.pl> <86mxwmk7my.fsf@zhuzha.ua1> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E13BgyNx05feLLmH" Content-Disposition: inline In-Reply-To: <86mxwmk7my.fsf@zhuzha.ua1> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 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 autolearn=ham version=3.0.4 Cc: freebsd-fs Subject: Re: HAST: primary might get stuck when there are connectivity problems with secondary 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, 29 Apr 2010 08:12:11 -0000 --E13BgyNx05feLLmH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 29, 2010 at 11:03:33AM +0300, Mikolaj Golub wrote: >=20 > On Wed, 28 Apr 2010 23:46:36 +0200 Pawel Jakub Dawidek wrote: >=20 > PJD> Could you see if the following patch fixes the problem for you: >=20 > PJD> http://people.freebsd.org/~pjd/patches/hastd_timeout.patch >=20 > PJD> The patch sets timeout on both incoming and outgoing sockets on pri= mary > PJD> and on outgoing socket on secondary. Incoming socket on secondary is > PJD> left with no timeout to avoid problem you described above. >=20 > The patch works for me. >=20 > After disabling the network connection between the primary and the second= ary > FS operations on the primary do not get stuck and the following messages = are > observed: >=20 > Apr 29 10:37:41 hasta hastd: [storage] (primary) Unable to receive reply = header: Resource temporarily unavailable. > Apr 29 10:37:57 hasta hastd: [tank] (primary) Unable to receive reply hea= der: Resource temporarily unavailable. > Apr 29 10:37:57 hasta hastd: [tank] (primary) Unable to send request (Res= ource temporarily unavailable): WRITE(972292096, 14336). > Apr 29 10:38:56 hasta hastd: [storage] (primary) Unable to connect to 172= .20.66.202: Operation timed out. > Apr 29 10:39:12 hasta hastd: [tank] (primary) Unable to connect to 172.20= .66.202: Operation timed out. >=20 > After restoring the network connection the primary reconnects to the seco= ndary > and the status changes back from "degraded" to "complete". Good. And I assume you don't observe problems on secondary? Eg. recv(2) on secondary doesn't timeout? --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --E13BgyNx05feLLmH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvZP1AACgkQForvXbEpPzQFQwCgiD1RGHI73+QgfVJ+kxGCXT2/ MZ4An2CG/Dlvk7zDa0IlfvhdCoJOHzst =iuSN -----END PGP SIGNATURE----- --E13BgyNx05feLLmH--