fail to use kdump function

Bug #1969269 reported by Fred Kimmy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kunpeng920
Invalid
Undecided
Unassigned
Ubuntu-20.04-hwe
Invalid
Undecided
Unassigned

Bug Description

[Bug Description]
if use offical way to config kdump function, it fail to be ok

[Steps to Reproduce]
1) root@caoll:~# apt install linux-crashdump
2)reboot
3) root@caoll:~# kdump-config show
DUMP_MODE: kdump
USE_KDUMP: 1
KDUMP_SYSCTL: kernel.panic_on_oops=1
KDUMP_COREDIR: /var/crash
crashkernel addr: 0x5e000000
   /var/lib/kdump/vmlinuz: symbolic link to /boot/vmlinuz-5.11.0-27-generic
kdump initrd:
   /var/lib/kdump/initrd.img: symbolic link to /var/lib/kdump/initrd.img-5.11.0-27-generic
current state: ready to kdump

kexec command:
  /sbin/kexec -p --command-line="BOOT_IMAGE=/vmlinuz-5.11.0-27-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro reset_devices systemd.unit=kdump-tools-dump.service nr_cpus=1" --initrd=/var/lib/kdump/initrd.img /var/lib/kdump/vmlinuz
root@caoll:~# dmesg | grep crashkernel
[ 0.000000] cannot allocate crashkernel (size:0x100000000)
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-5.11.0-27-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
root@caoll:~# echo c > /proc/sysrq-trigger

[Actual Results]
dump fail

[Expected Results]
dump ok

[Reproducibility]
100%

[Additional information]
(Firmware version, kernel version, affected hardware, etc. if required 2022032315434):

[Resolution]
fix grub.cfg file
vi /etc/default/grub.d/kdump-tools.cfg, crashkernel=512M-:512M
vi /boot/grub/grub.cfg, crashkernel=512M-:512M

Revision history for this message
Ike Panhc (ikepanhc) wrote :

We can not use one crashkernel setting to satisfy all arm64 platform. Instead of that, for developer function e.g. kdump that crashkernel shall be input manually by developer for his own environment.

Changed in kunpeng920:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.