From owner-freebsd-fs@FreeBSD.ORG Tue Nov 2 22:07:42 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 D69D1106566C for ; Tue, 2 Nov 2010 22:07:42 +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 7A75F8FC08 for ; Tue, 2 Nov 2010 22:07:42 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 5EB2A45CA6; Tue, 2 Nov 2010 23:07:40 +0100 (CET) Received: from localhost (chello089073192049.chello.pl [89.73.192.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id D6B4F45B36; Tue, 2 Nov 2010 23:07:34 +0100 (CET) Date: Tue, 2 Nov 2010 23:06:57 +0100 From: Pawel Jakub Dawidek To: Freddie Cash Message-ID: <20101102220657.GC2051@garage.freebsd.pl> References: <20101016222833.GA6765@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="adJ1OR3c6QgCpb/j" Content-Disposition: inline In-Reply-To: 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: freebsd-fs@freebsd.org Subject: Re: Converting a non-HAST ZFS pool to a HAST pool 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: Tue, 02 Nov 2010 22:07:42 -0000 --adJ1OR3c6QgCpb/j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 02, 2010 at 02:52:45PM -0700, Freddie Cash wrote: > Okay, so converting a non-HAST ZFS setup to a HAST setup using the > same drives won't work. >=20 > Any reason that it wouldn't work when replacing the drives with larger on= es? >=20 > - zpool offline poolname label/disk01 > - physically replace drive > - glabel drive as disk01 > - configure hast to use label/disk01 > - zpool replace poolname label/drive01 hast/drive01 >=20 > I can't think of any reason why it would fail, since the hast device > will be twice as large as the non-hast device it's replacing. But > thought I'd double-check, just to be safe. :) Yes, this should work. > Granted, doing it this way would required a *long* initial sync, as > there's currently 18 TB of data in the pool. And more going in every > day. So it might be better to start fresh. If you mean HAST initial sync, then this should be now improved in r214284: Before this change on first connect between primary and secondary we initialize all the data. This is huge waste of time and resources if there were no writes yet, as there is no real data to synchronize. Optimize this by sending "virgin" argument to secondary, which gives it a hint that synchronization is not needed. In the common case (where noth nodes are configured at the same time) instead of synchronizing everything, we don't synchronize at all. The change is not yet merged to stable/8, AFAIR, but this will happen today or tomorrow. You still need to wait for ZFS to copy the data over to the new vdev. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --adJ1OR3c6QgCpb/j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkzQi4AACgkQForvXbEpPzSk2gCcDf0SA7iyDVUHV7jnSnQi4fYZ m10AoL/pad/aTU0PcZ5EhDr+dSzgm6aZ =Dr3l -----END PGP SIGNATURE----- --adJ1OR3c6QgCpb/j--