Increase EC2 Storage for Development

Expanding EC2 Instance Storage for Development Needs

Expanding EC2 Instance Storage for Development Needs

How to Increase EC2 Instance Storage for Better Development

Tasks

  • Identify Volume: Find the volume attached to the xfusion-ec2 instance.

  • Expand Volume: Increase the volume size from 8 GiB to 12 GiB.

  • Reflect Changes: Ensure the root (/) partition within the instance reflects the expanded size from 8 GiB to 12 GiB.

  • SSH Access: Use the key pair located at /root/xfusion-keypair.pem on the aws-client host to SSH into the EC2 instance.

Steps

  1. We already have Instances, xfusion-ec2.

  2. EC2 → Volumes → vol-044ea2f7bad002711 → Modify volume

  3. Modify vol-044ea2f7bad002711 → Modify

  4. Pem files stored at /root/xfusion-keypair.pem.

  5. Verify the Partition Size on the EC2 Instance

sudo growpart /dev/xvda 1
  1. Resize the Filesystem

     sudo xfs_growfs /
  2. Verify the Resized Filesystem

     df -h