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 3 years have passed since last update.

No space left on deviceでEBSの拡張ができない時の対処法

Posted at

EBSのrootデバイスをgrowpartで拡張しようとしたが、「No space left on device」というエラーで拡張できない時のメモ。

対処方法

エラーを回避するには、一時ファイルシステムであるtmpfsを/tmpにマウントする。

$ sudo mount -o size=10M,rw,nodev,nosuid -t tmpfs tmpfs /tmp

その後にgrowpart、resize2fsを実行する。

$ sudo growpart /dev/nvme0n1 1 
$ sudo resize2fs /dev/nvme0n1p1

最後にアンマウントする。

$ sudo umount /tmp

参考

https://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
https://aws.amazon.com/jp/premiumsupport/knowledge-center/ebs-volume-size-increase/

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?