4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ディスク枯渇の調査で使うドリル

Last updated at Posted at 2025-04-01

ドリル

sudo du -xh / --max-depth=1 2>/dev/null | sort -hr

これがドリルです。

ひたすらこれを使う。

このドリルを使って穴を掘っていくイメージ。

スクリーンショット 2025-04-01 18.48.02.png

こんな感じ

sudo du -xh / --max-depth=1 2>/dev/null | sort -hr

で、まずはどこに容量を食っているファイルがありそうか見ましょう。

varの下にありそう。ドリルをチューニングします。

sudo du -xh /var --max-depth=1 2>/dev/null | sort -hr

var libにありそう

sudo du -xh /var/lib --max-depth=1 2>/dev/null | sort -hr

という感じで掘っていく。

コンテナイメージじゃね?となる

docker images
で見てみましょう。

docker ps
で今使っているのはどれかを確認。必要性を確認し、pruneしてください(使ってないからと言って消していいわけではない)。

以上

久々にドリル使ったのでメモでした。他にも使えるツールがあればぜひコメントで教えてください。

スクリーンショット 2025-04-01 18.48.02.png

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?