Subversion Repositories configs

Rev

Rev 192 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# This file contains a series of commands to perform (in order) in the kdump
2
# kernel after a kernel crash in the crash kernel(1st kernel) has happened.
3
#
4
# Directives in this file are only applicable to the kdump initramfs, and have
5
# no effect once the root filesystem is mounted and the normal init scripts are
6
# processed.
7
#
8
# Currently, only one dump target and path can be specified.  If the dumping to
9
# the configured target fails, the failure action which can be configured via
10
# the "failure_action" directive will be performed.
11
#
12
# Supported options:
13
#
14
# raw <partition>
15
#           - Will dd /proc/vmcore into <partition>.
16
#             Use persistent device names for partition devices,
17
#             such as /dev/vg/<devname>.
18
#
19
# nfs <nfs mount>
20
#           - Will mount nfs to <mnt>, and copy /proc/vmcore to
21
#             <mnt>/<path>/%HOST-%DATE/, supports DNS.
22
#
23
# ssh <user@server>
197 - 24
#           - Will save /proc/vmcore to <user@server>:<path>/%HOST-%DATE/,
192 - 25
#             supports DNS.
26
#             NOTE: make sure the user has write permissions on the server.
27
#
28
# sshkey <path>
29
#           - Will use the sshkey to do ssh dump.
30
#             Specify the path of the ssh key to use when dumping
31
#             via ssh. The default value is /root/.ssh/kdump_id_rsa.
32
#
33
# <fs type> <partition>
34
#           - Will mount -t <fs type> <partition> <mnt>, and copy
35
#             /proc/vmcore to <mnt>/<path>/%DATE/.
36
#             NOTE: <partition> can be a device node, label or uuid.
37
#             It's recommended to use persistent device names
38
#             such as /dev/vg/<devname>.
39
#             Otherwise it's suggested to use label or uuid.
40
#
41
# path <path>
42
#           - "path" represents the file system path in which vmcore
43
#             will be saved.  If a dump target is specified in
44
#             kdump.conf, then "path" is relative to the specified
45
#             dump target.
46
#
47
#             Interpretation of "path" changes a bit if the user didn't
48
#             specify any dump target explicitly in kdump.conf.  In this
49
#             case, "path" represents the absolute path from root. The
50
#             dump target and adjusted path are arrived at automatically
51
#             depending on what's mounted in the current system.
52
#
53
#             Ignored for raw device dumps.  If unset, will use the default
54
#             "/var/crash".
55
#
56
# core_collector <command> <options>
57
#           - This allows you to specify the command to copy
58
#             the vmcore.  The default is makedumpfile, which on
59
#             some architectures can drastically reduce vmcore size.
60
#             See /sbin/makedumpfile --help for a list of options.
61
#             Note that the -i and -g options are not needed here,
62
#             as the initrd will automatically be populated with a
63
#             config file appropriate for the running kernel.
64
#             The default core_collector for raw/ssh dump is:
65
#             "makedumpfile -F -l --message-level 7 -d 31".
66
#             The default core_collector for other targets is:
67
#             "makedumpfile -l --message-level 7 -d 31".
68
#
69
#             "makedumpfile -F" will create a flattened vmcore.
70
#             You need to use "makedumpfile -R" to rearrange the dump data to
71
#             a normal dumpfile readable with analysis tools.  For example:
72
#             "makedumpfile -R vmcore < vmcore.flat".
73
#
74
#             For core_collector format details, you can refer to
75
#             kexec-kdump-howto.txt or kdump.conf manpage.
76
#
77
# kdump_post <binary | script>
78
#           - This directive allows you to run a executable binary
79
#             or script after the vmcore dump process terminates.
80
#             The exit status of the current dump process is fed to
81
#             the executable binary or script as its first argument.
82
#             All files under /etc/kdump/post.d are collectively sorted
83
#             and executed in lexical order, before binary or script
84
#             specified kdump_post parameter is executed.
85
#
86
# kdump_pre <binary | script>
87
#           - Works like the "kdump_post" directive, but instead of running
88
#             after the dump process, runs immediately before it.
89
#             Exit status of this binary is interpreted as follows:
90
#               0 - continue with dump process as usual
91
#               non 0 - run the final action (reboot/poweroff/halt)
92
#             All files under /etc/kdump/pre.d are collectively sorted and
93
#             executed in lexical order, after binary or script specified
94
#             kdump_pre parameter is executed.
95
#             Even if the binary or script in /etc/kdump/pre.d directory
96
#             returns non 0 exit status, the processing is continued.
97
#
98
# extra_bins <binaries | shell scripts>
99
#           - This directive allows you to specify additional binaries or
100
#             shell scripts to be included in the kdump initrd.
101
#             Generally they are useful in conjunction with a kdump_post
102
#             or kdump_pre binary or script which depends on these extra_bins.
103
#
104
# extra_modules <module(s)>
105
#           - This directive allows you to specify extra kernel modules
106
#             that you want to be loaded in the kdump initrd.
107
#             Multiple modules can be listed, separated by spaces, and any
108
#             dependent modules will automatically be included.
109
#
110
# failure_action <reboot | halt | poweroff | shell | dump_to_rootfs>
111
#           - Action to perform in case dumping fails.
112
#             reboot:   Reboot the system.
113
#             halt:     Halt the system.
114
#             poweroff: Power down the system.
115
#             shell:    Drop to a bash shell.
116
#                       Exiting the shell reboots the system by default,
117
#                       or perform "final_action".
118
#             dump_to_rootfs:  Dump vmcore to rootfs from initramfs context and
119
#                       reboot by default or perform "final_action".
120
#                       Useful when non-root dump target is specified.
121
#             The default option is "reboot".
122
#
123
# default <reboot | halt | poweroff | shell | dump_to_rootfs>
124
#           - Same as the "failure_action" directive above, but this directive
125
#             is obsolete and will be removed in the future.
126
#
127
# final_action <reboot | halt | poweroff>
128
#           - Action to perform in case dumping succeeds. Also performed
129
#             when "shell" or "dump_to_rootfs" failure action finishes.
130
#             Each action is same as the "failure_action" directive above.
131
#             The default is "reboot".
132
#
133
# force_rebuild <0 | 1>
134
#           - By default, kdump initrd will only be rebuilt when necessary.
135
#             Specify 1 to force rebuilding kdump initrd every time when kdump
136
#             service starts.
137
#
138
# force_no_rebuild <0 | 1>
139
#           - By default, kdump initrd will be rebuilt when necessary.
140
#             Specify 1 to bypass rebuilding of kdump initrd.
141
#
142
#             force_no_rebuild and force_rebuild options are mutually
143
#             exclusive and they should not be set to 1 simultaneously.
144
#
145
# override_resettable <0 | 1>
146
#           - Usually an unresettable block device can't be a dump target.
147
#             Specifying 1 when you want to dump even though the block
148
#             target is unresettable
149
#             By default, it is 0, which will not try dumping destined to fail.
150
#
151
# dracut_args <arg(s)>
152
#           - Pass extra dracut options when rebuilding kdump initrd.
153
#
154
# fence_kdump_args <arg(s)>
155
#           - Command line arguments for fence_kdump_send (it can contain
156
#             all valid arguments except hosts to send notification to).
157
#
158
# fence_kdump_nodes <node(s)>
159
#           - List of cluster node(s) except localhost, separated by spaces,
160
#             to send fence_kdump notifications to.
161
#             (this option is mandatory to enable fence_kdump).
162
#
163
 
164
#raw /dev/vg/lv_kdump
165
#ext4 /dev/vg/lv_kdump
166
#ext4 LABEL=/boot
167
#ext4 UUID=03138356-5e61-4ab3-b58e-27507ac41937
168
#nfs my.server.com:/export/tmp
169
#ssh user@my.server.com
170
#sshkey /root/.ssh/kdump_id_rsa
171
path /var/crash
172
core_collector makedumpfile -l --message-level 7 -d 31
173
#core_collector scp
174
#kdump_post /var/crash/scripts/kdump-post.sh
175
#kdump_pre /var/crash/scripts/kdump-pre.sh
176
#extra_bins /usr/bin/lftp
177
#extra_modules gfs2
178
#failure_action shell
179
#force_rebuild 1
180
#force_no_rebuild 1
181
#dracut_args --omit-drivers "cfg80211 snd" --add-drivers "ext2 ext3"
182
#fence_kdump_args -p 7410 -f auto -c 0 -i 10
183
#fence_kdump_nodes node1 node2