14

Once I have created an EBS of IOPS type and attached to an EC2 volume, is there a way to change its settings such as storage and IOPS? I am fine detaching it and making changes. Obviously I want to retain data.

enter image description here

I am looking for an answer preferably on the AWS Console but even a command line approach is welcome.

I am using Windows AMI.

Kabeer
  • 4,138
  • 7
  • 40
  • 62

3 Answers3

15

AWS recently announced Elastic Volumes, which make it possible to modify the volume type (SSD/HDD/PIOPS), volume size (GB), and provisioned IOPS of EBS volumes with no downtime or performance impact.

All EBS volumes have been converted into Elastic Volumes as of today, so this functionality is already available in your AWS account!

Simply right click the EBS volume -> Modify and enter a new IOPS value.

Elad Nava
  • 7,746
  • 2
  • 41
  • 61
14

You can't change the EBS size and IOPS once it's attached to EC2 and it's a running instance. You'll need to stop it to make any changes.

First, shutdown your instance.

In the snapshots menu option - select the volume you want to change and make a snapshot. Once the snapshot is created, you right click on it and select "Create Volume" then select your size and type.

On your old Volume select it, right click and select the Detach option. Then find the snapshot you created and attach it.

Then start your instance again.

ajtrichards
  • 29,723
  • 13
  • 94
  • 101
  • 6
    Somewhat correct, but there is no need to shutdown the instance. Just snapshot it, wait to complete, unmount/detach original volume, then reattach the new one/remount. – skrewler May 16 '14 at 22:52
  • 3
    What @skrewler said, with a note that you may need to run fsck or otherwise fix filesystem integrity if you leave the FS attached while making a snapshot. Filesystem integrity has yet to prove an issue for me. – dannyman Jun 03 '15 at 22:04
  • 2
    This is an outdated answer. You no longer need to stop/start or attach/detach. – snorberhuis Jan 26 '20 at 20:39
2

Yes, You can modify your EBS Volume without any downtime.

Go to volume via instance

Select volume then click right and change and choose modify.

Ankit Kumar Rajpoot
  • 5,188
  • 2
  • 38
  • 32