0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

No space left on deviceが起きたら

Posted at

No space left on deviceが起きたら、何を見たらいいのか?

見るべきもの

ディスクの空き容量

df -hとかでFREEがあるかどうか。
FREEが無ければ、不要なファイルやディスクを喰いつぶした原因を特定しよう。

inodeの空き容量

df -iIUse%が100%になっていないかどうか。
100%になっている場合は、やはり不要なファイルやinodeを喰いつぶした原因を特定しよう。

セマフォの枯渇

ipcs -sで行数をカウントしよう。

ipcs -s|wc -lを実行して表示された数字を覚えておく。
cat /proc/sys/kernel/semを実行してから、最後の4項目目の数字と比較する。

[root@wktksv (rhel7) 09:31:02 tmp]# ipcs -s | wc -l
519
[root@wktksv (rhel7) 09:31:06 tmp]# cat /proc/sys/kernel/sem
250     32000   32      1024
[root@wktksv (rhel7) 09:31:08 tmp]# 

こんな感じになる。
セマフォが枯渇している場合は、/etc/sysctl.confで以下のように記述してから、sysctl -pするといい。
#の部分は過去の修正履歴。担当しているシステムは、よく枯渇する。

# kernel.sem = 250 32000 32 256
# kernel.sem = 250 32000 32 512
kernel.sem = 250 32000 32 1024
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?