[zfs-discuss] changing vdev types

Cindy Swearingen
Wed, 01 Jun 2011 19:53:09 -0000

Hi Matt,

You have several options in terms of migrating the data but I think the
best approach is to do something like I have described below.

Thanks,

Cindy

1. Create snapshots of the file systems to be migrated. If you
want to capture the file system properties, then see the zfs.1m
man page for a description of what you need.

2. Create your mirrored pool with the new disks and call it
pool2, if your raidz pool is pool1, for example.

3. Use zfs send/receive to send your snapshots to pool2.

4. Review the pool properties on pool1 if you want pool2 set up
similarly.

# zpool get all pool1

5. After your pool2 is setup and your data is migrated, then
you can destroy pool1.

6. You can export pool2 and import is as pool1.

On 06/01/11 12:54, Matt Harrison 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?
>
> Thanks
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss