grafclouds.com / documents / insights / training / devops-challenges / linux-disk-full-basics

Disk Is at 100% and the App Is Down. rm -rf?

Beginner ~8 min read
Linux

Scenario

A single VM runs your application behind nginx. Suddenly the site is throwing 500s and the logs are full of "No space left on device" — the root filesystem is at 100%. There is no log rotation configured, and /var/log has been growing quietly for months during perfectly normal operation. The pressure is on: the app is down right now.

The Quick Fix on the Table

A colleague wants to skip the analysis: rm -rf /var/log, free the space in one shot, restart the service. "It always works." It is one command, and the outage clock is ticking.

Interview · Round 1

The quick fix is on the table and the room is waiting for your call. Would you sign off on it? Take a position and justify it — out loud or on paper — before revealing the analysis.