ITeye博客

Diskspace Check and Fix

sillycat · 2020-04-01 00:28 · Ubuntu · 企业架构 · Markdown

Diskspace Check and Fix

First command to check the diskspace and diskusage

df -lh

Search by directories to see what are the usage on machines

du -sh /* du -sh /var/*

In my case, I get a huge file in the maxscale.log, but I already delete that, but the diskspace is not released. So what I am doing next: Kill the maxscale process and restart it, it works. The disk is clear after that.

References: https://serverfault.com/questions/232525/df-in-linux-not-showing-correct-free-space-after-file-removal/232526 https://www.linux.com/training-tutorials/6how-check-disk-space-linux-command-line/

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。