LoginSignup
19
17

More than 5 years have passed since last update.

空き領域がないと怒られるけどディスク容量が足りてる場合はiノード数かも

Posted at
$ touch /mnt/storage/hoge.txt
touch: `/mnt/storage/hoge.txt' に touch できません: デバイスに空き領域がありません

調べてみると

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.9G  6.6G  905M  89% /
/dev/xvdf        20G  9.2G  9.6G  49% /mnt/storage

空き領域あるやん? と思いきやdf -iで見ると

$ df -i
Filesystem      Inodes   IUsed  IFree IUse% Mounted on
/dev/xvda1      524288  288302 235986   55% /
/dev/xvdf      1310720 1310720      0  100% /mnt/storage

/dev/xvdf 1310720 1310720 0 100% /mnt/storage のように, i-node数が一杯になっていた. ファイル"数"を減らすとよい.

19
17
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
19
17