Unnamed repository
Go to file
Jerry Hoemann 428a5e99ee kdumpctl: Pass disable_cpu_apicid to kexec of capture kernel
== Version 2 ==

Addresses Vivek's review comments:

1. Don't force numeric in awk script snipet.

2. Command line processing is moved from load_kernel to new function
   "prepare_cmdline."   This new function is responsible for
   setting up the command line passed to KEXEC.

3. New function "append_cmdline" is added to append {argument,value}
   pair to command line if argument is not already present.

== Version 1 ==

A recent patch (https://lkml.org/lkml/2014/1/15/42) enables multiple
processors in the crash kernel.

To do this safely the crash kernel needs to know which CPU was the 1st
kernel BSP (bootstrap processor) so that the crash kernel will NOT send
the BSP an INIT.  If the crash kernel sends an INIT to the 1st kernel
BSP, some systems may reset or hang.

The EFI spec doesn't require that any particular processor is chosen
as the BSP and the CPU (and its apic id) can change from one boot to
the next.  Hence automating the selection of CPU to disable if the
system would panic is desired.

This patch updates the kdumpctl script to get the "initial apicid"
of CPU 0 in the first kernel and will pass this as the
"disable_cpu_apicid=" arguement to kexec if it wasn't explicitly
set in /etc/sysconfig/kdump KDUMP_COMMANDLINE_APPEND.

CPU 0 is chosen as it is the processor thats execute the OS
initialization
code and hence was the BSP as per x86 SDM (Vol 3a Section 8.4.)

See associated Red Hat Bugzilla(s) for additional background material:

        https://bugzilla.redhat.com/show_bug.cgi?id=1059031
        https://bugzilla.redhat.com/show_bug.cgi?id=980621

Signed-off-by: Jerry Hoemann <jerry.hoemann@hp.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
2014-02-28 14:55:16 +08:00
po Translation, Makefile: add make tgz option to auto pack po files 2013-12-24 14:25:23 +08:00
.gitignore Rebase makedumpfile-1.5.5 2014-01-28 13:04:36 +08:00
98-kexec.rules udev rules fix 2012-05-28 09:50:47 +08:00
dracut-kdump.sh kdump.sh: send fence kdump message to other nodes in the cluster 2014-01-29 16:20:06 +08:00
dracut-module-setup.sh insert wdt kernel modules when watchdog is active 2014-02-17 12:49:56 +08:00
dracut-monitor_dd_progress monitor-dd-progress fix 2013-06-25 16:45:59 +08:00
firstboot_kdump.py firstboot:fix reserve mem ui spinbox step size 2012-12-12 17:15:10 +08:00
kdump-in-cluster-environment.txt Add a kdump-in-cluster-environment.txt in RPM package 2014-01-29 16:20:06 +08:00
kdump-lib.sh kdump-lib: add common variables and function for fence kdump 2014-01-29 16:20:06 +08:00
kdump.conf kdump.conf: uncomment default core_collector line 2014-01-17 11:32:47 +08:00
kdump.conf.5 makedumpfile compression method default to lzo 2013-12-24 14:25:07 +08:00
kdump.init - Fix a syntax error in kdump init script 2010-06-13 21:54:34 +00:00
kdump.service kdump.service: Start kdump after network is online and remote fs is mounted 2013-09-27 10:07:13 +08:00
kdump.sysconfig do not mount root twice 2012-07-12 11:15:35 +08:00
kdump.sysconfig.i386 kdump.sysconfig: default to "nofail" mount 2013-09-27 15:45:24 +08:00
kdump.sysconfig.ia64 Mass Update of RHEL5 patches 2008-06-05 15:18:53 +00:00
kdump.sysconfig.ppc64 kdump.sysconfig: default to "nofail" mount 2013-09-27 15:45:24 +08:00
kdump.sysconfig.s390x s390x, sysconfig: Change maxcpus=1 to nr_cpus=1 for s390x 2014-01-22 12:52:02 +08:00
kdump.sysconfig.x86_64 Add acpi_no_memhotplug to kdump kernel 2014-01-29 16:25:57 +08:00
kdumpctl kdumpctl: Pass disable_cpu_apicid to kexec of capture kernel 2014-02-28 14:55:16 +08:00
kexec-kdump-howto.txt makedumpfile compression method default to lzo 2013-12-24 14:25:07 +08:00
kexec-tools-2.0.3-build-makedumpfile-eppic-shared-object.patch Rebase makedumpfile-1.5.5 2014-01-28 13:04:36 +08:00
kexec-tools-2.0.3-disable-kexec-test.patch Disable kexec_test 2012-01-21 16:56:07 +08:00
kexec-tools-2.0.4-kdump-x86-Process-multiple-Crash-kernel-in-proc-iome.patch kdump, x86: Process multiple Crash kernel in /proc/iomem 2013-10-29 13:17:31 +08:00
kexec-tools-2.0.4-kexec-i386-Add-cmdline_add_memmap_internal-to-reduce.patch Back port 2 revert commits 2013-09-27 17:01:24 +08:00
kexec-tools-2.0.4-makedumpfile-memset-in-cyclic-bitmap-initialization-introdu.patch makedumpfile: memset() in cyclic bitmap initialization introduce segment fault. 2014-01-29 16:31:04 +08:00
kexec-tools-2.0.4-Revert-kexec-include-reserved-e820-sections-in-crash.patch Back port 2 revert commits 2013-09-27 17:01:24 +08:00
kexec-tools-2.0.4-Revert-kexec-lengthen-the-kernel-command-line-image.patch Back port 2 revert commits 2013-09-27 17:01:24 +08:00
kexec-tools-2.0.4-vmcore-dmesg-struct_val_u64-not-casting-u64-to-u32.patch vmcore-dmesg: struct_val_u64() not casting u64 to u32 2014-01-17 11:32:48 +08:00
kexec-tools.spec Release 2.0.4-24 2014-02-17 12:50:08 +08:00
mkdumprd Relax restriction of dumping on encrypted target 2014-02-28 14:55:16 +08:00
mkdumprd.8 Remove comma which is redundant 2013-02-16 15:19:41 +08:00
rhcrashkernel-param rhcrashkernel-param: echo crashkernel=auto for rhel7 2012-08-20 15:01:47 +08:00
sources Rebase makedumpfile-1.5.5 2014-01-28 13:04:36 +08:00
zanata-notes.txt Add a notes for zanata process 2012-12-05 01:23:09 -05:00