On Thu, Dec 30, 2021 at 09:22:13PM +0800, Pingfan Liu wrote:
On Tue, Dec 28, 2021 at 08:49:26AM +0800, Coiby Xu wrote:
This option will determine whether to reset kernel crashkernel to new default value or not when kexec-tools updates the default crashkernel value and existing kernels using the old default kernel crashkernel value. Default to yes.
Signed-off-by: Coiby Xu coxu@redhat.com
kdump.conf | 7 +++++++ kdump.conf.5 | 6 ++++++ 2 files changed, 13 insertions(+)
diff --git a/kdump.conf b/kdump.conf index dea2e948..91e6928c 100644 --- a/kdump.conf +++ b/kdump.conf @@ -11,6 +11,12 @@ # # Supported options: # +# auto_reset_crashkernel <yes|no> +# - whether to reset kernel crashkernel to new default value +# or not when kexec-tools updates the default crashkernel value and
Does it mean new default value for new kernel, while keeping the old value for old kernel?
If existing kernels are using the old default crashkernel value (this indicates crashkernel is set by kexec-tools) and auto_reset_crashkernel=yes, kexec-tools would try to reset the crashkernel of existing kernel to new default value.
For a new kernel, the crashkernel value would inherit from current running kernel except for the case of kexec-tools has updated the default crashkernel value and a kernel package is updated after the update of kexec-tools. This exception case is dealt by "[PATCH v4 11/13] reset kernel crashkernel for the special case where the kernel is updated right after kexec-tools"
+# existing kernels using the old default kernel crashkernel value. +# The default value is yet.
^^^yes
Thanks for catching this issue!
Reviewed-by: Pingfan Liu piliu@redhat.com
+# # raw <partition> # - Will dd /proc/vmcore into <partition>. # Use persistent device names for partition devices, @@ -170,6 +176,7 @@ #ssh user@my.server.com #ssh user@2001:db8::1:2:3:4 #sshkey /root/.ssh/kdump_id_rsa +auto_reset_crashkernel yes path /var/crash core_collector makedumpfile -l --message-level 7 -d 31 #core_collector scp diff --git a/kdump.conf.5 b/kdump.conf.5 index 6e6cafaa..e3e9900b 100644 --- a/kdump.conf.5 +++ b/kdump.conf.5 @@ -26,6 +26,12 @@ understand how this configuration file affects the behavior of kdump.
.SH OPTIONS
+.B auto_reset_crashkernel <yes|no> +.RS +determine whether to reset kernel crashkernel to new default value +or not when kexec-tools updates the default crashkernel value and +existing kernels using the old default kernel crashkernel value
.B raw <partition> .RS Will dd /proc/vmcore into <partition>. Use persistent device names for -- 2.31.1