Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hiyali
Last active March 19, 2019 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiyali/e95c77d68cfd75e4dba6ca0637712326 to your computer and use it in GitHub Desktop.
Save hiyali/e95c77d68cfd75e4dba6ca0637712326 to your computer and use it in GitHub Desktop.
After increase volume size

Expand Partition to New Available Disk Volume

$ sudo growpart /dev/xvda 1

Expand file system

$ sudo resize2fs /dev/xvda1

Check Partitions and Disk Space

After expanding the partition to the new available size limit, you can check the volumes using the lsblk command again. Also confirm the available storage and usage with the df -h command.

$ lsblk
$ df -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment