[Bug 188187] [zfs] [panic] 10-stable: Kernel panic on zpool import: integer divide fault

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Nov 10 22:51:06 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188187

--- Comment #7 from Steven Hartland <smh at 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.


More information about the freebsd-fs mailing list