Friday, June 1, 2012

Increase Disk Space on EC2

This is with the Amazon Linux.
  1. Stop the instance.
  2. Detach the volume.
  3. Make a snapshot.
  4. Create a new volume with the snapshot of the desired size (/dev/sda1).
  5. Attach the new volume to the server.
  6. Re-associate the IP address.
  7. Login to server.
  8. Run this command: sudo resize2fs -p /dev/sda1 

No comments:

Post a Comment