Created
January 23, 2023 13:13
-
-
Save ECiurleo/10460ec5b47487c6f63ffc308b9b7dc4 to your computer and use it in GitHub Desktop.
Resize partitions for EBS volumes after you change their size in AWS
This file contains hidden or 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
#Update the LVM partition sizes for the data disk after EBS resize | |
sudo pvresize /dev/nvme1n1 | |
sudo lvextend -l +100%FREE /dev/mapper/data-lvol0 | |
#Update the EXT4 partition sizes for the root disk after EBS resize | |
sudo growpart /dev/nvme0n1 1 | |
sudo resize2fs /dev/nvme0n1p1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment