Hi@akhtar,
To avoid this error you can follow these below given steps.
$ yum install kexec-tools
-
Configuring Memory Usage in GRUB2. To configure the amount of memory that is reserved for the kdump kernel, modify /etc/default/grub and modify GRUB_CMDLINE_LINUX , set crashkernel=[size] parameter to the list of kernel options.
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=512M vconsole.keymap=us rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
$ grub2-mkconfig -o /boot/grub2/grub.cfg
path /usr/local/cores
nfs my.server.com:/export/tmp
core_collector makedumpfile -c
default halt
$ systemctl start kdump.service
Hope this will help.
Get your Linux certification today to become certified.
Thanks.