[zfs-discuss] changing vdev types

Eric Sproul
Wed, 01 Jun 2011 19:45:02 -0000

On Wed, Jun 1, 2011 at 2:54 PM, Matt Harrison
<iwasinnamuknow at genestate.com> wrote:
> Hi list,
>
> I''ve got a pool thats got a single raidz1 vdev. I''ve just
some more disks in
> and I want to replace that raidz1 with a three-way mirror. I was thinking
> I''d just make a new pool and copy everything across, but then of
course I''ve
> got to deal with the name change.
>
> Basically, what is the most efficient way to migrate the pool to a
> completely different vdev?

Since you can''t mix vdev types in a single pool, you''ll have
to create
a new pool.  But you can use zfs send/recv to move the datasets, so
your mountpoints and other properties will be preserved.

Eric