amazon web services - EC2 used space increases after resizing volume -


i have followed aws guide expand 8gb volume 16gb.

what have done is:

  1. take snapshot of 8gb volume
  2. create new 16gb volume snapshot
  3. detach 8gb volume ec2 instance, attach 16gb volume ec2 instance

after that, df -h:

filesystem      size  used avail use% mounted on /dev/xvda1       16g   11g  5.3g  67% / 

why used size increase 11g? should 8g.

while disk 'bigger', partition has not yet been extended cover new disk space.

use sudo resize2fs /dev/xvda1 extend disk partition include additional space on disk.

see: extending linux file system on same page.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -