Last active
March 1, 2017 02:19
-
-
Save debo/cb501362dce437dcfd79a499d839cf0f to your computer and use it in GitHub Desktop.
Commands to extend disk on an AWS EC2
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
# add a new volume to the instance, ssh into the machine and execute the following commands | |
lsblk | |
pvcreate /dev/xvdf | |
pvdisplay # for sanity check | |
vgextend vg0 /dev/xvdf | |
lvextend -l+100%FREE /dev/mapper/vg0-storage | |
xfs_growfs /storage | |
df -h # profit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment