Hi! According to Klara's recommendations I would like to add a 64G swap. Swap will be added to both disks where zfs partitions are mirrored now:
Then the swap partitions will also be mirrored.
The problem is that such an action will require temporarily disconnecting one of the disks from the pool, then creating new partitions, including swap, and mirror (or copy) ZFS data to smaller ZFS partition (it will decrease due to swap being added to both disks).
But I won't be able to make a mirror from the first and second ZFS partitions, since the second one will have a smaller size.
What options are there? Only zfs send/receive?
Code:
root@test:~ # gpart show
=> 40 1875384928 diskid/DISK-11111111111111 GPT (894G)
40 532480 1 efi (260M)
532520 1874852448 2 freebsd-zfs (894G)
=> 40 1875384928 diskid/DISK-22222222222222 GPT (894G)
40 532480 1 efi (260M)
532520 1874852448 2 freebsd-zfs (894G)
Then the swap partitions will also be mirrored.
The problem is that such an action will require temporarily disconnecting one of the disks from the pool, then creating new partitions, including swap, and mirror (or copy) ZFS data to smaller ZFS partition (it will decrease due to swap being added to both disks).
But I won't be able to make a mirror from the first and second ZFS partitions, since the second one will have a smaller size.
What options are there? Only zfs send/receive?