Configure Kdump on RHEL 5 :How to?

Step 1 :- Download and install kdump and kexec packages using yum command

# yum install kexec-tools


Step 2 :- Configuring the Target Type

Edit file /etc/kdump.conf 

ext3 /dev/sda4   ---- (Partition on which your crash folder is mounted)
path /var/crash   ----( Crash folder location)

**Size of partition of /var/crash should be equal to or greater than the size of RAM

You cannot use existing LVM partition to store crash dump so you need new disk attached to the server same or greater as the size of your RAM.

Step 3 :- Configuring the Core Collector

To enable the dump file compression, add the -c parameter. For example:

core_collector makedumpfile -c   ---(this will compress your dump file )

Step 4:-  Enabling the Service

chkconfig kdump on

service kdump start

service kdump status
Kdump is operational


Step 5:-  Configuring the Memory Usage

Add the following line in your grub.conf

rw crashkernel=256M

Enabling SYSRQ option 

Take backup of existing sysctl.conf
cp -pv /etc/sysctl.conf /etc/sysctl.conf.`date +%d%b%y`.bkp


Update the sysctl.conf
grep -i sysrq /etc/sysctl.conf &> /dev/null && ( cat /etc/sysctl.conf.`date +%d%b%y`.bkp | sed 's/sysrq = 0/sysrq = 1/' > /etc/sysctl.conf ) || echo "kernel.sysrq = 1" >> /etc/sy
sctl.conf

Reload the kernel pages and check the sysrq settings
/sbin/sysctl -p | grep -i sysrq
  





     





0 comments:

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks