Re: ZFS boot fails with two pools

From: Pan Tsu <inyaoo_at_gmail.com>
Date: Sat, 09 Jul 2011 16:59:34 +0400
Eir Nym <eirnym_at_gmail.com> writes:

> On 8 July 2011 09:28, Berczi Gabor <freebsd_at_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
Received on Sat Jul 09 2011 - 11:00:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:15 UTC