没有合适的资源?快使用搜索试试~ 我知道了~
首页Linux Kernel Crash Book.pdf
资源详情
资源评论
资源推荐
Linux Kernel Crash Book
Everything you need to know
Igor Ljubuncic aka Dedoimedo
www.dedoimedo.com
www.dedoimedo.com all rights reserved
Contents
I LKCD 23
1 Introduction 23
1.1 How does LKCD work? . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.1.1 Stage 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.1.2 Stage 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2 LKCD Installation 25
3 LKCD local dump procedure 25
3.1 Required packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.2 Configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.2.1 Activate dump process (DUMP_ACTIVE) . . . . . . . . . . . . 25
3.2.2 Configure the dump device (DUMP_DEVICE) . . . . . . . . . . 25
3.2.3 Configure the dump directory (DUMPDIR) . . . . . . . . . . . . 26
3.2.4 Configure the dump level (DUMP_LEVEL) . . . . . . . . . . . . 27
3.2.5 Configure the dump flags (DUMP_FLAGS) . . . . . . . . . . . . 28
3.2.6 Configure the dump compression level (DUMP_COMPRESS) . . 29
3.2.7 Additional settings . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.3 Enable core dump capturing . . . . . . . . . . . . . . . . . . . . . . . . 30
3.4 Configure LKCD dump utility to run on startup . . . . . . . . . . . . . . 30
4 LKCD netdump procedure 31
5 Configure LKCD netdump server 31
5.1 Required packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.2 Configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2
www.dedoimedo.com all rights reserved
5.2.1 Configure the dump flags (DUMP_FLAGS) . . . . . . . . . . . . 32
5.2.2 Configure the source port (SOURCE_PORT) . . . . . . . . . . . 32
5.2.3 Make sure dump directory is writable for netdump user . . . . . . 32
5.3 Configure LKCD netdump server to run on startup . . . . . . . . . . . . 33
5.4 Start the server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6 Configure LKCD client for netdump 34
6.1 Configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.1.1 Configure the dump device (DUMP_DEV) . . . . . . . . . . . . 34
6.1.2 Configure the target host IP address (TARGET_HOST) . . . . . 34
6.1.3 Configure target host MAC address (ETH_ADDRESS) . . . . . . 35
6.1.4 Configure target host port (TARGET_PORT) . . . . . . . . . . 35
6.1.5 Configure the source port (SOURCE_PORT) . . . . . . . . . . . 35
6.2 Enable core dump capturing . . . . . . . . . . . . . . . . . . . . . . . . 36
6.3 Configure LKCD dump utility to run on startup . . . . . . . . . . . . . . 37
6.4 Start the lkcd-netdump utility . . . . . . . . . . . . . . . . . . . . . . . 37
7 Test functionality 37
8 Problems 38
8.1 Unsuccessful netdump to different network segment . . . . . . . . . . . 39
9 Conclusion 39
II Kdump 41
10 Introduction 41
10.1 Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
10.1.1 Kernel compilation . . . . . . . . . . . . . . . . . . . . . . . . . 42
3
www.dedoimedo.com all rights reserved
10.1.2 Hardware-specific configurations . . . . . . . . . . . . . . . . . . 42
10.2 How does Kdump work? . . . . . . . . . . . . . . . . . . . . . . . . . . 42
10.2.1 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
10.2.2 Kexec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
10.2.3 Kdump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
11 Kdump installation 43
11.1 Standard (production) kernel . . . . . . . . . . . . . . . . . . . . . . . 45
11.1.1 Under Processor type and features . . . . . . . . . . . . . . . . 45
11.1.2 Under Filesystems > Pseudo filesystems . . . . . . . . . . . . . 47
11.1.3 Under Kernel hacking . . . . . . . . . . . . . . . . . . . . . . . 47
11.1.4 Other settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
11.2 Crash (capture) kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
12 Kdump packages & files 49
12.1 Kdump packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
12.2 Kdump files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
13 Kdump configuration 51
13.1 Configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
13.1.1 Configure KDUMP_KERNELVER . . . . . . . . . . . . . . . . . 51
13.1.2 Configure KDUMP_COMMANDLINE . . . . . . . . . . . . . . 52
13.1.3 Configure KDUMP_COMMANDLINE_APPEND . . . . . . . . . 53
13.1.4 Configure KEXEC_OPTIONS . . . . . . . . . . . . . . . . . . . 54
13.1.5 Configure KDUMP_RUNLEVEL . . . . . . . . . . . . . . . . . 55
13.1.6 Configure KDUMP_IMMEDIATE_REBOOT . . . . . . . . . . . 55
13.1.7 Configure KDUMP_TRANSFER . . . . . . . . . . . . . . . . . 56
13.1.8 Configure KDUMP_SAVEDIR . . . . . . . . . . . . . . . . . . . 56
13.1.9 Configure KDUMP_KEEP_OLD_DUMPS . . . . . . . . . . . . 57
4
www.dedoimedo.com all rights reserved
13.1.10 Configure KDUMP_FREE_DISK_SIZE . . . . . . . . . . . . . . 58
13.1.11 Configure KDUMP_DUMPDEV . . . . . . . . . . . . . . . . . . 58
13.1.12 Configure KDUMP_VERBOSE . . . . . . . . . . . . . . . . . . 59
13.1.13 Configure KDUMP_DUMPLEVEL . . . . . . . . . . . . . . . . 60
13.1.14 Configure KDUMP_DUMPFORMAT . . . . . . . . . . . . . . . 61
13.2 GRUB menu changes . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
13.3 Set Kdump to start on boot . . . . . . . . . . . . . . . . . . . . . . . . 63
14 Test configuration 64
14.1 Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
14.1.1 Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
14.1.2 GRUB menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
14.2 Load Kexec with relevant parameters . . . . . . . . . . . . . . . . . . . 66
14.2.1 Possible errors . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
15 Simulate kernel crash 68
16 Kdump network dump functionality 69
16.1 Configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
16.1.1 Configure KDUMP_RUNLEVEL . . . . . . . . . . . . . . . . . 69
16.1.2 Configure KDUMP_SAVEDIR . . . . . . . . . . . . . . . . . . . 70
16.1.3 Kernel crash dump NFS example . . . . . . . . . . . . . . . . . 71
17 Conclusion 72
III Crash Collection 73
5
剩余181页未读,继续阅读
charleswjwen87
- 粉丝: 3
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论10