summaryrefslogtreecommitdiff
path: root/debian/kdump-config.8
blob: 56ec3ce769ebec8703153a85644ef5671309fa2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
.\"
.TH "kdump-config" "8" "January 2016" "kdump-tools v1.5.9" "Linux System Administrator's Manual"
.\"
.\" # ---------------------------------------------------------------------------
.\"
.SH NAME
kdump-config \- configure kdump, check status, or save a vmcore file
.\"
.\" # ---------------------------------------------------------------------------
.\"
.SH SYNOPSIS
.HP 6
.B kdump-config { help | test | show | status | load | unload | savecore | propagate | symlinks {kernel-version} }
.\"
.\" # ---------------------------------------------------------------------------
.\"
.SH DESCRIPTION
.PP 

.B kdump-config
manages the kdump feature of the Linux kernel.  
When a kdump enabled kernel panics, it immediately boots into a clean 
kernel called the kdump kernel.  The memory image of the panicked kernel 
will be presented in 
.I /proc/vmcore
while the kdump kernel (or "capture kernel") is running. 

.B kdump-config 
loads the kdump kernel into the current kernel
and after a kdump, captures the vmcore image via kdump kernel.  
.B kdump-config 
can take advantage of the 
.B linux-image-$(uname -r)-dbg
package and will try to use 
.B makedumpfile
to capture the vmcore.  The 
.B crash 
tool can then be used to analyze the vmcore at a later time.

.B kdump-config
exits with 0 on success and 1 on failure.
.\"
.\" # ---------------------------------------------------------------------------
.\"
.SH COMMANDS
.TP 
.B help
Print a usage summary.
.TP 
.B test
Determine the parameters that would be used to load the kdump kernel,
but do not load the kdump kernel.  Useful for evaluating your configuration
settings.
.TP 
.B show
Show current parameters and the saved kexec command from the last
.BR "kdump-config load" .
.TP 
.B status
Evaluate 
.I /sys/kernel/kexec_crash_loaded
or
.I /sys/kernel/fadump_register
depending on the dump mode and print a corresponding message.
.TP 
.B load
Load the kdump kernel or register if using firmware assisted dump (fadump)
.TP 
.B unload
Unload the kdump kernel or unregister if using firmware assisted dump (fadump)
.TP
.B savecore
If 
.I /proc/vmcore
exists, save it using makedumpfile.
.TP
.B propagate
Sends public ssh key to remote host for passwordless connection
.TP
.B symlinks {kernel-version}
Verify and create 
.BR vmlinuz 
and 
.BR initrd.img 
links in 
.I /var/lib/kdump
according to the provided kernel version. If the target
.BR initrd.img 
file is absent, it will create it.

.\"
.\" # ---------------------------------------------------------------------------
.\"
.SH FILES
.TP 15
.I /etc/init.d/kdump-tools
init script to automatically load a kdump kernel, or save a vmcore and reboot.
.TP 15
.I /etc/default/kdump-tools
configuration file
.TP 15
.I /var/crash/kernel_link
a link to the current debug kernel
.TP 15
.I /var/crash/kexec_cmd
the last kexec_cmd executed by 
.B kdump-config
.TP 15
.I /var/lib/kdump/vmlinuz
Symbolic link pointing to the current kernel file in 
.I /boot
.TP 15
.I /var/lib/kdump/initrd.img
Symbolic link pointing to the 
.B initrd.img 
file with the current kernel version in
.I /boot
.\"
.\" # ---------------------------------------------------------------------------
.\"
.SH DIAGNOSTICS
.TP
.B USE_KDUMP is not set or zero
The variable 
.I USE_KDUMP 
in the file 
.I /etc/default/kdump-tools
 is 0.  To use kdump, edit the file and change the value to 1.
.\"
.TP
.B kdump is not supported by this kernel
The file 
.I /sys/kernel/kexec_crash_loaded 
does not exist.  This means that the
currently running kernel either was not configured to support kdump, or that
a crashkernel= commandline parameter was not used when the currently running
kernel booted.
.\"
.TP
.B no crashkernel= parameter in the kernel cmdline
a crashkernel= commandline parameter was not used when the currently 
running kernel booted.  You will need to add a crashkernel= parameter
to your 
.IR /etc/lilo.conf , 
.I /etc/elilo.conf 
or grub 
.I /boot/grub/menu.lst
file and reboot, before kdump will work.  See installed READMEs for suggestions.
.\"
.TP
.B KDUMP_KERNEL does not exist: $KDUMP_KERNEL
A KDUMP_KERNEL was specified in 
.IR /etc/default/kdump-tools ,
but it cannot be found.
.\"
.TP
.B KDUMP_INITRD does not exist: $KDUMP_INITRD
A KDUMP_INITRD was specified in 
.IR /etc/default/kdump-tools ,
but it cannot be found.
.\"

