Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Memory Dump on Linux
Currently, kdump is installed by default along with mainstream Linux OSs such as RHEL and SLES. If kdump is not installed on your OS, consult the OS provider about related matters based on the actual situation.
Configuring Memory Dump on RHEL 6.x
Procedure
- Open the terminal and run the system-config-kdump command. On the Kernel Dump Configuration page, select Manual kdump memory settings, set New kdump Memory to 512 MB, and click Apply in the upper left corner to save the settings, as shown in Figure 16-1.
- Run the vim command to change nr_cpus=1 to nr_cpus=16 in /etc/sysconfig/kdump, as shown in Figure 16-2.
- Run the reboot command to restart the OS for the settings to take effect.
Configuring Memory Dump on RHEL 7.x
Procedure
- Open the terminal, run the systemctl start kdump command to start kdump, and run the systemctl enable kdump command to enable kdump to be started during system startup, as shown in Figure 16-3.
- Run the vim command to change nr_cpus=1 to nr_cpus=16 in /etc/sysconfig/kdump, as shown in Figure 16-4.
- Run the vim command to change crashkernel to crashkernel=512M in /etc/default/grub, and save the file and exit, as shown in Figure 16-5.
- Run the grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg command, as shown in Figure 16-6.
- Run the reboot command to restart the OS for the settings to take effect.
Configuring Memory Dump on SLES
Procedure
- Open the terminal and run the yast2 kdump command to go to the page shown in Figure 16-7.
- Set Kdump Memory to 512 and click OK, as shown in Figure 16-8.
- In the displayed dialog box shown in Figure 16-9, click OK.
- In /etc/sysconfig/kdump, change KDUMP_CPUS="1" to KDUMP_CPUS="18", and save the file and exit, as shown in Figure 16-10.
- Run the reboot command to restart the OS for the settings to take effect.