On Wed, 24 Feb 2010, Gregory Gee wrote:
files
files/home
files/mail
files/VM
I want to move the files/VM to another zpool, but keep the same mount
point. What would be the right steps to create the new zpool, move the
data and mount in the same spot?
Create the new pool, take a snapshot of files/VM, use zfs send|zfs recv to
copy the snapshot over to the new pool.
Then you can unmount files/VM without losing any data, and set the
mountpoint property of the new dataset to where files/VM was mounted.
e.g.:
# zfs umount files/VM
# zfs set mountpoint=/VM newpool/VM
If you want to have access to both datasets at the same time, just use an
alternate mountpoint for the original dataset. 'zfs set
mountpoint=/old-VM files/VM' would do the trick.
Also, to test this, if I mount to the same spot, will it hide the old
dataset or destroy it. I want to test the migration before destroying
the old dataset. Or can I?
The old dataset will not be destroyed unless you use 'zfs destroy'.
Regards,
markm
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss