Unit 3 Bonus - Storage
Note
This is an optional bonus section. You do not need to read it, but if you're interested in digging deeper, this is for you.
When storage issues arise, troubleshooting step by step ensures a quick resolution. This guide flows logically, covering the most common issues you might face, from slow performance to filesystem corruption.
🔍 Step 1: Is Storage Performance Slow?
If everything feels sluggish, your disk might be the bottleneck.
Check
- If I/O wait is high, it means the CPU is waiting on slow disk operations.
- If certain processes are consuming all disk bandwidth, they might be the cause.
Fix
-
Identify and stop unnecessary high I/O processes:
-
Optimize filesystem writes (for ext4):
-
Reduce excessive metadata writes:
-
If using LVM, extend the volume to reduce fragmentation:
🔍 Step 2: Is the Filesystem Full? ("No Space Left on Device")
👉 Disk space exhaustion is one of the most common causes of storage failures.
Check
- If a filesystem is 100% full, it prevents writes and can cause application crashes.
- If there's space but files still won't write, check Step 4 (Corrupted Filesystem).
Fix
-
Find and remove large unnecessary files:
-
Truncate logs safely without deleting them:
-
Expand disk space if using LVM:
🔍 Step 3: Are Mounts Failing? (LVM, fstab, NFS, SMB)
If files suddenly disappear or applications complain about missing storage, a mount issue may be the cause.
Check
Fix
-
Manually remount the filesystem (if missing):
-
Ensure correct fstab entry for persistence:
-
If an LVM mount is missing after reboot, reactivate it:
-
For NFS issues, check connectivity and restart services:
🔍 Step 4: Is the Filesystem Corrupted?
👉 Power losses, unexpected shutdowns, and failing drives can cause corruption.
Check
Fix
-
Repair the filesystem (if unmounted):
-
If corruption is severe, restore from backup:
🔍 Step 5: Are You Out of Inodes?
You might have disk space but still can't create files? Check your inodes!
Check
- If inode usage shows 100%, you can't create new files even with free space.
- This happens when you have too many small files.
Fix
-
Clean up temporary files:
-
Find and remove unnecessary files: