Operations 3 min read

Diagnosing Deployment Failures: Using Linux Disk Commands to Find Full Partitions

This guide walks through a real‑world deployment issue where one node failed to start due to a full disk, showing how to verify overall and per‑directory disk usage with df and du commands, interpret their output, and locate large files or directories.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Diagnosing Deployment Failures: Using Linux Disk Commands to Find Full Partitions

During a test deployment using a web publishing platform, one of two nodes failed to start, causing the TPS to remain low. The deployment record showed SUCCESS, but the log revealed that the failed node could not run because the disk was full.

Error log:

Command to view overall disk space:

df -h

If you only need the usage of the current directory, use:

du --max-depth=1 -h

The -h flag makes the sizes human‑readable (adds K, M, G units). The output lists the size of each subdirectory on the first n‑1 lines, with the total size on the last line.

To get the size of a single file or directory, run:

du -sh

Another equivalent command is:

du --max-depth=0 -h

In the manual, --max-depth=0 is described as having the same effect as the -s option.

You can also specify a path to check a particular location, for example:

du -sh /root/sw
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

OperationsLinuxdisk spacedudf
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.