On Wed, Jun 1, 2011 at 12:45 PM, Eric Sproul <espr...@omniti.com> wrote:

> On Wed, Jun 1, 2011 at 2:54 PM, Matt Harrison
> <iwasinnamuk...@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


Side note:  you most certainly can mix vdevs in a pool.  It's not
recommended, nor even suggested, but it's most certainly possible.  You just
have to add -f to the "zpool add" command.

I use this at home, where my pool has a 3-disk raidz1 vdev (SATA1) and a
2-disk mirror vdev (IDE).  I can't connect to my home machine right now, so
can't post the "zpool status" output.  But if you want to see it in action,
I'll post when I get home.

That said, you can't remove top-level vdevs (raidz*, mirror, single) from a
pool, so you can't "add" a new vdev and "remove" the old vdev to convert
between vdev types.

The only solution to the OP's question is to create a new pool, transfer the
data, and destroy the old pool.  There are several ways to do this.

-- 
Freddie Cash
fjwc...@gmail.com
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to