Resizing Root AWS EBS Volumes to Increase Performance

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

Welcome to this live AWS learning activity where you will be changing the size of root EBS volumes on EC2 instances.

This activity provides hands-on experience resizing volumes in:

1) Standalone instances (a bastion host)
2) Auto scaling groups (two web server instances)

There are different reasons for a system administrator to have to resize a root volume. Needing larger storage capacity is the most obvious, but resizing is also necessary to increase the base IOPS of a volume. In this case, the volume may not be running low on storage space.

Good luck and enjoy the Learning Activity!

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an EBS Snapshot

Create an EBS snapshot from one of the existing EC2 instance volumes.

  • Find the root volume of the bastion host
  • Check the box beside it on the "Volumes" page
  • Click "Actions"
  • Choose "Create Snapshot"
  • Add a description, click "Create Snapshot"
  • Click "Close"
Create a new (larger) EBS Volume

Using the snapshot you just created, provision a new EBS volume from the snapshot that provides a higher amount of IOPS.

  • Check the box beside your new Snapshot
  • Click "Actions"
  • Choose "Create Volume"
  • Change size to 40 GB
  • Click "Create Volume"
  • Click "Close"
Attach the (larger) EBS volume to an EC2 instance

Replace an existing (root) EBS volume that is attached to an EC2 instance with the new (larger) EBS volume that you just created. The new volume needs to replace the old volume as the root volume.

  • Stop the Bastion Host
  • On the "Volumes" page, check the box beside the 8GB volume attached to the Bastion Host
  • Click "Actions", Choose "Detach Volume"
  • Check the box next to the new larger volume
  • Click "Actions", Choose "Attach Volume"
  • Choose the stopped Bastion Host for "instance"
  • "Device should be "/dev/xvda"
  • Click "Attach"
Create a new Auto-scaling Launch Configuration and Update the existing Auto-scaling Group

Create a new auto-scaling launch configuration that uses the new (larger) EBS volume for created instances. Then update the existing Auto-scaling group to use the new launch configuration.

  • Copy the user-data from the existing Launch Configuration
  • Click "Create a Launch Configuration"
  • Click "Select" beside "Amazon Linux" to select the AMI
  • Leave t2.micro chosen, click "Next: Configure details"
  • Add a Name
  • Click "Advanced Details", copy in the user-data from the orginal Launch Configuration
  • Change "IP Address Type" to "Do not assign…"
  • Click "Next:Add storage"
  • Change the volume size to 40GB, Click "Next:Configure Security Group"
  • Choose the existing "WebServerSecurityGroup"
  • Click "Review", Click "Create launch configuration"
  • Choose to "Proceed without a key pair"
  • Click "Close"
  • Navigate to the Auto Scaling Groups Page
  • Edit the existing AutoScaling Group to use the new launch configuration
  • Terminate the WordPress instances one at a time to update the volume size

Additional Resources

Please go ahead and log in to the live environment with the cloud_user credentials provided.

Make sure you are using us-east-1 as your region throughout the learning activity.

NOTE: The bastion password is output on the lab page.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?