LoginSignup
8
8

More than 5 years have passed since last update.

amaozon ec2でhdd容量を50GBで作成したはずなのに8GBしか表示されない時すること。

Posted at

スクリーンショット 2014-04-03 20.22.05.png

上記のようにEC2インスタンスを作成してもdfに容量が50GBと表示されずに困っていて調べたらresize2fsで修正できるとのこと。
http://linuxjm.sourceforge.jp/html/e2fsprogs/man8/resize2fs.8.html

$ df -h
Filesystem            Size  Used Avail Use% マウント位置
/dev/xvda1            7.9G  1.1G  6.8G  14% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm

$ sudo resize2fs /dev/xvda1
resize2fs 1.42.3 (14-May-2012)
Filesystem at /dev/xvda1 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 4
The filesystem on /dev/xvda1 is now 13107200 blocks long.

$ df -h
Filesystem            Size  Used Avail Use% マウント位置
/dev/xvda1             50G  1.1G   49G   3% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm


8
8
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
8
8