Ec2 fix ebs volume space


When creating new EBS from Snapshot in EC2, this EBS will using the old space. For instance, snapshot was 1GB and we launch new EBS with 5GB capacity. After attaching into EC2 server, we’ll find out that the space still the old one (1GB). To fix this EBS volume space, just use “resize2fs”:

1
resize2fs /dev/xvda1

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.