Use a file system-specific command to resize each file system to the new volume capacity. For a file system other than the examples shown here, refer to the documentation for the file system for instructions.
Example: Extend an ext2, ext3, or ext4 file system
Use the df -h command to verify the size of the file system for each volume. In this example, both /dev/xvda1 and /dev/xvdf reflect the original size of the volumes, 8 GB.
df -hdf
Use the resize2fs command to extend the file system on each volume.
sudo resize2fs /dev/xvda1sudosudo resize2fs /dev/xvdf1sudo
You can verify that each file system reflects the increased volume size by using the df -h command again.
df -hdf
Example: Extend an XFS file system
Use the df -h command to verify the size of the file system for each volume. In this example, each file system reflects the original volume size, 8 GB.
df -hdf
To extend the XFS file system, install the XFS tools as follows, if they are not already installed.
sudo yum install xfsprogsinstall
Use the xfs_growfs command to extend the file system on each volume. In this example, / and /data are the volume mount points shown in the output for df -h.
sudo xfs_growfs -d /sudosudo xfs_growfs -d /datasudodata
You can verify that each file system reflects the increased volume size by using the df -h command again.
df -hdf