zfs drive configurations?

Bakul Shah bakul at bitblocks.com
Sat Jun 9 01:39:47 UTC 2007


> I've got a machine I'm putting together with 5 drive bays, and I'm
> trying to work out what combination of drives to use.  The appeal of zfs
> is that I can start with relatively small drives, and replace them, on a
> one-by-one basis, as they either die, or I get my hands on larger ones.
> Is this possible?

Yes. [In theory.  I have not tried this yet]

> 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.

Also realize that while raidz gives you more space, in
general it will be slower than mirroring for random IO.  If
each disk does N random ops/sec, then a 4 disk raidz will
given N random reads/sec, while a 2 stripe 2 way mirror will
give you upto 4N random reads/sec.

See
  http://blogs.sun.com/roch/category/ZFS
  http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide

BTW, you can experiment using memory devices backed with real files!

With 5 disks I'd use four for one zfs pool and the last one for
temp space, and other misc. things.


More information about the freebsd-current mailing list