2

I work with a setup where we use ZFS snapshots to maintain a historical record. We have a need to migrate this data from one ZFS pool to another.

This question (Moving a ZFS filesystem from one pool to another) appears to be almost what I need. However, in my case I would like to move all of the snapshots, not just current data.

Anyone know how this would be done?

For reference, this is using zfs-fuse on Ubuntu 14.04

1 Answer 1

1

Are you sure you're using zfs-fuse and not the real ZFS-on-Linux?

Either way, you would use zfs send to move a filesystem. Be sure to use the -R option:

   -R

       Generate a replication stream package, which will replicate the specified filesystem, and all
       descendent  file systems, up to the named snapshot. When received, all properties, snapshots,
       descendent file systems, and clones are preserved.
3
  • I installed the zfs-fuse package and have a zfs-fuse process taking a good portion of CPU during rsync jobs. Should I be using the real ZFS-on-linux?
    – Elros
    Aug 24, 2015 at 19:40
  • Looks like the -R option is what I was missing. I will go test it now.
    – Elros
    Aug 24, 2015 at 19:40
  • Yes, you should be using ZFS-on-Linux these days.
    – ewwhite
    Aug 24, 2015 at 19:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .