hi Amit, On Wed, Aug 17, 2011 at 3:04 PM, amit mehta <gmate.amit@gmail.com> wrote:
I've a Linux box which is crashing under a particular test scenario. To debug this issue I was thinking of using the crash (man 8 crash) utility (available by default on recent releases of RHEL and SuSE) . This tool requires the kernel crash dump (vmcore) and the debugging symbols. On my machine, I don't see any crash under /var/crash, Hence please let me know the configuration changes which i need to do to enable my machine to dump the kernel image locally (do i need to apply diskdump patches and rebuild the kernel??) whenever there is a kernel crash. Kdump seem to be another tool for this job but that requires a lot of setup. Is there a *shortcut* to enable kernel crash dump facility ?
The debugging symbols can be found here: http://ftp.riken.go.jp/Linux/slc/slc6X/updates/x86_64/debug/ http://ftp.riken.go.jp/Linux/slc/slc6X/updates/i386/debug/
You need to configure kdump on your RHEL system to enable it to dump the vmcore file when the panic happens... Kdump configuration is explained below.. There is a crashkernel boot parameter to be passed to kernel to specify the memory reserved for the crash kernel. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment... http://www.mindtwist.de/main/linux/11-red-hat/27-how-to-configure-kernel-dum... http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/lia... Thanks and Regards, Sumeet
-Amit
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies