Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD guests won't boot with netbsd-9 DOM0



Le mer. 16 oct. 2019 à 11:05, Michael van Elst <mlelstv%serpens.de@localhost> a écrit :
> >xbd0: 100 GB, 512 bytes/sect x 209715200 sectors
> >WARNING: xbd1: total sector size in disklabel (209715200) != the size of xbd1 (2867200)
>
> >Is there an off by one in the warning check?
>
> That looks more like xbd0 and xbd1 disklabels get mixed because of:
>
> xbd_xenbus.c:591
>                 /* try to read the disklabel */
>                 dk_getdisklabel(&sc->sc_dksc, 0 /* XXX ? */);
>
> The second parameter is supposed to be the dev_t that is then used
> to read the label.
>
> See also kern/41704.

It seems it reads it in order to determine "correct" block size.

This should fix it, different way than cgd in kern/41704:
https://www.netbsd.org/~jdolecek/xbd_disklabel_fix.diff

Martin, can you try this fix?

Jaromir


Home | Main Index | Thread Index | Old Index