-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
troubleshooting: Add instructions for enabling kdump
- Loading branch information
1 parent
417cd8e
commit d48385e
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
= Debugging kernel crashes using kdump | ||
|
||
. Memory must be reserved for the crash kernel during booting of the first kernel. Kernel arguments can be provided like this: | ||
+ | ||
[source, bash] | ||
---- | ||
sudo rpm-ostree kargs --append='crashkernel=256M' | ||
---- | ||
xref:kernel-args.adoc[More information] on how to modify kargs via `rpm-ostree`. | ||
|
||
. By default, the path in which the vmcore will be saved is `/var/crash`. It is also possible to write the dump over the network or to some other location on the local system by editing `/etc/kdump.conf`. For additional information, see https://linux.die.net/man/8/mkdumprd[`mkdumprd(8)`] and the comments in `/etc/kdump.conf`. | ||
|
||
. Enable the kdump systemd service. | ||
+ | ||
[source, bash] | ||
---- | ||
sudo systemctl enable kdump.service | ||
---- | ||
|
||
. Reboot your system. | ||
+ | ||
[source, bash] | ||
---- | ||
sudo systemctl reboot | ||
---- | ||
|
||
TIP: For additional information on how to test that kdump is properly armed and how to analyze the dump, refer to the https://fedoraproject.org/wiki/How_to_use_kdump_to_debug_kernel_crashes[kdump documentation for Fedora] and https://www.kernel.org/doc/html/latest/admin-guide/kdump/kdump.html[the Linux kernel documentation on kdump]. |