Hello Brian,

On Fri, Sep 14, 2007 at 11:45:27AM -0700, Brian King wrote:
> Is there a way to convert a 2 disk raid-z file system to a mirror without 
> backing up the data and restoring?
> 

Currently there isn't a way to do this without having some
additional buffer disk space available.
What you can do is attach some vdev to your current raidz. This
will create a mirror. After the resync, detach your raidz, do
whatever you want to do, like attach the first disk of your
raidz. Now you may either detach your buffer-vdev or attach the
second disk from your former raidz. The order doesn't really
matter that much. And you have moved your pool around without
backing up the data.
You have to watch the exact sizes of the disks/vdev though, since
the space in a mirror only occupies the size of the smallest
vdev and grows with the size of the smallest vdev.
Last weekend, I had to move a pool around and attached an
external USB-drive with a disk considerably larger than my zpool.
So I created a zpool on the disk and used a zvol as the
buffer-vdev.

HTH,

Patrick
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to