Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 1999 02:22:05 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Luoqi Chen <luoqi@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/savecore savecore.c 
Message-ID:  <19990515182206.E22A71F58@spinner.netplex.com.au>
In-Reply-To: Your message of "Wed, 12 May 1999 21:29:13 MST." <199905130429.VAA25016@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Luoqi Chen wrote:
> luoqi       1999/05/12 21:29:13 PDT
> 
>   Modified files:
>     sbin/savecore        savecore.c 
>   Log:
>   Read dumpdev using sysctl(3) interface. Now savecore should work again
>   after the dev_t changes.

I looked at this before and was tempted to do the same, but there is a
problem..  Using the sysctl() requires that the kernel that crashed is the
current running kernel.

For example, if you do a 'make install', then your running /kernel gets
moved to /kernel.old.  If you defer the shutdown because it's inconvenient,
and some time later you have a crash and dump, then when you reboot, you
can't do a savecore unless you first boot from kernel.old.  Previously you
would just do a 'savecore -N /kernel.old /var/crash' and it would save the
crashdump and kernel.old as vm(unix|core).nnn.

I think it would be better to either have a seperate udumpdev, or save the
pathname string, or look up dumpdev->udev or whatever.  (I have been rather
busy for the last few days though and have not had time to try it myself
yet.  The ISP that has been giving me free connectivity in return for
advice and help is moving to a new building)

Cheers,
-Peter



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990515182206.E22A71F58>