How To Expand a Filesystem on AWS Linux

Author: , March 6th, 2018

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html This only works on the new expandable volumes. YMMV, as always. 1. Examine file -s /dev/xvd* lsblk 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 lsblk 3. Expand filesystem resize2fs /dev/xvda1 df -h

How To Grow EBS Volumes on AWS

Author: , June 27th, 2014

PROCEDURE FOR NON-ROOT FILESYSTEMS: Run the df command and record the device path for the mount point you wish to grow. Unmount the filesystem to insure consistency. Detach the volume from the instance. Create a snapshot of the unmounted filesystem. Create a volume from the snapshot, specifying a larger size in the new volume form. […]