Sometimes, debugging the kdump service failure becomes very challenging
because there is no complete debugging information, which requires
modification of the options or the scripts like kdumpctl, mkdumprd, etc
to collect the information for troubleshooting.
That means users have to wait for the next failure so that they can
capture the additional information, which could waste valuable time.
This patch series will improve kdump debugging messages and have a
chance to save them to journald or a file. It includes the following
patches:
[1] [PATCH 1/4] introduce the kdump logger from the dracut
[2] [PATCH 2/4] enable the logger for kdump
[3] [PATCH 3/4] kdump.sysconfig: add the kdump logger configurations
[4] [PATCH 4/4] kdumpctl: add the '-d' option to enable the kexec loading
debugging messages
In addition, this patch series won't cause performance degradation,
basically this effect can be ignored. I simply checked the result of
executing the loading command as follow:
[1] before
# time kdumpctl start
Detected change(s) in the following file(s):
/etc/kdump.conf
Rebuilding /boot/initramfs-4.18.0-232.el8.x86_64kdump.img
Tips: If early kdump is enabled, also require rebuilding the system initramfs to make the
changes take effect for early kdump.
kexec: loaded kdump kernel
Starting kdump: [OK]
real 0m9.145s
user 0m20.733s
sys 0m1.765s
[2] after
# time kdumpctl start
kdump: Detected change(s) in the following file(s): /etc/kdump.conf
kdump: Rebuilding /boot/initramfs-4.18.0-232.el8.x86_64kdump.img
kdump: Tips: If early kdump is enabled, also require rebuilding the system initramfs to
make the changes take effect for early kdump.
kdump: kexec: loaded kdump kernel
kdump: Starting kdump: [OK]
real 0m9.177s
user 0m20.784s
sys 0m1.901s
Changes since v3:
[1] modify the kdump-lib.sh and kdumpctl and improve them.
Lianbo Jiang (4):
introduce the kdump logger from the dracut
enable the logger for kdump
kdump.sysconfig: add the kdump logger configurations
kdumpctl: add the '-d' option to enable the kexec loading debugging
messages
dracut-early-kdump-module-setup.sh | 3 +
dracut-early-kdump.sh | 24 +-
kdump-lib.sh | 23 +-
kdump-logger.sh | 380 +++++++++++++++++++++++++++++
kdump.sysconfig | 21 ++
kdump.sysconfig.aarch64 | 21 ++
kdump.sysconfig.i386 | 21 ++
kdump.sysconfig.ppc64 | 21 ++
kdump.sysconfig.ppc64le | 21 ++
kdump.sysconfig.s390x | 21 ++
kdump.sysconfig.x86_64 | 21 ++
kdumpctl | 241 ++++++++++--------
kexec-tools.spec | 2 +
mkdumprd | 12 +-
14 files changed, 707 insertions(+), 125 deletions(-)
create mode 100755 kdump-logger.sh
--
2.17.1
Show replies by date