Last active
March 4, 2021 12:53
-
-
Save AndreySemechkov/ee2eeb5a45d9e7ea5dea735557c269d6 to your computer and use it in GitHub Desktop.
Resize storage volumes available on an 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
# commands to resize volumes, for example useful to utilize more storage after resizing an attached EBS manually | |
# Expand the PV on /dev/sda1 after enlarging the partition with fdisk: | |
pvresize /dev/sda1 | |
# Extends the size of the logical volume "vg01/lvol10" by 1GiB | |
# on physical volume /dev/sda1. This is only possible if /dev/sda1 is a member of volume group vg01 and there are enough free physical extents in it: | |
lvextend -L +1024 /dev/vg01/lvol10 /dev/sda1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment