> ## Documentation Index
> Fetch the complete documentation index at: https://cloud-architect.ipoint-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating EBS volumes from gp2 to gp3

> Hands-on lab · 45m

Launch this lab in the IP Lab Portal, then follow the steps below in the AWS console.

<a className="ip-lab-portal-btn" href="https://labs.intellectualpoint.com/labs/migrating-ebs-volumes-from-gp2-to-gp3" target="_blank" rel="noreferrer">
  Open IP Lab Portal
</a>

## Overview

### Lab Details

1. This lab walks you through the steps to migrate EBS volumes used by EC2 instances from gp2 to gp3.
2. Duration:  **60 minutes**
3. AWS Region: **US East (N. Virginia) us-east-1**

### Introduction

#### What is EC2?

* AWS defines it as Elastic Compute Cloud.
* It’s a virtual environment where “you rent” to have your environment created, without purchasing.
* Amazon refers to these virtual machines as Instances.
* Preconfigured templates can be used to launch instances. These templates are referred to as images. Amazon provides these images in the form of AMIs (Amazon Machine Images).
* Allows you to install custom applications and services.
* Scaling of infrastructure i.e., up or down is easy based on the demand you face.
* AWS provides multiple configurations of CPU, memory, storage etc., through which you can pick the flavor that's required for your environment.
* No limitation on storage. You can pick the storage based on the type of the instance that you are working on.
* Temporary storage volumes are provided, which are called Instance Store Volumes.  Data stored in this gets deleted once the instance is terminated.
* Persistent storage volumes are available and are referred to as EBS (Elastic Block Store) volumes.

#### What Is EBS?

* Amazon Elastic Block Store (EBS) is a high-performance block storage solution designed to be used with EC2 instances.
* It works by providing the user with access to several little network-attached blocks, each of which is shown as a simple volume.
* EBS volumes are very easy to use, whether you need to add them to or remove them from the EC2 instance, modify their size, or change their type.
* With only a couple of clicks, you can create an EBS snapshot, effectively making a backup of your entire volume. This can later be used to recreate the data if necessary.
* The block storage offered by EBS volumes can cover any workload, from the most demanding mission-critical applications requiring high throughput to large sequential jobs like data warehousing and log processing.
* If the provided performance is not enough, you can also combine multiple volumes on a single instance to achieve even better results.
* EBS provides a very secure data storage solution, since it was built with compliance in mind. Each volume allows for in transit, at rest, and backup encryption.
* EBS volumes are also very cost-effective.

#### General Purpose SSD (gp2) Volumes

* The most popular type of volume is General Purpose SSD (gp2) volumes.
* They were created to be a storage solution that is affordable for a wide range of workloads.
* Gp2 volumes include system volumes, development and testing environments, and a variety of low-latency applications.
* They are available in capacities ranging from 1 GB to 16 GB and have extremely low latency—down to single-digit milliseconds.
* They have a good IOPS (ranging from 100 to 16000 IOPS) and a maximum throughput of 250MiB/s.
* To get even better performance on a single instance, you can create a RAID with several EBS volume types.

#### General Purpose SSD (gp3) Volumes

* The newest version of general-purpose SSD-based EBS volumes, known as Amazon EBS gp3 volumes, allows users to provide performance independent of storage capacity and offers up to 20% cheaper price per GB than gp2 volumes.
* Customers can scale throughput and IOPS (input/output operations per second) using gp3 volumes without adding more block storage space.
* Customers only pay for the storage they really use.

### Architecture Diagram

<img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/001.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=37195e33eedc3cbe509e5a147aa93e22" alt="" width="1868" height="1232" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/001.png" />

### Task Details

1. Sign in to AWS Management Console.
2. Launching an EC2 Instance.
3. Migrating the EBS Volumes from gp2 to gp3.

### Launching Lab Environment

1. To launch the lab environment, Click on the **Start Lab** button.
2. Please wait until the cloud environment is provisioned. It will take less than a minute to provision.
3. Once the Lab is started, you will be provided with **IAM user name**, **Password**, **Access** **Key**, and **Secret** **Access** **Key**.

## Lab guide

#### Task 1: Sign in to AWS Management Console

1. Click on the **Open Console** button, and you will get redirected to AWS Console in a new browser tab.
2. On the AWS sign-in page,

   * Leave the Account ID as default. Never edit/remove the 12 digit Account ID present in the AWS Console. otherwise, you cannot proceed with the lab.
   * Now copy your **User Name** and **Password** in the Lab Console to the **IAM Username and Password** in AWS Console and click on the **Sign in** button.
3. Once Signed In to the AWS Management Console, Make the default AWS Region as **US East (N. Virginia) us-east-1.**

#### Task 2: Launching an EC2 Instance

1. Make sure you are in the US East **(N. Virginia) us-east-1** Region.

2. Navigate to EC2 by clicking on **Services** the  menu in the top, then click on **Ec2** in the **Compute** section.

