Date: Tue, 8 Mar 2005 08:33:29 +0100 From: Jeremie Le Hen <jeremie@le-hen.org> To: Doug White <dwhite@gumbysoft.com> Cc: Jeremie Le Hen <jeremie@le-hen.org> Subject: Re: dumpdev='AUTO' (was: Reproducible Panic with port iplog) Message-ID: <20050308073329.GJ94451@obiwan.tataz.chchile.org> In-Reply-To: <20050307184301.S32508@carver.gumbysoft.com> References: <2861.172.16.0.199.1109814152.squirrel@172.16.0.199> <20050303015438.GF15329@obiwan.tataz.chchile.org> <2910.172.16.0.199.1109816379.squirrel@172.16.0.199> <20050304230723.T4084@carver.gumbysoft.com> <1646.172.16.0.199.1110049506.squirrel@172.16.0.199> <20050307184301.S32508@carver.gumbysoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, > > Typing "call doadump" in the kernel debugger does work. Is there no way to > > have the kernel automatically do a dump when the system panics and there > > is no debugger compiled in? > > That should be the default behavior if a dumpdev is set (in rc.conf with > "dumpdev" or manually with the dumpon(8) command). This is a little bit off-topic, but I set the rc.conf(5) dumpdev variable to "AUTO". This should work (this is from rc.d/dumpon) : %%% case ${dumpdev} in [Nn][Oo] | '') ;; [Aa][Uu][Tt][Oo]) while read dev mp type more ; do [ "${type}" = "swap" ] || continue [ -c "${dev}" ] || continue if /sbin/dumpon -v "${dev}" 2>/dev/null; then # Make a symlink in devfs for savecore ln -s ${dev} /dev/dumpdev return 0 fi done </etc/fstab %%% Nevertheless, when my box panices, it drops to DDB and I always need to call doadump() manually. Regards, -- Jeremie Le Hen jeremie at le-hen dot org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050308073329.GJ94451>