Re: NetBSD 9_RC1 not booting from disklabel partition on RAIDframe on GPT

2019-12-12 Thread Matthias Petermann

Hello Chavdar,

thanks for looking at this issue. In the meantime Emmanuel Dreyfus 
contacted me and did prepare a patch which solves the issue for me. It 
is attached to the PR misc/54748 [1].


The patch is committed to HEAD, so newer 9.99.x daily builds should 
already contain it. It would be good if it receives some more testing so 
hopefully it finds its way to 9.0.


Kind regards
Matthias


[1] http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54748


Am 06.12.2019 um 13:13 schrieb Chavdar Ivanov:

I haven't done raidframe installations for a long time, but followed
your sequence using two days old amd64-current -9.99.19- and it failed
the same way for me. It was under VirtualBox, though.

Chavdar






smime.p7s
Description: S/MIME Cryptographic Signature


Re: NetBSD 9_RC1 not booting from disklabel partition on RAIDframe on GPT

2019-12-06 Thread Chavdar Ivanov
I haven't done raidframe installations for a long time, but followed
your sequence using two days old amd64-current -9.99.19- and it failed
the same way for me. It was under VirtualBox, though.

Chavdar


On Fri, 6 Dec 2019 at 01:39, Matthias Petermann  wrote:
>
> Hello,
>
> there seems to be a deviation of the boot behavior in NetBSD 9_RC1
> compared to NetBSD 8.1 under the following circumstances:
>
> 1) system has 2 disks (wd0, wd1)
> 2) disks are GPT-partitioned
> 3) GPT contains one GPT-partition (RAIDframe component) each
> 4) RAIDframe raid0 contains a NetBSD disklabel
>
> After installing NetBSD 9_RC1 it will not boot, instead the primary
> bootstrap is telling me:
>
> Unexpected raidframe label version
> NAME=sys0 not found
>
> The closest I could find is this commit:
>
> https://www.mail-archive.com/source-changes-d@netbsd.org/msg21099.html
>
> where GPT and RAIDframe support for the boot loaders was enhanced (which
> is really good!).
>
> Here is where I set up the system:
>
> * Boot from USB installation media
> * Select keyboard type
> * Utility Menu - Run /bin/sh
>
>  # ksh
>
>  # gpt create wd0
>  # gpt create wd1
>
>  # gpt add -l sys0 -a 2m -s 96G -t raid wd0
>  # gpt add -l sys1 -a 2m -s 96G -t raid wd1
>
>  # gpt show -l wd0
>  # gpt show -l wd1
>
>  # dkctl wd0 listwedges
>  # dkctl wd1 listwedges
>
>  # gpt biosboot -A -i 1 wd0
>  # gpt biosboot -A -i 1 wd1
>
>  # vi /tmp/raid0.conf
>
>  START array
>  1 2 0
>
>  START disks
>  /dev/dk0
>  absent
>
>  START layout
>  128 1 1 1
>
>  START queue
>  fifo 100
>
>  # raidctl -C /tmp/raid0.conf raid0
>  # raidctl -I 201912500 raid0
>  # raidctl -i raid0
>  # raidctl -A softroot raid0
>
> * Exit shell and continue with installer
>
> * Install NetBSD to hard disk
> * Select raid0
> * Select disklabel as partitioning scheme for raid0
> * Set sizes of NetBSD Partitions
>  -> Change input units (MB)
> * root 16384
> * swap 16384
> * usr 32768+
> * var 8192
> * Bootblock: BIOS console
> * Installation w/out X11
>
> * Utility Menu - Run /bin/sh
>
>  # installboot -o timeout=30 -v -t raid /dev/rdk0 /usr/mdec/bootxx_ffsv2
>
> * Reboot
>
>
> Kind regards
> Matthias



--