-
Notifications
You must be signed in to change notification settings - Fork 129
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
1a16de7
commit d6e71d7
Showing
2 changed files
with
33 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,32 @@ | ||
= Enabling kdump to debug kernel crashes | ||
|
||
. 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`. | ||
|
||
. Make sure the path in which the vmcore will be saved is somewhere in the `/var` directory of the FCOS stateroot. It is also possible to write the dump over the network; for additional information, consult the mkdumprd man page and the comments in /etc/kdump.conf. | ||
+ | ||
[source, bash] | ||
---- | ||
sed -i "s/^path.*/path \/sysroot\/ostree\/deploy\/fedora-coreos\/var\/crash/" /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]. |