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.

EC2でyum installしようとしたらno space left on deviceが出た

0
Last updated at Posted at 2020-11-25

ディスクの利用状況確認

いっぱいだった

df

メモリの利用状況確認

Swap領域(4G)は殆ど使われていなかった

free

Swap領域への割当を減らそう

4Gで作ったあったものを破棄

swapoff /swapfile
rm /swapfile

2Gで作成

fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

ちゃんと減っているか確認

free

参考URL
https://qiita.com/cyborg__ninja/items/891a1f5acf7c14237939
https://www.wantanblog.com/entry/2020/04/11/183201

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?