I have a working setup (12.1 RELEASE) with 5 disks configured as a single zroot pool with RAID-Z2. I changed the computer around it and have more slots available for disks. I understand that the optimal number of disks for RAID-Z2 is 6. I understand that I cannot really add a new vdev to the pool and expect the capacity to increase. I understand that I am supposed to be able to snapshot zroot, zfs send zroot to a file and then zfs receive zroot from said file.
I have spent a good two weeks looking at all kinds of instructions on moving a (running or offline, doesn't matter) FreeBSD system from one computer to another. The vast majority of the instructions are from an era with 4:3 aspect ratio on TV and MBR as the industry standard. The best I got was https://dan.langille.org/2018/12/31/adding-a-zroot-pool-to-an-existing-system/.
What I have done is create a new pool (fast) in the live system,
I am currently
Am I doing it right? Is there a much more simple way that I cannot find because I am thinking it too complicated? Shall I
This forum post talks of the same issue, I can see, but talks of zfs sending a partition, not a pool, and that, again, confuses me.
I have spent a good two weeks looking at all kinds of instructions on moving a (running or offline, doesn't matter) FreeBSD system from one computer to another. The vast majority of the instructions are from an era with 4:3 aspect ratio on TV and MBR as the industry standard. The best I got was https://dan.langille.org/2018/12/31/adding-a-zroot-pool-to-an-existing-system/.
What I have done is create a new pool (fast) in the live system,
zfs -r snapshot zroot@backup
, zfs -R send zroot@backup | pigz >
file in the other pool, then checked with gpart show da0
(through da4
) to see that the partitioning on all five is identical (save for the label), then gpart -F destroy da5 (which is a new, blank drive with enough space), gpart create -s gpt da5
, exported the and reboot to live mode. I have created a zroot pool and imported the pool fast with mountpoint in /tmp/fast and created a new zroot
pool with the third partition of the target drive as the target (has partition type freebsd-zfs
.I am currently
cat
ting the snapshot file to gunzip
and to zfs recv -F zroot
.Am I doing it right? Is there a much more simple way that I cannot find because I am thinking it too complicated? Shall I
dd
the efi
boot partition and swap
partition to the target drive?This forum post talks of the same issue, I can see, but talks of zfs sending a partition, not a pool, and that, again, confuses me.