RELENG_6 kernel panic + savecore(8) problem (fwd)
dougb at FreeBSD.org
Mon Nov 26 22:49:43 PST 2007
It's an already-known chicken and egg problem. In order to run savecore
you have to have file systems mounted. In order to have file systems
mounted you have to have swap.
Short term fix is to disable swapping on the system long enough to get the
dump, then reboot with swapping turned back on.
Longer term I have some patches for a fairly complicated dance between
savecore, swapon and disk mounting around here somewhere. I'll try to
resurrect them, but that's not likely to happen till later this week.
On Mon, 26 Nov 2007, Robert Watson wrote:
> Robert N M Watson
> Computer Laboratory
> University of Cambridge
> ---------- Forwarded message ----------
> Date: Sun, 25 Nov 2007 18:33:13 -0800
> From: Jeremy Chadwick <koitsu at FreeBSD.org>
> To: freebsd-stable at freebsd.org
> Subject: Re: RELENG_6 kernel panic + savecore(8) problem
> On Sun, Nov 25, 2007 at 06:21:36PM -0800, Jeremy Chadwick wrote:
>> I believe the problem is that /etc/rc.d/swap1 is being run before
>> savecore. I'm guessing that swapon(8) actually destroys/clobbers the
>> existing saved kernel panic/core data, thus one will never get a
>> coredump in /var/crash. I believe some re-organisation of rcorder(8)
>> arguments in the files is in order, but I don't know what should
>> be changed to what.
>> I'll submit a PR for the above, because IMHO that's a serious one.
> PR 118255 has been opened for this matter.
This .signature sanitized for your protection
More information about the freebsd-rc