Walter shows you how to
change a Magnetic volume
to a General Purpose SSD

walter_ebs_magnetic

How do I change my Amazon Elastic Block Store (Amazon EBS) Magnetic (standard) volume to a General Purpose SSD (gp2) for my root volume?

Performance issues on some Amazon Elastic Compute Cloud (Amazon EC2) instances might be due to a previous generation EBS Magnetic root volume. A Magnetic volume delivers a maximum of 200 IOPS. We suggest you change the Magnetic volume of your Amazon Linux instance to the General Purpose SSD (gp2) volume as that volume-type delivers single-digit millisecond latencies with the ability to burst to 3,000 (three thousand) IOPS for extended periods of time.

Confirm that your instance has a Magnetic volume

  1. From the Amazon EC2 console, under Resources, choose Running Instances.
  2. Select the instance, and then choose the Description tab.
  3. Note the Availability zone where the instance is running.
  4. From the Root device, select the root device name. Note the Root device path, either "/dev/sda1" or "/dev/xvda". You'll need the path when you replace the Magnetic volume in a later step.
  5. From the Block Device, choose the EBS ID.
  6. From the Volumes description page, a Volume Type of standard confirms that your instance has a Magnetic volume.

Create a snapshot of the Magnetic volume

  1. From the left navigation pane, choose Instances.
  2. Select the instance, choose Actions, choose Instance State, choose Stop, and then choose Yes, Stop.
  3. When Instance State changes to stopped, choose the root device on the Description tab.
  4. From Root device, choose the root device name.
  5. From Block Device, choose the EBS ID.
  6. Choose Actions, and then choose Create Snapshot.
  7. Type a Name, such as "NewVolumeGeneralPurpose", and a Description, such as "New Volume", and then choose Create.
  8. On Create Snapshot, choose the snapshot ID.

Create a new General Purpose SSD (gp2) volume

  1. On the Snapshot page, when the Status has changed to completed, choose Actions, and then Create Volume.
  2. On the Create Volume page, for Volume Type choose General Purpose SSD (GP2), and then choose the same Availability Zone as the Magnetic volume.You can use a larger Size (GiB) if you want to expand your volume size. Note that depending on the OS configuration, it might be necessary to extend the Linux file system. For more information, see Extending a Linux File System after Resizing the Volume.
  3. For Tags, choose Create additional tags. For Key, type "Name", and for Value, type "GeneralPurposeSSD".
  4. Choose Create Volume, and then from the Create Volume page, choose the Volume Id.

Replace the magnetic volume with the gp2 volume

  1. From the Volumes page, when the new gp2 volume status changes to available, you can replace the Magnetic volume with the gp2 volume.
  2. Choose the search to list all your volumes. Choose the Magnetic volume, choose Actions, choose Detach Volume, and then choose Yes, Detach.
  3. When the State changes from in-use to available you can attach the gp2 volume.
  4. Select the new GeneralPurposeSSD volume, choose Actions, choose Attach Volume, and select the Instance Id name.
  5. For Device, type the Root device path, either "/dev/sda1" or "/dev/xvda", and then choose Attach.
  6. Choose the instance Id from under Attachment Information for the new volume.

Start the instance

  1. From the Instances page, choose Actions, choose Instance State, choose Start, and then choose Yes, Start.
  2. Remove the Magnetic volume.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-06-28