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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -