How to on enable kernel crash dump on Debian Linux

How to on enable kernel crash dump on Debian Linux

To enable kernel crash dump on a Debian Linux system, you can follow these steps:

  1. Edit the /etc/default/kdump-tools file and set the USE_KDUMP variable to 1. This will enable the kdump service.
r‮e‬fer to:lautturi.com
USE_KDUMP=1
  1. Edit the /etc/kdump.conf file and set the core_collector variable to makedumpfile. This will configure the kdump service to use the makedumpfile utility to create crash dumps.
core_collector makedumpfile
  1. Set the crashkernel kernel parameter in the GRUB_CMDLINE_LINUX_DEFAULT variable in the /etc/default/grub file. This will reserve a portion of memory for the crash kernel, which will be used to create the crash dump.
GRUB_CMDLINE_LINUX_DEFAULT="crashkernel=128M"

Replace 128M with the amount of memory you want to reserve for the crash kernel.

  1. Update the GRUB configuration by running the update-grub command.
update-grub
  1. Start the kdump service by running the systemctl start kdump-tools.service command.
systemctl start kdump-tools.service
  1. (Optional) Enable the kdump service to start automatically at boot time by running the systemctl enable kdump-tools.service command.
systemctl enable kdump-tools.service

That's it! You have now enabled kernel crash dump on your Debian Linux system.

Note: You may need to modify the steps depending on your specific setup and requirements. Additionally, make sure that you have enough free disk space to store the crash dumps.

Created Time:2017-10-16 14:38:50  Author:lautturi