From owner-freebsd-current@FreeBSD.ORG Sat Jun 9 03:04:21 2007 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7996516A400; Sat, 9 Jun 2007 03:04:21 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 0F40E13C45D; Sat, 9 Jun 2007 03:04:00 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.13.8) id l592adog010780; Fri, 8 Jun 2007 21:36:39 -0500 (CDT) (envelope-from dan) Date: Fri, 8 Jun 2007 21:36:39 -0500 From: Dan Nelson To: Josef Karthauser , Bakul Shah , current@FreeBSD.org Message-ID: <20070609023639.GE96345@dan.emsphone.com> References: <20070608223500.GA1250@genius.tao.org.uk> <20070609011724.B97CD5B52@mail.bitblocks.com> <20070609020826.GA7887@genius.tao.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070609020826.GA7887@genius.tao.org.uk> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Subject: Re: zfs drive configurations? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 03:04:21 -0000 In the last episode (Jun 09), Josef Karthauser said: > On Fri, Jun 08, 2007 at 06:17:24PM -0700, Bakul Shah wrote: > > > What if I have 5 200gb drives configured as a raidz pool, and > > > then I replace one of the 200gb drives with a 400gb one. > > > Operationally what would I do? > > > > I believe you can do something like > > > > zpool replace > > > > The new device will get "resilvered" -- get all the missing data > > put on it and then brought up for operation. This can take a > > while. > > > > Note that you will not be able to use the extra disk until *all* > > the disks in a group (mirror or raid) have been replaced with > > bigger disks. > > Does it make sense to partition my disks into some nominal smaller > chunks: D1a-g, D2a-g, ... D5a-g and run a number of raidz across the > drives in parallel, D1a D2a .. D5a, etc? Won't help. When you replace a new disk, you'll need to either manually create larger a-g partitions and have to wait for all the drives to be replaced with high-capacity ones (so zfs can use the extra space in each partition), or add some more partitions h-m and wait for all the drives to be replaced with high-capacity ones (so you can create another raidz in the new partitions). It's also much easier to just give zfs the entire disk, as you don't have to parttion anything, and when you do swap in the last high-capacity disk, you will automatically see the new space. -- Dan Nelson dnelson@allantgroup.com