boot from ZFS: which pool types use?

Kimmo Paasiala kpaasial at gmail.com
Thu Jul 4 12:59:54 UTC 2013


On Thu, Jul 4, 2013 at 3:43 PM, Dmitry Morozovsky <marck at rinet.ru> wrote:
> On Thu, 4 Jul 2013, Andriy Gapon wrote:
>
>> >>>> Can't find /boot/zfsloader
>> >>>
>> >>> Does this file exist in the filesystem pointed to by bootfs property (if set)?
>> >>
>> >> Arghh!!! I missed to set this one (however, this is the only zfs pool on the
>> >> machine -- shouldn't the loader assume it is safe to try to boot off?)
>> >
>> > For the record: setting up zpool bootfs property fixes the issue.
>> >
>> > I suppose it should be emphasized in all guides to not miss this, to avoid
>> > confusions; also, maybr some reasonable defaults should be implemented to help
>> > avoiding simple configuration errors.
>> >
>> > Thanks Andriy a lot, I really needed a 'reset press' from outside after
>> > kinda-3-days dances around this machine ;-)
>>
>> Setting bootfs should not be required.  If your root filesystem is your root
>> dataset (like "tank"), then everything should have just worked.
>
> it was/is (and, as I previously stated, is the only ZFS dataset on the
> machine), but unfortunately without explicit setting bootfs property does not
> work :(
>
> As this machine is still on staging phase (although I'm afraid I have to put it
> in production during next few days, so timing are tight), I'm more than happy
> to make debugging boots/runs to tighten the issue.
>
> Thanks again!
>
> --

With a recent 9-STABLE setting the bootfs property is actually the
only thing you need in addition to installing the boot loader, no need
to muck with the zpool.cache anymore.

-Kimmo


More information about the freebsd-fs mailing list