LoginSignup
0
0

More than 3 years have passed since last update.

AWS EC2 でfwrite: No space left on deviceが出た時の対処法

Last updated at Posted at 2021-02-22

はじめに

ec2内でdocker-compose upをしたら、途中で容量が100%になり、実行中のコマンドが終了しました

Failed to write all bytes for _blake2.so
fwrite: No space left on device

容量を確認してみる

[userName@ip ~]$ df -h
ファイルシス   サイズ  使用  残り 使用% マウント位置
/dev/xvda1   8.0G  8.0G   20K  100% /

容量を増やすことにしました。

容量を増やす方法

ec2インスタンスページに行く

elasticBlockStore>ボリュームをクリック

画面上部のアクションをクリック

ボリュームの変更

今回は8gbから20gbに変更しました。

インスタンスの再起動&ec2@userへのログイン

[userName@ip ~]$ df -h
ファイルシス   サイズ  使用  残り 使用% マウント位置
/dev/xvda1        20G  8.1G   12G   41% /

無事20gbになってました。

参考
https://stackoverflow.com/a/54347393

容量を減らす方法

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