Change Crash Dump Target Location
Cockpit administrators, as needed, can change the Kdump crash target location by using the Kernel dump page in the web console.
What Do You Need?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- The Kdump package (
kexec-tools
) is installed on the host.Note:
An option for installing the Kdump package appears during the installation set up of Oracle Linux. If this package wasn't installed, see Installing Kdump in Oracle Linux 8: Monitoring and Tuning the System or Oracle Linux 9: Monitoring and Tuning the System - The
cockpit-kdump
package is installed. Typically, this package is installed by default.For Cockpit package installation details, see Install and Manage Add-on Applications.
- Administrator privileges.
Steps
Using the Cockpit web console, follow these steps to change the host target location for the saving the kernel crash dump information.
- In the Cockpit navigation pane, click Kernel dump. The Kernel crash dump page appears.
- In the Kernel crash dump page, click the link next to the
Crash dump location property.
Important:
By default, the Kdump crash files are stored locally to thevar/crash
host system directory.The Crash dump location dialog appears.
- In the Crash dump location dialog, change any of the following
properties and then click Save to apply the changes.
Location Click the Location drop-down menu and select one of the following options: - Local file system (default): Select this option to save the Kdump crash files to a local directory on the host system.
- Remote over SSH: Select this option to transfer the Kdump crash
files over a secure shell connection. The following SSH configuration
properties are required:
Note:
The secure shell option requires the configuration of an SSH client and server. For OpenSSH server configuration details, see Oracle Linux: Connecting to Remote Systems With OpenSSH.- Server: To establish a connection to a SSH server, specify the username and server name, for example: username@servername.com.
- SSH Key: To identify yourself to the SSH server, enter the path to your public RSA key, for example: root/ssh/kdump_id_rsa.
- Remote over NFS: Select this option to export the Kdump crash files
to a configured shared network location. The following NFS configuration
properties are required:
- Server: Enter the name of the NFS host server, for example: nfsserver.example.com
- Export: Enter the NFS shared export directory path, for example: /export/cores
For more information about Oracle Linux NFS configuration, see Create an NFS server on Oracle Linux.
Directory In the Directory text box, enter the target directory for where the Kdump crash files are stored. For example, /var/crash. Compression (Optional) Select the Compress crash dump to save space checkbox to enable this option.