Created
December 29, 2022 09:59
-
-
Save khaliqgant/c6f623b2ed8a1dbe56b5880b489b39d4 to your computer and use it in GitHub Desktop.
[EC2 Resize Instance] Resize Root & Data Volume #ec2 #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
# mount temp | |
sudo mount -o size=10M,rw,nodev,nosuid -t tmpfs tmpfs /tmp | |
# Resize root volume, find correct name by running lsblk | |
sudo growpart /dev/nvme0n1 1 | |
sudo resize2fs /dev/root | |
# Resize data volume | |
sudo resize2fs /dev/nvme1n1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment