Solved Use bsdinstall with zpool as target?

Hello,
I am installing a new server.
I created a zpool across 4 drives (GPT, boot-swap-zfs partitions, raidz1 pool)

I can see more steps here https://wiki.freebsd.org/RootOnZFS#RAIDZ1_Pool but the top of the pages says this is outdated.

Is there a way to just use bsdinstall from there, instructing it to install freebsd in the zpool I just created?

Or do I have to create the datasets and extract the system manually?
 
Sorry but how? Do I need to set a mountpoint of / on my zroot? If I just try to proceed right now, Guided Root on ZFS setup fails to detect anything and manual partitioning tells me it cannot find a root partition.

Just creating a zroot/ROOT with mountpoint=/ was not enough. (The pool has an ALTROOT in /tmp/zfs. But if it didn't I would be crashing my current system by mounting something on /, I guess? So I am really not sure what to do.)

Edit: wait are you saying just destroy my partitioning and use bsdinstall from scratch?
 
Yes you can do all from the bsdinstall during the normal installation. You don't need to create any GPT/partition etc manually.
 
Right I tried and it did the layout a bit differently (added an EFI partition and left some free space) but that's fine.

Thanks!
 
Yes it align to 4k the partition that's why there's some space left. Last time when i checked the only thing that bsdinstall doesn't do was to copy of the loader.efi into the other disks. It do it only on the first boot disk. So you may want to manually mount the EPS partition of the other 3 disks one by one and verify if the bootx64.efi exists.
 
Back
Top