开启内核kdump

来源:互联网 发布:伴奏制作软件手机软件 编辑:程序博客网 时间:2024/05/22 00:53
内核kdump主要原理
1。kernel支持;
2。应用空间的工具
http://www.ibm.com/developerworks/cn/linux/l-cn-kdump4/
http://www.ibm.com/developerworks/cn/linux/l-cn-kdump1/
开启kdump主要要经历一下几个步骤
1。kernel开启选项,。支持kdump的debug信息;
2。修改grub.增加kernel启动参数crashkernel=128M,预留给kdump kernel使用的内存
3。启动服务kexec 将kernel 、文件系统、启动参数等设置的到预留的内存中;

主要涉及两点修改:
1。修改预留内存为128M
2。升级kexec-tools到最新版本。
值得注意的是,最新版本的kexec-tools。编译的时候选择静态模式,编译的信息在INSTALL的文档中

Static compilation------------------To compile kexec-tools statically (i.e., independent of libraries that arepresent on the system), use LDFLAGS=-static ./configure <options>instead.
关键词:
kexec 、grub、kexec-tools、静态编译
1 0
原创粉丝点击