How To Expand a Filesystem on AWS Linux

Published Date Author: , Posted March 6th, 2018 at 6:50:19am

This only works on the new expandable volumes. YMMV, as always.

1. Examine
file -s /dev/xvd*
df -h

2. Grow partition
Expand the modified partition using growpart (and note the unusual syntax of separating the device name from the partition number):
growpart /dev/xvda 1

3. Expand filesystem
resize2fs /dev/xvda1
df -h

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.