Solved Export entire zroot to different machine

Hi,

I was wondering is this even possible to export entire zroot (FreeBSD on ZFS)? By export I mean move entire zroot to different machine - different disks different CPU, RAM etc. Or maybe there are components that needs to be the same e.g. CPU or something else. It's just theoretical question addressed to ZFS experts.
Has anyone ever tried this?
 
Hi,

I was wondering is this even possible to export entire zroot (FreeBSD on ZFS)? By export I mean move entire zroot to different machine - different disks different CPU, RAM etc. Or maybe there are components that needs to be the same e.g. CPU or something else. It's just theoretical question addressed to ZFS experts.
Has anyone ever tried this?
Yes, this is possible. This is regular pipe. You can send it wherever you want. You can even send it to a file and move that file to the remote machine by your own means.

In general, you do it the same way as in local machine from drive to drive, only over ssh to remote.

First make the recursive replica in source machine:
zfs snapshot -r source_pool@replica

Then after that:
zfs send -R source_pool@replica | ssh root@remote.host zfs receive -F dest_pool

In remote, the dest_pool must be created before that.
In this example, you should enable root access over ssh.

And after that, if you need it to be bootable in remote machine:
zpool set bootfs=dest_pool/ROOT/default dest_pool

But in local machine it is probably faster.
 
Back
Top