Skip to main content

Command Palette

Search for a command to run...

Expanding EC2 Instance Storage for Development Needs

How to Increase EC2 Instance Storage for Better Development

Updated
1 min read
Expanding EC2 Instance Storage for Development Needs
A

Infosec Poet and CAP-certified DevOps/SecOps Engineer, passionate about security, creativity, and continuous learning.

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
    

Cloud Platforms

Part 10 of 48

This series covers cloud platforms (AWS, Azure, GCP, OCI), including certifications, labs, issues, solutions, and billing. We'll also explore on-premises solutions and hybrid cloud environments.

Up next

Setting Up an EC2 Instance with an Elastic IP for Application Hosting

How to Launch an EC2 Instance and Use an Elastic IP for Hosting Applications