Current-Users archive

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

Re: Strange boot problems on amd64-current (6.99.40)



On Sun, May 11, 2014 at 06:31:25PM -0700, Paul Goyette wrote:
> On Sun, 11 May 2014, Michael L. Hitch wrote:
> 
> >On Sun, 11 May 2014, Paul Goyette wrote:
> >
> >>I might be able to get a serial console set-up, but it will
> >>likely take some time, as I have never used serial console with
> >>netbsd.  (I would estimate that it would take me at least until
> >>next weekend, maybe even longer...)
> >>
> >>If there are any other suggestions, I'd love to hear them.
> >
> > My guess is that since you have the RAID partition on wd0e, the
> >root device configuration is trying to use the 'e' partition on
> >the raid0 device.
> >
> > I think I've almost always used the 'a' partition for a bootable
> >raid and can't remember any configuration where the bootable raid
> >wasn't on the 'a' partition.
> 
> Yeah, that seems to be the problem.  But it wasn't a problem until
> just a few weeks ago (April 2nd).  The raid device has its own
> partition table, independant of the partition table on the component
> drives, so there really isn't any good reason (IMHO) to assume any
> correspondence between them.
> 
> And FWIW, this configuration has been working for at least a couple
> of years.  I even wrote up a How-To page [1] for the wiki to
> describe the set-up.

My analysis is that rf_netbsdkintf.c:1.306-8 introduced a call to
findroot() (via cpu_rootconf() changed later to cpu_bootconf()),
which sets booted_partition to e because it matched wd0e and wd1e to
the physical boot device.

But when booted_device is later changed to raid0, booted_partition is
not touched.  I am not 100% clear about what changed there, but in a
way the old behaviour was wrong, too:  it doesn't seem like a good
idea to change booted_device without resetting booted_partition to a
proper value.

Now, what should rf_buildroothack do?  Set it to 'a' unconditionnally?
Maybe set it to whichever partition is at the beginning of the device?

-- 
Quentin Garnier - cube%cubidou.net@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpoDBvUEn6HO.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index