Bug 706961 - backport 'crashkernel=auto' boot parameter to MRG Realtime kernel
Summary: backport 'crashkernel=auto' boot parameter to MRG Realtime kernel
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: realtime-kernel
Version: Development
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 2.0.2
: ---
Assignee: Luis Claudio R. Goncalves
QA Contact: David Sommerseth
URL:
Whiteboard:
: 710134 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-23 15:33 UTC by Clark Williams
Modified: 2016-05-22 23:32 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: mrg rt kernel doesn't know how to interpret the value 'auto' for the parameter 'crashkernel', translating it to 'crashkernel=0' Consequence: kdump is disabled as no memory is reserved for the kdump kernel. Fix: implement the 'crashkernel=auto' routines in the kernel. Result: Following the RHEL6 policy, if the machine has more than 4G of RAM installed, the kernel will reserve the necessary amount of memory to the kdump kernel whenever 'crashkernel=auto' is found in the kernel boot command line.
Clone Of:
Environment:
Last Closed: 2013-06-11 04:32:19 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Clark Williams 2011-05-23 15:33:28 UTC
Description of problem:

RHEL6 kernel supports 'crashkernel=auto' boot parameter for kdump scripts. 
MRG Realtime 2.6.33-based kernel does not support the 'auto' value for crashkernel, but needs to to remain RHEL6 compatible.

Comment 1 Luis Claudio R. Goncalves 2011-06-02 14:13:50 UTC
*** Bug 710134 has been marked as a duplicate of this bug. ***

Comment 3 Luis Claudio R. Goncalves 2011-06-28 15:00:03 UTC
One note: the crashkernel=auto code was backported from RHEL6 and we kept the same behavior: for systems with less than 4GB of RAM the crashkernel memory is 0KB.

Maybe we need to mention in the Release Notes that we are keeping RHEL6 behavior.

Comment 4 Luis Claudio R. Goncalves 2011-06-28 22:29:49 UTC
This change has been added to kernel-rt-2.6.33.9-rt31.70.el6rt patch queue.

Comment 5 Luis Claudio R. Goncalves 2011-07-18 14:06:35 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: mrg rt kernel doesn't know how to interpret the value 'auto' for the parameter 'crashkernel', translating it to 'crashkernel=0'
Consequence: kdump is disabled as no memory is reserved for the kdump kernel.
Fix: implement the 'crashkernel=auto' routines in the kernel.
Result: Following the RHEL6 policy, if the machine has more than 4G of RAM installed, the kernel will reserve the necessary amount of memory to the kdump kernel whenever 'crashkernel=auto' is found in the kernel boot command line.

Comment 6 David Sommerseth 2011-08-11 11:29:01 UTC
[root@mrg39 ~]# uname -r
2.6.33.9-rt31.73.el6rt.x86_64
[root@mrg39 ~]# rt-setup-kdump 
Not performing changes to /etc/grub.conf

[root@mrg39 ~]# grep crashkernel= /etc/grub.conf 
	kernel /vmlinuz-2.6.33.9-rt31.73.el6rt.x86_64[...snip...] crashkernel=auto
	kernel /vmlinuz-2.6.32-131.0.15.el6.x86_64[...snip...] crashkernel=auto
[root@mrg39 ~]# cat /proc/cmdline 
ro [...snip...] crashkernel=auto
[root@mrg39 ~]# service kdump start
No kdump initial ramdisk found.[WARNING]
Rebuilding /boot/initrd-2.6.32-131.0.15.el6.x86_64kdump.img
No module ehci-hcd found for kernel 2.6.32-131.0.15.el6.x86_64, aborting.
Failed to run mkdumprd
[root@mrg39 ~]# locate ehci-hcd.ko
/lib/modules/2.6.33.9-rt31.73.el6rt.x86_64/kernel/drivers/usb/host/ehci-hcd.ko
[root@mrg39 ~]# 

The 2.6.33.9-rt31.73 kernel now accepts crashkernel=auto, however, it is not possible to prepare the kdump kernel.  This seems to be related to that the EHCI HCD driver is built into the RHEL6 kernel, while RT kernel has it as a module.

[root@mrg39 ~]# grep USB_EHCI_HCD /boot/config-2.6.3*
/boot/config-2.6.32-131.0.15.el6.x86_64:CONFIG_USB_EHCI_HCD=y
/boot/config-2.6.33.9-rt31.73.el6rt.x86_64:CONFIG_USB_EHCI_HCD=m

-> ASSIGNED

Comment 7 David Sommerseth 2011-08-11 12:25:51 UTC
This issue now found is not directly related to crashkernel=auto, however the crashkernel fix revealed another issue in the needed scripts for kdump.  For now we will keep this bz open.  A new bz covering the issue found will depend on this bz.


Note You need to log in before you can comment on or make changes to this bug.