This section explains core dump folders in Cisco IOS XR. Use it to understand storage attributes, system limits, and troubleshooting features for diagnostic files.
A core dump folder is a directory in the Cisco IOS XR file system that
-
stores diagnostic files, known as core dumps, which capture the state of the system's memory during a crash or failure,
-
is typically located at
/misc/disk1/coredumps, and -
provides critical information for troubleshooting and debugging system issues.
To manage storage and maintain system reliability, Cisco IOS XR introduces several mechanisms related to core dump folder limits:
-
Configurable storage limits: Administrators can set disk storage limits to 20% of total disk space for core dumps, helping prevent the folder from consuming excessive space during repeated crash scenarios.
-
Maximum retained files: The storage capacity of /misc/disk1 is 140GB, and 20% of the disk is configured for core dumps, which comes to roughly 28GB. This indicates that the disk usage limit (20%) is being enforced.
.core.txtare automatically deleted to free space, every 15 minutes. -
Syslog alerts: The system generates syslog messages to notify administrators when storage limits are reached or when automatic cleanup actions occur. This optimizes disk usage and helps prevent data loss during continuous crash scenarios.
Before Release 26.2.1, the core dump folder lacked a storage limit for core dump files. This could result in the allocated hard disk space being filled during continuous crash scenarios, potentially preventing Cisco IOS XR from saving the latest core files and leading to data loss.
From Release 26.2.1 onward, these improvements allow you to effectively control core dump folder storage and preserve disk space for critical operations, by configuring
-
Throttling mechanism bypass: Use the exception filepath to redirect core files to another directory, utilizing new storage space.
-
Disk usage limit: Use the exception disk-usage-limit <usage limit percent> command to set the storage limit between 20% and 50% of the total hard disk space.
Example
If the number of coreinfo files exceeds 50, Cisco IOS XR deletes older files during its periodic cleanup. These syslog messages indicate this action:
RP/0/RP0/CPU0:Jan 20 20:15:02.014 UTC: dumper[69243]: %OS-SYSLOG-6-LOG_INFO : Coreinfo count is currently 52, deleting /misc/disk1/coredumps/sleep_11899.by.3.20250120-191744.xr-vm_node0_RP0_CPU0.34684.core.txt
RP/0/RP0/CPU0:Jan 20 20:15:02.056 UTC: dumper[69255]: %OS-SYSLOG-6-LOG_INFO : Coreinfo count is currently 51, deleting /misc/disk1/coredumps/sleep_13995.by.3.20250120-193249.xr-vm_node0_RP0_CPU0.34684.core.txt