3. Navigate to **Instances** on the left panel and click on **Launch Instances** Button.

4. Name : Enter ***MyEC2Server***

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/002.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=e6cdc7972b439f703ea25623a3246081" alt="" width="791" height="122" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/002.png" />

5. **For Amazon Machine Image (AMI)**: Choose **Amazon Linux 2023 kernel-6.1 AMI**.

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/003.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=5471d9fbd42c307b8d74db41e76fa9c7" alt="" width="1186" height="646" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/003.png" />

6. **For Instance Type**: select *t2.micro*

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/004.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=13ed824a0bf71c3dc71402d498ba83d5" alt="" width="925" height="219" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/004.png" />

7. **For Key pair**: Select **Create a new key pair** Button

   * Key pair name: **WhizKey**
   * Key pair type: **RSA**
   * Private key file format: **.pem**

8. Select **Create key pair** Button.

9. In Network Settings Click on **Edit** Button:

   * Auto-assign public IP: **Enable**
   * Select **Create new Security group**
   * Security group name : Enter **MyEC2Server\_SG**
   * Description : Enter **Security Group to allow traffic to EC2.**

     **In** Configure storage, choose **gp2.**

     <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/005.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=3a4b0e9b07f927fe4dd75016b9b68313" alt="" width="699" height="210" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/005.png" />

10. Keep Rest thing Default and Click on **Launch Instance** Button.

11. Select **View all Instances** to View Instance you Created

12. **Launch Status:** Your instance is now launching, Click on the instance ID and wait for complete initialization of the instance till status changes to **Running**.

    <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/006.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=6f13a6c30db1771db7ef97dc4385d424" alt="" width="780" height="115" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/006.png" />

13. Note down the Instance ID of the EC2 instance. A sample is shown in the screenshot below

    <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/007.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=58000e157c95ad3c2498a484ba75579a" alt="" width="777" height="132" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/007.png" />

#### Task 3: Migrating the EBS Volumes from gp2 to gp3

1. Make sure you are in the US East **(N.Virginia) us-east-1**  Region.

2. Navigate to EC2 by clicking on the **Services** menu in the top, then click on the **Volumes** under **Elastic Block Store** section on the left navigation panel.

3. In the **Search Box**, paste the **Instance ID** of your EC2 Instance.

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/008.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=8b54e22c4b1b9052e1ca2ecb0a7c4fee" alt="" width="778" height="91" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/008.png" />

4. Select the **Volume** associated with your EC2 Instance.

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/009.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=1d1b9065f19012219a78e7a70e81ee2e" alt="" width="783" height="178" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/009.png" />

5. After selecting **Volume**, expand the **Actions** button and click on **Modify Volume**.

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/010.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=10c51cf3b55fccd1dcfc71e38036176d" alt="" width="252" height="347" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/010.png" />

6. In the **Modify Volume**, expand **Volume type**.

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/011.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=f439821b1aa3bed48b436dc91c3f01d1" alt="" width="967" height="336" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/011.png" />

7. Click on **General Purpose SSD (gp3).**

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/012.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=566b9aebc0b4050793efed6940facf91" alt="" width="912" height="401" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/012.png" />

8. Keep Rest thing Default and Click on **Modify** Button.

9. You will get a prompt to Modify the Volume, Click on **Modify** Button.

   <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/013.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=ab1b3bbc77650c22a472838da464c383" alt="" width="780" height="521" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/013.png" />

10. It will take some time for the **Volume** to be modified.

    <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/014.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=b46e8a9de7a46db8f38b767845ba9755" alt="" width="291" height="159" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/014.png" />

11. After some time, the **Volume State** status will change to **inuse** and **type** will also be changed to **gp3** from **gp2**.

    <img src="https://mintcdn.com/ip-cloud-architect-pathway/kxmU94ELBuk4ILTF/images/labs/migrating-ebs-volumes-from-gp2-to-gp3/015.png?fit=max&auto=format&n=kxmU94ELBuk4ILTF&q=85&s=e4a23f31f1dedf6a0cc5dbd7186a08dd" alt="" width="968" height="162" data-path="images/labs/migrating-ebs-volumes-from-gp2-to-gp3/015.png" />

### Completion and Conclusion

1. You have successfully logged in to AWS Console.
2. You have successfully created an EC2 Instance.
3. You have successfully migrated volumes from gp2 to gp3.
4. You have successfully validated the lab.

### End Lab

1. Sign out from the AWS Management Console.
2. Click on **End Lab** button from IP Lab Portal Labs console and wait till the process gets completed.

## What gets checked

When you press **Check my work**, the platform verifies each of these:

* **Launch an EC2 Instance** — Check whether an EC2 Instance is launched or not.
* **Launch EC2 AMI type Amazon Linux** — Check whether the EC2 instance is launched using an Amazon AMI.
* **Create Items in DynamoDB Table** — Check whether items in the DynamoDB table are created or not.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.