How to Remediate Underutilized Amazon EBS Volumes in Stratusphere™

Learn how to remediate underutilized AWS EBS volumes with Stratusphere™. Discover actionable insights and strategies to optimize your cloud storage!

Need additional support?

Subscribe

How to Remediate Underutilized Amazon EBS Volumes | Stratusphere™
9:10

Amazon Elastic Block Store (EBS) is a managed service that allows you to provision cloud block storage volumes and attach them to your Amazon EC2 instances, over the network. EBS provides a range of performance and cost tiers, enabling you to select the appropriate option for your workloads. 

In addition, EBS integrates directly with the AWS Key Management Service (KMS) to protect your data with encryption. You can use an encryption key managed by EBS, or provision your own, separate encryption key in your AWS account.

To monitor EBS volume performance, EBS emits metrics into the Amazon CloudWatch service. You can query these metrics on-demand or build CloudWatch dashboards for easy visualization of many different volumes. 

For disaster recovery, EBS allows you to take volume snapshots and copy them to different AWS regions. Once EBS snapshots have been copied to other regions, you can easily restore these snapshots to new volumes attached to EC2 instances. While copying snapshots between regions is useful, you can even share EBS snapshots with other AWS accounts. 

Sharing EBS snapshots is helpful in case you want to share data with a specific external customer, or copy data from a development account into a test account, for example. Snapshots can optionally be shared publicly from your AWS account, in case you want to share a dataset with the broader software community, as a block storage volume.

One of the other powerful features of Amazon EBS volumes is the ability to change the size, performance, and cost tier on-demand. This is also known as “scaling” a block storage volume up or down. This operation requires zero downtime, making it easy to provision as much or as little performance as you need, when you need it. General purpose performance tiers include GP2 and GP3, however applications requiring high I/O can take advantage of higher IOPS and throughput, using IO1 or IO2 tiers.

There are lower performance tiers available, at lower price points, that leverage traditional spindle disks, instead of Solid State Drives (SSD). These tiers include the ST1 (Throughput Optimized) and SC1 (Cold HDD) storage tiers. Both of these tiers are not usable as operating system boot volumes for your EC2 instances, however.

Identify Under-Utilized EBS Volumes

Stratusphere™ is a Software-as-a-Service (SaaS) tool from StratusGrid that helps you identify cost optimization opportunities across your entire AWS organization.

Under the Stratusphere™ Findings section, you can narrow down the specific, actionable cost optimization opportunities. If you apply the Service filter to Amazon Elastic Compute Cloud, that will include the under-utilized EBS volume findings, along with other EC2-related findings.

The definition of an under-utilized EBS volume, according to the AWS Trusted Advisor check reference, is when it’s “unattached or had less than 1 IOPS per day for the past 7 days.”

Stratuspheres Findings Dashboard

Risks & Other Considerations

Before you remediate an under-utilized EBS volume, it’s important to note some of the risks associated with this activity.

  • Risk: Deleting an EBS volume will result in the irrevocable loss of all data on that volume.
    • Resolution: Ensure that the EBS volume is not still needed for data archival purposes.
    • Consideration: If you are unsure or the data is still needed for archival purposes, it is much cheaper to create a snapshot and then delete the volume than to leave the volume unattached. Creating snapshots and deleting all under-utilized volumes can be a good low risk starting point.

Remediation

Now that you’ve identified the cost optimization findings with Stratusphere™, it’s time to take action to remediate them. There are a couple methods of remediating under-utilized EBS storage volumes. You can perform these operations manually, through the AWS Management Console, or you can use any of the supported AWS Software Development Kits (SDK) to automate these actions at scale.

Delete an EBS Volume

Deleting an EBS volume is one of the easiest ways to remediate a low-utilization volume. To delete an EBS volume, follow these steps.

  1. Login to the AWS Management Console
  2. Select the AWS region, where your volume resides
  3. Navigate to the Amazon EC2 service console
  4. Select Elastic Block Store ➡️ Volumes option
  5. Right-click the target volume & select Delete Volume
  6. Click the Delete button

Modify an EBS Volume

