Skip to content

Instantly share code, notes, and snippets.

@galanteh
Created April 2, 2020 14:31
Show Gist options
  • Save galanteh/0879405052ffcd5bac87017729f3cf21 to your computer and use it in GitHub Desktop.
Save galanteh/0879405052ffcd5bac87017729f3cf21 to your computer and use it in GitHub Desktop.
AWS Disk Extension on Linux
# After extending the disk on the AWS console. You should check in Linux the disk.
# Check
lsblk
# Output will somthing like this
#
# NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
# xvda 202:0 0 20G 0 disk
# └─xvda1 202:1 0 8G 0 part /
# So we need to grow the disk partition
sudo growpart /dev/xvda 0
# Extend the filesystem inside that disk partition
sudo xfs_growfs /dev/xvda1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment