Creating a new system from a pc server

Morning i have a system Freebsd server running i bought a desktop pc amd and i thought if it will be possible to send the root zfs from this server to the amd machine .
Could you please address me to the right way?
I will create zpool on the amd machine then how do i will send the zfs clone server to the amd?
 
The simplest way to do this, is to have ssh running on your destination box. Set up a user, with which you can log in via ssh from (old box) to (new box). Allow said user to use sudo or doas to run zfs recv without having to enter a password - otherwise, the piping I'm going to describe won't work.

You then basically do this on the old box:

Code:
zfs snapshot zroot/volume@send
zfs send zroot/volume@send | ssh newbox doas zfs recv zroot/newvolume

That's kind of it, really. Replace "zroot/volume" with the appropriate labels, I should add.
 
Or even easier and faster: if it is a single disk pool, zpool attach(8) the new drive to that disk in the pool, creating a mirror. wait for it to finish resilvering and zpool split(8) the pool. you have now an identical, working copy of the pool.

Of course that new disk needs to be the same size or larger and you might have to create/clone (backup/restore) partitions and install the bootloader to the new drive.
 
Back
Top