Instead of deleting an EBS volume, you can change the performance and cost tier of the volume. These modifications are only allowed once every 6 hours. For boot volumes, you can select the magnetic (standard) option, or for data (non-boot) volumes, you could utilize the low-cost Cold HDD (sc1) tier.

  1. Login to the AWS Management Console
  2. Select the AWS region, where your volume resides
  3. Navigate to the Amazon EC2 service console
  4. Select Elastic Block Store ➡️ Volumes option
  5. Right-click the target volume & select Modify Volume
  6. Update the Volume Type field, and others as desired
  7. Click the Modify button

AWS EC2 Modifying Volume

Automated Remediation

Automating the deletion of under-utilized EBS volumes makes sense, especially when operating cloud environments at large scale. This could include deployment of hundreds or thousands of EBS volumes, handling volumes across different AWS regions, and across many different AWS accounts. Some organizations have hundreds of AWS accounts, divided up across different application teams.

You can access the AWS CLI or AWS PowerShell modules by installing them on your local development workstation, or using the AWS CloudShell environment from the AWS Management Console.

AWS CLI

You can use the AWS CLI tool to delete under-utilized EBS volumes. The AWS CLI is cross-platform, with support for Linux, MacOS, and Windows. The EBS management commands are under the EC2 sub-command context.

# List the EBS volumes in a specific AWS region
aws ec2 list-volume --region us-west-1 --no-cli-pager

# Delete an EBS volume, with the specified volume ID
aws ec2 delete-volume --volume-id vol-123456 --region us-west-1

AWS PowerShell Commands

You can use the AWS Tools for PowerShell on MacOS, Linux, or Windows, to automate deletion and modification of EBS volumes. This capability is available in the EC2 service module for PowerShell. It’s easy to install the module and run the necessary commands.

# Install the AWS EC2 module
Install-Module -Name AWS.Tools.EC2 -Scope CurrentUser -Force

# List the volumes in the current region
Get-EC2Volume -Region us-west-1

# Remove the EBS volume, with the specified volume ID
Remove-EC2Volume -VolumeId vol-123456 -Region us-west-1

 

Potential Errors

  • Error: The volume ID 'asdf' is malformed
    • Resolution: Ensure that you specify a valid EBS volume ID when you attempt to delete an EC2 volume, otherwise you may receive this error message. EBS volumes have a standard “vol” prefix.
  • Error: The volume 'vol-00000123' does not exist.
    • Resolution: You might receive this error message if the EBS volume doesn't exist in the AWS region you specified. Make sure that you specify the region parameter for the region where the EBS volume actually exists. Also, make sure that you are authenticated to the correct AWS account that contains the EBS volume.
  • Error: Volume vol-0f5f62b621cbd2113 is currently attached to {i-05c258858230dc57f}
    • Resolution: You will receive this message if your EBS volume is currently attached to an Amazon EC2 instance. EBS volumes that are attached cannot be deleted. To resolve this, first detach the EBS volume from the EC2 instance, and then try deleting it again.
  • Error: You've reached the maximum modification rate per volume limit. Wait at least 6 hours between modifications per EBS volume.
    • Resolution: This error will appear if you attempt to modify an EBS volume more than once, during a six-hour period. EBS volume modifications can only be performed once every six hours. Simply wait several hours until the volume modification capability is available again.

Elevate Your EBS Performance with Stratusphere™

Removing under-utilized Amazon EBS volumes from your AWS accounts is an easy way to reduce your cloud spend. Deleting detached EBS volumes is straightforward, or you can opt to modify the volume configuration to a lower cost tier. These alterations can be automated through the use of AWS REST APIs, via the supported AWS SDKs. Stratusphere™ helps you identify these cost optimization opportunities across your entire organization.

Don't let underutilized EBS volumes drain your resources and budget. Contact us now to discover how Stratusphere™ can transform your EBS volume management.

Here are some additional resources to reference as you remediate these cost findings.

BONUS: Download Your FinOps Guide to Effective Cloud Cost Optimization Here ⤵️

FinOps-Guide-Downloadable (2)

Similar posts