This works for instances running Amazon Linux:
1. Add space in the AWS console
- Go to EC2, and select your instance.
- Scroll to the horizontal tab bar, and click storage.
- Click on the volume ID.
- Select the volume, and under actions, click "Modify Volume". If this is grayed out, you have to wait.
- Enter the new disk size and click modify.
2. Grow the partition
- Use
sudo lsblk
to determine the partition you want to grow. - Use
sudo growpart /dev/xvda 1
to grow the partition, changing xvda to the name of the partition you just determined.
Top comments (0)