To enable kernel crash dump on a Debian Linux system, you can follow these steps:
/etc/default/kdump-tools
file and set the USE_KDUMP
variable to 1
. This will enable the kdump service.USE_KDUMP=1
/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
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.
update-grub
command.update-grub
systemctl start kdump-tools.service
command.systemctl start kdump-tools.service
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.