Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2014 22:51:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 188187] [zfs] [panic] 10-stable: Kernel panic on zpool import: integer divide fault
Message-ID:  <bug-188187-3630-9trQCObwCI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-188187-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-188187-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188187

--- Comment #7 from Steven Hartland <smh@FreeBSD.org> ---
Created attachment 149271
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149271&action=edit
early dump dev

If you can build a kernel on another machine you can use this patch to allow
you to configure the dump device via a tunable which will available prior to
mounting root.

>From the loader prompt run:
set kern.shutdown.dumpdev_early=<dev>
e.g.
set kern.shutdown.dumpdev_early=/dev/ada0p3

This should be set to either an empty partition / disk or your swap partition.

After that boot using:
boot

It will go through the usual process but should also dump the panic to the
device listed above.

Once you have the panic on disk you will need to boot with something like
mfsbsd (which doesn't panic). After booted edit /etc/rc.conf and add:
dumpdev="AUTO"

Then run:
/etc/rc.d/dumpon start

If the kernel your running is not the same as the kernel which created the dump
ensure you copy that kernel to /boot/kernel/ including all symbols.

Now run:
/etc/rc.d/savecore start

This will copy the crash off the dump device to /var/crash/ and perform a trace
on it which you can copy off along with the kernel to perform additional
debugging on.

Additional info which may well be helpful is the output from:
zdb -l <pool device>
e.g. zdb -l /dev/ada0p2

Hope this all make sense.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-188187-3630-9trQCObwCI>