kdump服务设置方法:

1).检查当前服务状态

# service kdump status

Kdump is operational

2).修改kdump配置文件(why need to change the configureation?/usr/local/autotest/server/autotest-remote-m 192.168.28.84 -c/usr/local/autotest/client/tests/temperatureThrottingTest/control  -r /tmp/28.84-temp)

          # vim /etc/kdump.conf

3).修改后的结果类似于

          # cat /etc/kdump.conf

          …

          ext4 /dev/sda2 注:主分区的文件系统

          …

path /var/crash

core_collectormakedumpfile -c --message-level 1 -d 31

defaultreboot

4).重启kdump服务

# service kdump restart

Stoppingkdump:                                           [  OK  ]

Startingkdump:                                           [  OK  ]

#

        5).主动触发kernel panic,验证kdump工作是否正常

                  echo c > /proc/sysrq-trigger (input this file C?)

        6).重启后检查/var/crash里面是否有正确的vmcore生成