amazon web services - EC2 used space increases after resizing volume -
i have followed aws guide expand 8gb volume 16gb.
what have done is:
- take snapshot of 8gb volume
- create new 16gb volume snapshot
- 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
Post a Comment