[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Tutorials & How To's  |  Topic: How To - Setup Kdump on a OEL5 (Oracle Enterprise Linux)
Welcome to LinuxCommunity

You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: How To - Setup Kdump on a OEL5 (Oracle Enterprise Linux)  (Read 489 times)
0 Members and 1 Guest are viewing this topic.
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Gender: Male
Posts: 529


View Profile
« on: October 29, 2009, 01:35:32 PM »

   1. . Here are the RPM packages you will need install

          a. kexec-tools --> Provided the kdump configs and services
          b. kernel-kdump --> Kernel with a debuginfo (-g during compilation)
          c. crash --> Utility to perform analysis on your kernel crash dump
          d. kernel-debuginfo --> Provide the debugging symbols and debugging kernel file called vmlinux for crash utility
          Note: In SLES10, you will have gdb-kdump script to help debug the kernel crash dump too.


   2. . Modify the system kernel to reserve space for the crash kernel

          Edit the /boot/grub/grub.conf file and add "crashkernel=128M@16M" to the kernel specification to reserve 128MB of
          memory, starting at physical address 0x01000000 (16MB)

          For example:
          title Red Hat Enterprise Linux Server (2.6.18-8.el5)
          root (hd0,0)
          kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/VolGroup00
          /LogVol00 rhgb quiet crashkernel=128M@16M
          initrd /initrd-2.6.18-8.el5.img

          Note: So far i got it working on Fedora Core 10, SLES10, and OEL5.


   3. . Specify where the vmcore should be located

          In /etc/kdump.conf, one can configure different kinds of dump target.

          Here is an example, using NFS as dump target.
          net my.server.com:/export/tmp:

          This will mount the filesystem and copy vmcore to NFS server.
          net my.server.com:/export/tmp

          Note: Use NFS or SCP to avoid the kernel dump goes to failure with the disk. Just in case....


   4. . Enable kdump service:

             1. chkconfig kdump on


   5. . Reboot system to put kdump configuration into effect.

          Verify if kdump is active:
             1. cat /proc/cmdline
                ro root=/dev/VolGroup00/LogVol00 rhgb quiet crashkernel=128M@16M
             2. /etc/init.d/kdump status
                Kdump is operational
             3. /sbin/chkconfig --list |grep kdump
                kdump 0:off 1:off 2:on 3:on 4:on 5:on 6:off


   6. . Test kdump by crashing the system:

             1. echo c > /proc/sysrq-trigger
                This causes the kernel to panic, followed by the system restarting into the kdump kernel. When the boot process
                gets to the point where it starts the kdump service, the vmcore should be copied out to disk to the location you
                specified in the /etc/kdump.conf file.

      NOTES: Verify the vmcore is the correct size, it should be about the size of memory on the crashed system.

   1. . To do a crash dumpfile analysis

          Copy the /usr/lib/debug/lib/modules/KERNEL_VER/vmlinux to your /PATH/TO/CRASH/DUMP/DATE/ path

          Run the crash tool to debug it
             1. crash vmlinux vmcore
          Crash tool, behaves like a gdb. First time you want to do in the crash> console is run "log" command to see what's happening to the kernel
          crash> log

          For more info on how to use crash
          crash> help

          or

          Goto http://people.redhat.com/anderson/crash_whitepaper
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2377


View Profile
« Reply #1 on: November 07, 2009, 10:18:18 AM »

Thanks dragoncity. Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
XMMS problem in RedHat Enterprise Linux -3 Linux Audio Support shahud 2 1231 Last post July 16, 2005, 10:33:27 AM
by neo
Oracle Installation in Linux Linux Installation Support shipoin_97 2 1054 Last post November 21, 2005, 11:53:40 AM
by Ricky
Help with SUSE Linux Enterprise Other Devices wisdom 1 1397 Last post April 27, 2006, 11:41:08 AM
by gauravbajaj
Enterprise Linux 3 packages Linux Application vlinux1 3 1066 Last post June 01, 2006, 02:24:12 PM
by gauravbajaj
Setup Dns (Named) for Red Hat Enterprise 5 Howto Linux Servers Support Arbab 6 8065 Last post January 10, 2008, 05:36:42 AM
by Arbab
Search LS
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 29, 2010, 10:18:30 AM

Login with username, password and session length
Navigation
Recent Discussions
[July 24, 2010, 11:46:22 PM]

[July 24, 2010, 04:10:46 PM]

[July 23, 2010, 07:22:27 AM]

[July 23, 2010, 07:20:53 AM]

[July 23, 2010, 07:19:15 AM]

[July 23, 2010, 07:15:30 AM]

[July 23, 2010, 07:08:21 AM]

[July 19, 2010, 11:01:10 PM]

[July 19, 2010, 10:01:58 AM]

[July 19, 2010, 01:21:00 AM]
Members
Total Members: 7690
Latest: BOZZYPRINCESS
Stats
Total Posts: 9524
Total Topics: 2729
Online Today: 7
Online Ever: 128
(April 10, 2010, 10:24:17 PM)
Users Online
Users: 0
Guests: 11
Total: 11
Privacy Policy| Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Theme & TinyPortal v0.9.8 © Bloc