Resizing EBS Volume

joseph misiti
Computer Science,  Math, and Statistics
1 min readApr 17, 2013

If you need to re-size (ubuntu 11.04) an ebs volume mounted at lets say /db, you can do so using the following steps:

1. Shutdown all services accessing /db

2. Unmount the volume (umount /db)

3. Take a snapshot of the volume using the EC2 management console

4. Create a new volume from this snapshot with more space

5. Attach this volume to your running instance

6. Use fdisk -l to find where the device is mounted (/dev/xvdf)

7. Run (e2fsck -f /dev/xvdf)

8. Run (sudo resize2fs /dev/xvdf)

9. Remount and you're good to go (mount /db)

--

--