I'm running 11.1-RELEASE (I think, will double check when I have access to machine) with zfs as the root system in mirror-0 configuration. There are three SSDs as part of the mirror that were partitioned automatically during installation: each has three partitions labelled gptboot<n>, freebsd-swap<n>, freebsd-zfs<n>.
In addition, there is one other SSD with a single UFS partition, used for storage. I later added two more SSDs with the intention of using them as additional storage (single UFS partition each). When I did that FreeBSD wouldn't boot:
I thought that the partitions got renumbered (despite plugging in the new SSDs in the highest SATA port numbers), so I booted from a rescue CD, I enabled
If I simply unplug the SSDs it boots fine. I'm starting to think it has nothing to do with the zfs pool. What's going on?
EDIT:
So after a lot of experimenting I figured out what the problem was. It looks like FreeBSD was probing all disks and was throwing the error when one of them didn't have a valid partition table. Don't know why it would do that rather than ignore it, as the Live CD does. All I had to do was boot the Live CD and format the new disks, then my installation booted happily.
In addition, there is one other SSD with a single UFS partition, used for storage. I later added two more SSDs with the intention of using them as additional storage (single UFS partition each). When I did that FreeBSD wouldn't boot:
gptzfsboot: error 128 lba <some sector number>
I thought that the partitions got renumbered (despite plugging in the new SSDs in the highest SATA port numbers), so I booted from a rescue CD, I enabled
kern.geom.label.gptid.enable="1"
in loader.conf, I imported the zroot zfs pool specifying the device directory as /etc/gptid and replaced /boot/zfs/zpool.cache with the newly created cache from the rescue CD. I confirmed the filesystem names as given by zpool status
were now the GPT UIDs rather than the disk-partition numbers before exporting the zpool and rebooting. Same error during boot.If I simply unplug the SSDs it boots fine. I'm starting to think it has nothing to do with the zfs pool. What's going on?
EDIT:
So after a lot of experimenting I figured out what the problem was. It looks like FreeBSD was probing all disks and was throwing the error when one of them didn't have a valid partition table. Don't know why it would do that rather than ignore it, as the Live CD does. All I had to do was boot the Live CD and format the new disks, then my installation booted happily.
Last edited: