From owner-freebsd-fs@FreeBSD.ORG Tue Oct 19 11:49:16 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 CB692106564A; Tue, 19 Oct 2010 11:49:16 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 8DA0D8FC0C; Tue, 19 Oct 2010 11:49:16 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1P8Agt-000Hh1-7d; Tue, 19 Oct 2010 12:49:15 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1P8Agt-0001Ob-6I; Tue, 19 Oct 2010 12:49:15 +0100 Date: Tue, 19 Oct 2010 12:49:15 +0100 Message-Id: To: pjd@FreeBSD.org In-Reply-To: <20101018222611.GC2375@garage.freebsd.pl> From: Pete French 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, 19 Oct 2010 11:49:16 -0000 > Maybe I'm missing something, but how do you guys check this? Both > gmirror and glabel use only single sector for its metadata, so 1kB in > total. HAST metadata takes 4kB plus activemap size, which depends on > provider size. I checked it by disconnecting one half of the mirror - which is on a separate machine in my case remember - and then setting that machine up with hast. Created the hast device and did a 'diskinfo' on the resulting device. Compared that to a 'diskinfo' on the original provider. Here are the results, for the bare disk, the hast device, the mirrored device, and partition 'a' on the mirrored device. I wrote a disklabel there when it was UFSA, in case you were wondering. diskinfo /dev/da0s1 /dev/da0s1 512 68718411776 134215648 0 16384 16447 255 32 diskinfo /dev/hast/serp0 /dev/hast/serp0 512 68718403584 134215632 0 0 diskinfo /dev/mirror/mysql0 /dev/mirror/mysql0 512 68718410752 134215646 0 0 diskinfo /dev/mirror/mysql0a /dev/mirror/mysql0a 512 68718402560 134215630 0 8192 8354 255 63 So my current zpool uses /dev/mirror/mysql0a which is 68718402560 bytes, and when I move to hast I will be using /dev/hast/serp0 which is 68718403584 bytes - i.e. 1024 bytes larger. Note that if it wasn't for the BSD style disklabel it would be larger, and wouldnt work. -pete.