From owner-freebsd-fs@FreeBSD.ORG Thu May 19 23:26:19 2011 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 966481065674 for ; Thu, 19 May 2011 23:26:19 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 3F2478FC0C for ; Thu, 19 May 2011 23:26:19 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 0B9C045685; Fri, 20 May 2011 01:26:18 +0200 (CEST) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 0255A45EA4; Fri, 20 May 2011 01:26:12 +0200 (CEST) Date: Fri, 20 May 2011 01:25:51 +0200 From: Pawel Jakub Dawidek To: Freddie Cash Message-ID: <20110519232551.GG2100@garage.freebsd.pl> References: <85EC77D3-116E-43B0-BFF1-AE1BD71B5CE9@itassistans.se> <20110519181436.GB2100@garage.freebsd.pl> <4DD5A1CF.70807@itassistans.se> <20110519230921.GF2100@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yRA+Bmk8aPhU85Qt" Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 9.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) 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: HAST + ZFS self healing? Hot spares? 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, 19 May 2011 23:26:19 -0000 --yRA+Bmk8aPhU85Qt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 19, 2011 at 04:22:57PM -0700, Freddie Cash wrote: > With HAST, there's only a couple of small changes needed: > - zpool offline poolname diskname <-- removes the /dev/hast node > from the pool > - hastctl role init diskname <-- removes the /dev/hast node > - remove dead disk > - insert new disk > - partition, label, etc as needed > - hastctl role create diskname <-- creates the hast resource > - hastctl role primary diskname <-- creates the new /dev/hast n= ode > - zpool replace poolname olddisk newdisk <-- adds the /dev/hast node to > pool > - wait for resilver to complete >=20 > The downside to this setup is that the data on the disk in the secondary > node is lost, as the resilver of the disk on the primary node recreates a= ll > the data on the secondary node. But, at least then you know the data is > good on both disks in the HAST resource. It shouldn't be the case. Primary HAST node should synchronize data from secondary HAST node, as primary has new disk. This should allow you to simply 'zpool online poolname disk' instead of replacing it. It doesn't work that way for you? --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com --yRA+Bmk8aPhU85Qt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk3Vpv8ACgkQForvXbEpPzRzYgCg0c70YunwrcHfbE9BGx7QvDAz pl8AnRZlWsk6AINDg6wREmHSWwyd/jNm =XkmN -----END PGP SIGNATURE----- --yRA+Bmk8aPhU85Qt--