This document describes how to troubleshoot disk errors.
3 - Error
The disk error prevents reading and reading data.
This message indicates that the Extended File System (EXT) type encountered an error while reading or writing a memory block on the storage media. EXT file systems are journaling file systems, which means that they keep track of changes to the filesystem in a journal. This allows the filesystem to be recovered in case of a crash. EXT file systems are also very efficient, and they can handle large files and directories. The nature of the log message suggests that there was an input/output (IO) error while attempting to write metadata buffers to the EXT File System on device specified. In some situations, there can be a software defect which can cause unexpected/suboptimal operation of the switch.
IOSXE-2-PLATFORM
Sep 11 02:12:15 <> %IOSXE-2-PLATFORM: R0/0: kernel: EXT2-fs (sdb1): error: extx_fsync: detected IO error when writing metadata buffers
N/A
To help isolate the failure use these recommendations:
1. Run a file system integrity check on the affected partition to identify and repair any possible file system errors. Please run fsck bootflash: or fsck flash: command to check and fix any file system inconsistencies.
Note: Please be aware that command availability varies depending on the specific hardware platform or software version. Certain platforms, such as the 9300X, do not support the fsck command. If this command is unavailable on your device, please refer to the specific configuration guide for your platform or contact Cisco Technical Assistance Center (TAC) for alternative troubleshooting steps tailored to your device.
2. Similarly, you can also run the check on the standby with fsck stby-flash: or fsck stbbootflash:
3. After running the file system check, try writing a new file into the flash. As an example, use the command show clock | append flash:clock.txt and then proceed to verify if the error messages are still getting populated with the command show logging.
Note: Most often, these previous steps are sufficient to resolve the disk I/O issues. Before proceeding with additional troubleshooting, ensure you have a current backup of the device configuration and perform these actions during a scheduled maintenance window.
4. If the issue persists, schedule a Reload of your device as this also can automatically run the check file system routine and clear the file system inconsistencies.
5. If this does not resolve the issue, another option is to reformat or replace the disk. Consider that the files contained within the flash can be removed. To proceed with the format of the flash or bootflash, use this procedure:
a. Boot the device from a USB. First, download the appropriate file from Cisco Software Central, format the USB drive on FAT32, and transfer the image into the USB.
b. Send the device to ROMMON by changing the config register to 0x0 with the command config-register 0x0 or boot manual. Save the configuration with the command write or copy running-config startup-config and reload the device.
c. Once the device is in ROMMON state, use the dev command to look for the USB file system number, for example usb0:
d. Run the command dir usb0: (where 0 can change depending on your system) to display the files in the USB drive.
e. Identify the file name of the image, and use the next command to boot up the device from the USB file boot usb0:
f. After the device boots up from the USB, use this command to format the disk: format flash: or format bootflash:
g. Once this step is completed, make sure to copy the image back into the flash: and set the register back to 2102 with the command config-register 0x2102 or no boot manual.
6. In some situations, there can be a software defect which can cause unexpected/suboptimal operation of the switch. Review the next list of some known defects and apply workaround (if available) or software upgrade on the Cisco IOSĀ® XE platform as applicable:
Cisco bug ID CSCvm77197- C9300/9500 : Cisco IOS %IOSXE-2-PLATFORM: Switch 1 R0/0: kernel: EXT2-fs (sda1): error:
Cisco bug ID CSCvp10506- C9400 : Cisco IOS %IOSXE-2-PLATFORM: Switch 1 R0/0: kernel: EXT2-fs (sda1): error:
Commands to use are:
| Revision | Publish Date | Comments |
|---|---|---|
2.0 |
03-Mar-2026
|
Initial Release, formatting and grammar. |
1.0 |
24-Oct-2023
|
Initial Release |