Date: Sat, 09 Jul 2011 16:59:34 +0400 From: Pan Tsu <inyaoo@gmail.com> To: Eir Nym <eirnym@gmail.com> Cc: Berczi Gabor <freebsd@berczi.be>, freebsd-current@freebsd.org, Volodymyr Kostyrko <c.kworr@gmail.com> Subject: Re: ZFS boot fails with two pools Message-ID: <86r55zboeh.fsf@gmail.com> In-Reply-To: <CAO8GK0pDRsLS=Ni0DKe3yWPfW-QMfCKVj1YfBQ=fdMzBsK5=pQ@mail.gmail.com> (Eir Nym's message of "Sat, 9 Jul 2011 14:19:53 %2B0400") References: <12DA9EAC-8677-49AD-BA6C-5A155D2A6122@berczi.be> <4E14C0D9.9040503@gmail.com> <2040FCF6-2CA2-4CF3-BB78-F5A3069297FF@berczi.be> <4E158846.4040807@gmail.com> <D9B54DD4-B0F5-44C4-B3F0-1CF492EBE80F@berczi.be> <CAO8GK0pDRsLS=Ni0DKe3yWPfW-QMfCKVj1YfBQ=fdMzBsK5=pQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Eir Nym <eirnym@gmail.com> writes:
> On 8 July 2011 09:28, Berczi Gabor <freebsd@berczi.be> wrote:
>>
>> On Jul 7, 2011, at 12:19 PM, Volodymyr Kostyrko wrote:
>>
>>>>> 2. Try to convince bios to boot from the disk of pool2.
>>>>
>>>> There is no disk with a singular ZFS pool.
>>>
>>> Any disk from bootable pool.
>>
>> Every disk contains two pools. And the BIOS sees only two (maybe three) of them.
>>
>>>>> 3. You can possibly try deploying /boot/boot0 MBR selector code
>>>>> over disks of data pool. Supplied boot0 code can be used to
>>>>> choose another disk to jump to it during boot process and will
>>>>> remember the last choice.
>>>>
>>>> I'm not really sure how to do this with GPT. Should I use boot0 instead of pmbr?
>>>
>>> boot0cfg is your old friend
>>
>> Cool, how do we get acquinted?
>>
>>> Actuall I think that code on that stages just tries to boot from the pool on the current disk.
>>
>> There are two pools on it...
>>
>
> gpart(8) can set 'bootme' flag for GPT partition, so there no problem
> to specify from which partition to boot.
Doesn't gptzfsboot probe all `freebsd-zfs' partitions irrespective of
their boot* attributes? A quick search shows why
$ fgrep -ir bootme sys/boot sys/cddl/boot
$ grep -wr 'gpt.*(' sys/boot sys/cddl/boot
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86r55zboeh.fsf>
