From owner-freebsd-questions@FreeBSD.ORG Tue Sep 23 15:26:49 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB4B6469 for ; Tue, 23 Sep 2014 15:26:49 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 59D47D56 for ; Tue, 23 Sep 2014 15:26:49 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s8NFQk1q081083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 23 Sep 2014 09:26:46 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s8NFQiNV081079; Tue, 23 Sep 2014 09:26:46 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 23 Sep 2014 09:26:44 -0600 (MDT) From: Warren Block To: Beeblebrox Subject: Re: Gpart: Adding mirror to existing zpool In-Reply-To: <1411478977772-5951380.post@n5.nabble.com> Message-ID: References: <1411478977772-5951380.post@n5.nabble.com> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Tue, 23 Sep 2014 09:26:46 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 15:26:49 -0000 On Tue, 23 Sep 2014, Beeblebrox wrote: > Hi. > I have added another HDD to my system and I want to mirror my existing zpool > named mydata on HDD1. I assume that both of the GPT partitions on either HDD > housing mydata should be the same size, but I am a bit lost as to how to run > gpart for this. > > # gpart add -a 4k -s -i 3 ada2 The output of 'gpart show' can be used to get the values from the existing drive. But 'gpart backup' and 'gpart restore' are easier. > Setting size parameter to output from "gpart show ada*1*p3", will not make > both of these partitions properly synced IMHO. What would be the solution > here? Sorry, I don't understand this. If the sizes of two partitions are identical, they can be used in a mirror. Alignment is to make sure the drive performs well, particularly on writes.