Created
April 2, 2020 14:31
-
-
Save galanteh/0879405052ffcd5bac87017729f3cf21 to your computer and use it in GitHub Desktop.
AWS Disk Extension on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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