=> 40 1000215136 ada0 GPT (477G) 40 532480 1 efi (260M) 532520 1024 2 freebsd-boot (512K) 533544 984 - free - (492K) 534528 16777216 3 freebsd-swap (8.0G) 17311744 982902784 4 freebsd-zfs (469G) 1000214528 648 - free - (324K)
gpart backup ada0 | gpart restore -F ada1dd if=/dev/ada0p1 of=/dev/ada1p1dd if=/dev/ada0p2 of=/dev/ada1p2zpool attach zroot ada0p4 ada1p4
swapoff -add if=/dev/zero of=/dev/ada0p3dd if=/dev/zero of=/dev/ada1p3gmirror label -v -b round-robin swap /dev/ada0p3 /dev/ada1p3# Check if there is a mirror now?gmirror statusls /dev/mirror/swap# If so edit /etc/fstab to ../dev/mirror/swap none swap sw 0 0swapon -a
# Device Mountpoint FStype Options Dump Pass#/dev/ada1p1 /boot/efi msdosfs rw 2 2/dev/ada1p3 none swap sw 0 0/dev/ada0p3 none swap sw 0 0
# gpart show=> 40 250069600 ada0 GPT (119G) 40 532480 1 efi (260M) 532520 1024 2 freebsd-boot (512K) 533544 984 - free - (492K) 534528 16777216 3 freebsd-swap (8.0G) 17311744 232757248 4 freebsd-zfs (111G) 250068992 648 - free - (324K)=> 40 250069600 ada1 GPT (119G) 40 532480 1 efi (260M) 532520 1024 2 freebsd-boot (512K) 533544 984 - free - (492K) 534528 16777216 3 freebsd-swap (8.0G) 17311744 232757248 4 freebsd-zfs (111G) 250068992 648 - free - (324K)
root@firewall:/etc # zpool status pool: zroot state: ONLINEconfig: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 ada1p4 ONLINE 0 0 0errors: No known data errorsroot@firewall:/etc # zpool attach zroot ada1p4 ada0p4invalid vdev specificationuse '-f' to override the following errors:/dev/ada0p4 is part of active pool 'zroot'
Zpool attach zroot gpt/whateveryourdrivenameis
But in general you need- an EFI boot partition or- a legacy boot loader partition- a swap partitionall outside of ZFS.