I'm pondering the possibility of running a FreeBSD system with the root filesystem on a zpool comprised of whole disks, i.e. not building the zpool vdevs on underlying MBR or GPT partitions.
I know that you can not boot directly from such a pool as ZFS's exclusive use of the disks leaves no space to install a boot loader, but I'm wondering if I can put just the ZFS bootcode on a USB flash stick and run the very first part of the boot process from there.
If I set up a bootable USB stick as follows, would this contain enough of the ZFS boot code to get as far as probing all storage devices, locating and mounting the pool and continuing as normal?
Any input from people with a detailed understanding of the FreeBSD ZFS boot process would be appreciated, along with any potential drawbacks of this idea, even if it is feasible.
I know that you can not boot directly from such a pool as ZFS's exclusive use of the disks leaves no space to install a boot loader, but I'm wondering if I can put just the ZFS bootcode on a USB flash stick and run the very first part of the boot process from there.
If I set up a bootable USB stick as follows, would this contain enough of the ZFS boot code to get as far as probing all storage devices, locating and mounting the pool and continuing as normal?
Code:
gpart create -s GPT da0
gpart add -s 64k -t freebsd-boot da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
Any input from people with a detailed understanding of the FreeBSD ZFS boot process would be appreciated, along with any potential drawbacks of this idea, even if it is feasible.