Configuring an existing zpool to raidz2

Peter Schuller peter.schuller at infidyne.com
Sat Oct 27 23:50:48 PDT 2007


> For example,
> You have a zpool called 'mypool' and it has ad0,ad1, and ad2.  This
> pool has data on it.
> Is it safe to do: "zpool create mypool raidz2 ad0 ad1 ad2" and have
> that pool use raidz2 without any loss of data occurring?

Conerting pools between different types is not possible, with the
exception of adding mirrors.

You would have to create a new pool and move your data onto it.

> Also, which is more recommended to use, raidz or raidz2?

That is completely dependent on the situation. raidz offers n+1
redundancy (you can loose up to one drive), while raidz2 offers n+2
redundancy (you can loose up to two drives). In both cases at the cost
of diskspace.

In your case with three drives, you would probably want raidz or you
would only get the disk space of a single drive (thus wasting two
thirds).

I recommend you have a look at the ZFS administrator guide:

http://www.opensolaris.org/os/community/zfs/docs/zfsadmin.pdf

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey at scode.org
E-Mail: peter.schuller at infidyne.com Web: http://www.scode.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20071028/f0c878b5/attachment.pgp


More information about the freebsd-fs mailing list