Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-120738

'kdumpctl reset-crashkernel' - please print out reasonable information

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • kdump-utils
    • None
    • None
    • None
    • rhel-kernel-debug
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      Tested on RHEL-10.2-20251008.0+kdump-utils-1.0.58-1.el10,run 'kdumpctl reset-crashkernel':
      (1). please print out some info like 'no need update crashkernel value' if no change the crashkernel value, currently it print nothing.

      # rpm -q kdump-utils
      kdump-utils-1.0.58-1.el10.ppc64le
      
      # kdumpctl showmem 
      kdump: Reserved 384MB memory for crash kernel
      
      # kdumpctl reset-crashkernel
      

      (2). When memory less than 2G,

      • it should print the word 'Warning:' at the beginning of the sentence
      • it should not print ' Please reboot the system for the change to take effect.'. This sentence is easy to be misunderstood.
        # kdumpctl showmem
        kdump: Reserved 0MB memory for crash kernel
        
        # kdumpctl status 
        kdump: Kdump is not operational
        kdump: Notice: No vmcore creation test performed!
        
        # cat /proc/cmdline 
        BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.12.0-138.el10.x86_64 root=/dev/mapper/rhel_dell--per740xd--01-root ro crashkernel=2G-64G:256M,64G-:512M resume=UUID=6d7ee881-b538-4232-b73e-42a7469d6d63 rd.lvm.lv=rhel_dell-per740xd-01/root rd.lvm.lv=rhel_dell-per740xd-01/swap console=ttyS0,115200n81 mem=2000M
        
        # kdumpctl reset-crashkernel
        
        # grubby --update-kernel=/boot/vmlinuz-`uname -r` --args="crashkernel=256M"
        # reboot
        # kdumpctl showmem
        kdump: Reserved 256MB memory for crash kernel
        
        # kdumpctl reset-crashkernel
        kdump: No memory will be reserved for crash kernel for this system because the system memory is smaller than the requirement. kdump requires more than 2GB memory.
        kdump: Updated crashkernel=2G-64G:256M,64G-:512M for kernel=/boot/vmlinuz-6.12.0-138.el10.x86_64, grub entry index=0. Please reboot the system for the change to take effect.
        

      Please provide the package NVR for which the bug is seen:

      RHEL-10.2-20251008.0
      kernel-6.12.0-138.el10
      kexec-tools-2.0.31-1.el10
      kdump-utils-1.0.58-1.el10

      How reproducible is this bug?:

      always

      Steps to reproduce

      1. Expected results

      Actual results

              rh-ee-lichliu Lichen Liu
              rhn-support-yiyan Xiaoying Yan
              kdump team kdump team
              Xiaoying Yan Xiaoying Yan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: