Enlarge an ext3 Amazon EBS volume
Have an EBS volume that’s filling up? Follow these steps to enlarge it:
At the EC2 Web Console
- Unmount the volume.
- Take a snapshot of the volume.
- Create a new volume from the snapshot (at the new, bigger size)
- Detach the old volume
- Attach the new, bigger volume.
In a shell of the instance
- fdisk /dev/sdx (then type: d, n, p, 1, <enter>, <enter>, w)
- ec2fsck -f /dev/sdx
- resize2fs -p /dev/sdx
- fsck -f -y dev/sdx
- mount /vol
That’s all! Original source and details at:
http://www.capsunlock.net/2009/06/enlarge-amazon-ebs-volume.html
and
http://developer.amazonwebservices.com/connect/thread.jspa?messageID=112259
