Discussion:
[Fastboot] How to get Kdump file
Sangamesh B
2008-05-28 11:20:09 UTC
Permalink
Hi All,

I'm working on K Dump. Installed Kexec tools. But not getting how to
make use of kexec commands: kexec & kdump and how to proceed further.

I am a beginner as far as the Linux kernel is considered.

So can some one listout the steps to get the Kernel dump file in a crash
event. Or send me a link/document which can explain all the stuff.

Thanks in advance,
Sangamesh
Consultant-HPC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/fastboot/attachments/20080528/e9faaa0c/attachment.htm
Adhiraj Joshi
2008-05-28 12:02:09 UTC
Permalink
The steps in Documentation/kdump/kdump.txt in the kernel source code are
sufficient to use kdump/kexec. Please ask if get stuck somewhere during the
process.

Regards,
Adhiraj Joshi.
Post by Sangamesh B
Hi All,
I'm working on K Dump. Installed Kexec tools. But not getting how to
make use of kexec commands: kexec & kdump and how to proceed further.
I am a beginner as far as the Linux kernel is considered.
So can some one listout the steps to get the Kernel dump file in a crash
event. Or send me a link/document which can explain all the stuff.
Thanks in advance,
Sangamesh
Consultant-HPC
_______________________________________________
fastboot mailing list
fastboot at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/fastboot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/fastboot/attachments/20080528/e11fd404/attachment.htm
Sangamesh B
2008-05-28 14:30:54 UTC
Permalink
Hi Adhiraj,

I'm using RedHat EL 4. Referred the RedHat document:

http://kbase.redhat.com/faq/FAQ_105_9036.shtm

For kexec-tools, I've installed from tar file, and binaries are located in
/opt/kexec/sbin/ and path is exported in /etc/profile also.

I did the 4 steps of the document. After reboot, the 5th step didn't work:

#chkconfig kdump on
error reading information on service kdump: No such file or directory

[root at server1 ~]# service kdump start
kdump: unrecognized service
[root at server1 ~]#

The grub.conf and kdump.conf looks as follows:

[root at server1 ~]# cat /etc/kdump.conf
/proc/
[root at server1 ~]#

[root at server1 ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-55.ELhugemem)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-55.ELhugemem ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-55.ELhugemem.img
title Red Hat Enterprise Linux AS (2.6.9-55.ELsmp)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/ rhgb quiet
crashkernel=128M at 16M
initrd /boot/initrd-2.6.9-55.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-55.EL)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-55.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-55.EL.img
[root at server1 ~]#

Can you tell me what might be the wrong?

Shall I copy /opt/kexec/sbin/kdump to /etc/init.d/ ??

Thanks,
Sangamesh

On Wed, May 28, 2008 at 5:32 PM, Adhiraj Joshi <adhiraj at linsyssoft.com>
Post by Adhiraj Joshi
The steps in Documentation/kdump/kdump.txt in the kernel source code are
sufficient to use kdump/kexec. Please ask if get stuck somewhere during the
process.
Regards,
Adhiraj Joshi.
Post by Sangamesh B
Hi All,
I'm working on K Dump. Installed Kexec tools. But not getting how to
make use of kexec commands: kexec & kdump and how to proceed further.
I am a beginner as far as the Linux kernel is considered.
So can some one listout the steps to get the Kernel dump file in a crash
event. Or send me a link/document which can explain all the stuff.
Thanks in advance,
Sangamesh
Consultant-HPC
_______________________________________________
fastboot mailing list
fastboot at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/fastboot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/fastboot/attachments/20080528/af75eaed/attachment-0001.htm
Chandru
2008-05-29 06:36:59 UTC
Permalink
Post by Sangamesh B
Hi Adhiraj,
http://kbase.redhat.com/faq/FAQ_105_9036.shtm
kexec/kdump may be supported only from RedHat EL 5 ( .*) . For RedHat EL
4 (.*) use diskdump/netdump facility thats available there.

Regards,
Chandru

Loading...