Tuesday, March 10, 2009

Resizing a Amazon EBS Volume

I struggled to find the answer to resizing an existing Amazon Elastic Block Store Volume.

Here is how I resolved this

1. Created a snapshot of the existing volume (log into Amazons Console for this https://console.aws.amazon.com)

2. Create a new volume based on the snapshot

3. Attach this new volume to my Amazon Instance (after detaching the other volume)

4. SSH into my Amazon Instance

5. Enter the following, this checks the integrity of the disk 'e2fsck -f /dev/sdf'

6. Enter the following 'resize2fs /dev/sdf'

7. Mount the volume 'mount /dev/sdf /mnt/data-store'

No comments: