Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2013 15:59:53 +0300
From:      Kimmo Paasiala <kpaasial@gmail.com>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        freebsd-fs@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: boot from ZFS: which pool types use?
Message-ID:  <CA%2B7WWSeo403Jes7nKMvLVsbo1NrSj1-xu1LKSjG6DtvmaX3NXQ@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1307041640270.2446@woozle.rinet.ru>
References:  <alpine.BSF.2.00.1307041424030.2446@woozle.rinet.ru> <51D56066.1020902@FreeBSD.org> <alpine.BSF.2.00.1307041552031.2446@woozle.rinet.ru> <alpine.BSF.2.00.1307041559160.2446@woozle.rinet.ru> <51D56C19.8080103@FreeBSD.org> <alpine.BSF.2.00.1307041640270.2446@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, Jul 4, 2013 at 3:43 PM, Dmitry Morozovsky <marck@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B7WWSeo403Jes7nKMvLVsbo1NrSj1-xu1LKSjG6DtvmaX3NXQ>