Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2007 21:36:39 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Josef Karthauser <joe@FreeBSD.org>, Bakul Shah <bakul@bitblocks.com>, current@FreeBSD.org
Subject:   Re: zfs drive configurations?
Message-ID:  <20070609023639.GE96345@dan.emsphone.com>
In-Reply-To: <20070609020826.GA7887@genius.tao.org.uk>
References:  <20070608223500.GA1250@genius.tao.org.uk> <20070609011724.B97CD5B52@mail.bitblocks.com> <20070609020826.GA7887@genius.tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <pool> <device>
> > 
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070609023639.GE96345>