From owner-freebsd-fs@FreeBSD.ORG Sat Oct 16 22:29:13 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 1AA10106566C for ; Sat, 16 Oct 2010 22:29:13 +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 B640E8FC15 for ; Sat, 16 Oct 2010 22:29:12 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 142AF45CA6; Sun, 17 Oct 2010 00:29:10 +0200 (CEST) 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 6F6BB45C9B; Sun, 17 Oct 2010 00:29:04 +0200 (CEST) Date: Sun, 17 Oct 2010 00:28:33 +0200 From: Pawel Jakub Dawidek To: Freddie Cash Message-ID: <20101016222833.GA6765@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" 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: Sat, 16 Oct 2010 22:29:13 -0000 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 15, 2010 at 11:37:34AM -0700, Freddie Cash wrote: > Has anyone looked into, attempted, or considered converting a non-HAST > ZFS pool configuration into a HAST one? While the pool is live and > the server is in use. Would it even be possible? >=20 > For example, would the following work (in a pool with a single raidz2 > vdev, where the underlying GEOM provider is glabel) > - zpool offline 1 drive (pool is now running degraded) > - configure hastd in master mode with a single provider using the > "offline" disk (hast metadata takes the place of glabel metadata) HAST metadata takes much more space than glabel metadata. The latter takes only one sector, while the former depends on provider size, but we have to keep entire extent bitmap there, so definitely more than one sector. > - zpool replace the offline drive using the /dev/hast/whatever provider > - wait for ZFS to resilver the device > - repeat for each disk in the vdev >=20 > Is it possible to change the hast configuration and reload hastd to > pick up new providers, without restarting it? Without losing the > /dev/hast devices? Or would it require a restart, which would cause > the /dev/hast/* devices to disappear, thus b0rking the pool? It is possible in 8-STABLE. > Just wondering how hard it's going to be to move from our current > setup (backup server 1 rsync'd to backup server 2) to a HAST setup > (server 1 hast master with server 2 hast slave). >=20 > If the above won't work, then I guess I'll have to grab a third > storage box, configure that as a hast box, copy the data over, destroy > server 2, configure it as a hast box, and let them sync. I'm afraid you have to backup your pool, recreate it on HAST provider and recover. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAky6JxEACgkQForvXbEpPzT6lACeJ+/GHVO9m//Ot1MJvPqGpNJ8 aW0AnipQtf6hRRd3ASuV39oB4Iu9sCBL =wrLr -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--