.RS 0
.nf
.B no KDUMP_KERNEL in $KDUMP_DEFAULTS and
.B can't find a kdump package directory in /usr/lib
.fi
.RS
no kdump kernel could be found.
.RE
.RE

.RS 0
.nf
.B found a linux-kdump package in $KDUMP_PKG_DIR
.B but can't find a kdump kernel in $KDUMP_PKG_DIR
.fi
.RS
this indicates a broken linux-kdump package installation.
.RE
.RE

.RS 0
.nf
.B no kdump initrd image: $KDUMP_INITRD
.B an initrd will not be used
.fi
.RS 
this indicates that although a kdump kernel was found,
a corresponding initrd was not found. 
.RE
.RE
.\"
.TP 
.B kdump kernel relocation address does not match crashkernel= parameter
For non-relocatable architectures, the kdump kernel must be built with
a predetermined start address.  This message indicates that the start
address of the kdump kernel and the start address in the crashkernel=
parameter do not match.
.\"
.TP
.B failed to load kdump kernel
kexec reported that it could not load the kdump kernel.
.\"
.TP 
.B failed to unload kdump kernel
kexec reported that it could not unload the kdump kernel.
Run 'kexec -u' directly for more detail.
.\"
.TP
.B makedumpfile failed, falling back to 'cp'
this message is printed if the 
.B kdump-tools 
init script attempts to save a 
.I /proc/vmcore 
file using makedumpfile and the save fails.
.\"
.TP
.B failed to save vmcore in $KDUMP_STAMPDIR
this message indicates that makedumpfile 
and the fallback method of using cp has failed.  This usually occurs
if pathnames are wrong or if the disk is full.
.TP
.B Invalid argument : missing kernel version
The 
.B symlinks 
command was used with a kernel version that is not installed on this server
.TP
.B Invalid symlink : {symbolic link}
The listed symbolic link is absent, broken or pointing to the wrong version
.TP
.B Cannot change symbolic links when kdump is loaded
The defined symbolic links are already in use. You must unload kdump before
using the 
.B symlinks 
command
.TP
.B Unable to locate kernel hook
The 
.B kdump-tools 
script responsible for the creation of smaller initrd.img files is 
absent from 
.I /usr/kernel/postinst.d
.TP
.B Invalid kernel version : {kernel version}
The kernel version given to the 
.B symlinks 
command does not exist
.TP
.B fadump is not configured in this kernel.
The Firmware Assisted Dump (fadump) facility is not available on this platform
.TP
.B SSH and NFS cannot be defined concurrently
Both variables are defined in /etc/default/kdump-tools. You must choose one 
or the other as configuration option.
.TP
.B Unable to mount remote NFS directory {directory}. Cannot save core
The remote NFS server does not authorize this server to mount the directory
to save the crash dump.
.TP
.B Unable to write to the remote NFS directory {directory}. Cannot save core
The remote NFS directory can be mounted but this server cannot write files to
it.
.TP
.B makedumpfile --dump-dmesg failed. dmesg content will be unavailable
The command to capture the content of the dmesg buffer failed. It will not
be available in the crash directory
.TP
.B Unable to reach remote server {server}. No reason to continue
.B kdump-tools 
is configured for remote dump but the remote server cannot be reached.
.TP
.B makedumpfile scp failed. The vmcore file will  not be available
The 
.B makedumpfile 
command was successful but the resulting file could not be copied over SSH
to the remote server.
.TP
.B Remote ssh dump is not configured. No reason to propagate"
The 
.B propagate 
command was used but kdump is not configured for remote dump.
.\"
.\" # ---------------------------------------------------------------------------
.\"
.SH SEE ALSO
.PP 
.I /usr/share/doc/kdump-tools/README
.br
.I /usr/share/doc/kdump-tools/README.Debian
.br
.BR kdump-tools (5),
.BR kexec (8),
.BR crash (8),
.BR gdb (1),
.BR makedumpfile (8)
.\"
.\" # ---------------------------------------------------------------------------
.\"
.SH AUTHOR
.PP 
Written by Terry Loftin <terry.loftin@hp.com> and Louis Bouchard <louis.bouchard@ubuntu.com>