From owner-freebsd-fs@FreeBSD.ORG Sun Aug 22 11:39: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 1F65B106566B for ; Sun, 22 Aug 2010 11:39:10 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id BE4588FC12 for ; Sun, 22 Aug 2010 11:38:59 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 3751D45F20; Thu, 19 Aug 2010 21:43:32 +0200 (CEST) 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 1532E45E93; Thu, 19 Aug 2010 21:43:27 +0200 (CEST) Date: Thu, 19 Aug 2010 21:43:25 +0200 From: Pawel Jakub Dawidek To: "Michael W. Lucas" Message-ID: <20100819194325.GA2719@garage.freebsd.pl> References: <20100818183300.GA98970@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <20100818183300.GA98970@bewilderbeast.blackhelicopters.org> 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=-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 secondary identifying when it's dirty? 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: Sun, 22 Aug 2010 11:39:10 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 18, 2010 at 02:33:00PM -0400, Michael W. Lucas wrote: > Hi, >=20 > I have a HAST device set up between two systems. It appears that the > secondary doesn't know when it's dirty. Is there any way for the > secondary to know that its copy is incomplete? >=20 > For example, I had to resync my HAST partition due to a firewall > issue. While the master knows the secondary is dirty, the secondary > thinks it's complete. For example: >=20 > master# hastctl status > mirror: > role: primary > provname: mirror > localpath: /dev/da0s2 > extentsize: 2097152 > keepdirty: 64 > remoteaddr: 192.168.0.1 > replication: memsync > status: complete > dirty: 24385683456 bytes >=20 > secondary# hastctl status > mirror: > role: secondary > provname: mirror > localpath: /dev/da0s2 > extentsize: 2097152 > keepdirty: 0 > remoteaddr: 192.168.0.2 > replication: memsync > status: complete > dirty: 0 bytes >=20 > The secondary doesn't realize it's 24GB out of sync. >=20 > Is there any way for the secondary to get this information? Nope. Secondary doesn't even know that synchronization is progress. The only thing you can do is to: # ssh primary hastctl status :) --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkxtiVEACgkQForvXbEpPzQSqACfRsg0I5A6/ATjYVgppUmK30nX IvQAnjugdF9BBNF41hbX72QBdnKz8vg8 =GRCr -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--