Use this when a Linux disk, mount or file system has errors, is full or is missing.
Linux Storage Troubleshooting
Troubleshoot Linux storage with lsblk, dmesg and journalctl for I/O errors, df and df -i for space and inodes, mount and fstab, smartctl, iostat for latency, and fsck or xfs_repair on unmounted file systems.
1. Start with the kernel log.
2. Missing device: cabling, rescan, multipath.
3. Mount failures: fstab, UUID changes.
4. Read-only remount: filesystem errors.
5. Fix underlying device first.
kernel → device → dm → filesystem → mount
Context & applicabilityCommon mistakes · platform/version boundaries
- Forcing
fsckon a mounted file system. - Deleting open files that still use space (find them with
lsof +L1). - Ignoring
dmesgI/O errors because the application "seems fine". - Restarting services repeatedly instead of checking
df -iand full disks.
Operational reference
Fast context before you go deeper.
lsblk -f ; findmnt ; df -hT ; df -iVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Troubleshooting order Narrow the fault
1. Is the device present? lsblk, dmesg -T | grep -iE 'error|reset|timeout'.
2. Health: smartctl -a, nvme smart-log, multipath -ll.
3. Mounts: findmnt, /etc/fstab, journalctl -b -u '*.mount'.
4. Space and inodes: df -h, df -i, du -xh --max-depth=1 /.
5. Performance: iostat -x 1 (await, %util), iotop, pidstat -d.
6. File system errors: read-only remounts in dmesg; repair unmounted (xfs_repair, e2fsck).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Check inodes as well as space.
- Read kernel logs for I/O errors.
- Repair only unmounted file systems.
dmesg -T | grep -i -e 'I/O error' -e 'remount' -e 'EXT4-fs error' -e XFS— kernel errorslsblk; findmnt— missing devices/mountsjournalctl -b -u '*.mount'— mount failures
ReferenceImportant terms & boundaries1 section · depth on demand
Method
| Symptom | Check |
|---|---|
| New disk not visible | echo '- - -' > /sys/class/scsi_host/hostN/scan, lsblk, dmesg |
| Grown disk shows old size | echo 1 > /sys/class/block/sdX/device/rescan |
| Device names changed | Use UUID/by-id in fstab and LVM filters |
| I/O errors | dmesg -T, smartctl, multipath path state |
| High latency | iostat -x 1 (r_await, w_await, %util, aqu-sz), iotop, pidstat -d |
| Hung tasks | dmesg "blocked for more than 120 seconds" — storage or NFS not responding |
iostat -xz 1
cat /proc/pressure/io # PSI: time tasks waited on I/O
ReferenceConfiguration & state1 section · depth on demand
Useful commands
lsblk -f ; findmnt ; df -hT ; df -i
dmesg -T | grep -iE 'error|i/o|reset|timeout'
iostat -xz 1
smartctl -a /dev/sda
journalctl -k -p err
df -i catches inode exhaustion when df -h still shows free space.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Storage → Linux Storage Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.html · confidence 94%