All Products
Search
Document Center

:How do I enable the kdump service on a Linux instance?

Last Updated:Aug 19, 2024

Introduction

The kdump service can capture kernel errors to analyze kernel crashes. This topic describes how to enable the kdump service on a Linux Elastic Compute Service (ECS) instance.

Note

For information about the kdump service, see the kdump documentation.

Procedure

The kdump service consumes memory space in the operating system. The corresponding kdump.service system service in user mode may affect the system startup speed. Therefore, the kdump service may be disabled by default in specific Linux distributions. Cloud Assistant can manage the kdump service in most operating system versions. You can use Cloud Assistant to enable, view, and disable the kdump service. In the following example, CentOS 7.9 is used.

  1. Enable the kdump service.

acs-plugin-manager --exec --plugin ecs_dump_config --params --enable

1693981604022-2677d4f0-9935-44b9-81a1-6fd346ebe4d7.png

  1. Query the status of the kdump service.

acs-plugin-manager --exec --plugin ecs_dump_config --params --status

1693981783720-87ef9551-6844-4bc5-973b-bc5df44ab58f.png

  1. Disable the kdump service.

acs-plugin-manager --exec --plugin ecs_dump_config --params  --disable

1693981890926-6fea5784-a404-4dc8-a457-dc199754fdac.png

You can customize the configurations of the kdump service based on your business requirements in the following Linux distributions. The configurations vary based on your Linux distribution.

References

Enable the Kernel Memory Dump feature for a Windows instance

Applicable scope

  • ECS