Increase size and type of AWS EBS volume

 

I was offline for quite a while because shifting from one continent to another. But now regular posts should be rolling in again.

I am running a couple of instances in pre-production requirement mode and changed from a standard EBS volume to a IOPS volume for the DB instance or the volume with the DB files. I could not identify a reasonable increase of performance, maybe a misconception that IOPS volumes will boost performance, rather provide a defined and consistent random access I/O throughput. I must admit I did not use a value higher than 1000.

Billing IOPS

Billing IOPS

Some recommended reading:

I decided to return to a standard ESB volume for my database as its performance did not benefit from the IOPS type (the DB is not overly busy too).
You cant change type and size of an EBS volume on the fly.

Here the steps to achieve the same:

  • The easiest approach is to do shutdown the instance, otherwise you need to mount and unmount the volumes in the instance itself during the process (which is necessary for spot instances!)
  • Select the IOPS (or any other) volume you want to change and make a snapshot.Create Snapshot

    Create Snapshot

    I recommend using a descriptive name, otherwise you just get another entry in a long list of snapshots by your AMI’s.

    Snapshots

    Snapshots

    The snapshot is not instant. I had to wait 25 min for a new snapshot of a 100GB volume, subsequent snapshots should be faster.

     

    Snapshot Progress

    Snapshot Progress

  • Once the snapshot is done create a volume from the snapshot 

    Create Volume

    Create Volume

  • Select type and size 

    Type and Size

    Type and Size

  • Detach the old volume and attach the newly created volume 

    Detach Volume

    Detach Volume

  • Start up the instance and you are almost done
    If you change the size your OS (Ubuntu) will not see the different sized volume.
    Use the resize2fs command and check with df -h !
Advertisements
Leave a comment

Leave your opinion

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: