Need help?

Our experts have had an average response time of 12.14 minutes in September 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Expanding EBS root volume: Amazon EC2 Instance

by | Sep 10, 2021

Wondering how to expand EBS root volume? We can help you with this!

As a part of our AWS Support Services, we often receive similar requests from our AWS customers.

Today, let’s see the steps followed by our Support Techs to help our customers for expanding EBS root volume.


 

Expanding EBS root volume

 
By using the Amazon EBS Elastic Volumes feature, we can expand the EBS root volume of EC2 Linux running on current generation instance without detaching and reattaching the volume.

For expanding the EBS root volume of EC2 Linux in the case of previous generation instances, we must detach and then reattach the volume.

Note the following points before modifying EBS volume:

  1. To avoid failure during modification we need to review the requirements when modifying volumes.

2. To make sure that the modified volume provides the performance characteristics required, we need to review the Amazon EBS volume performance on Linux instances.

3. Also we need to review requesting modifications to our EBS volumes to identify and address any potential issues before expanding the volume.

For example, volumes attached to current generation instances before November 3, 2016 require that we detach and reattach the volume to initialize the Amazon EBS Elastic Volumes feature.

To find the volume’s creation date, from the Amazon EC2 console, select Volumes. The Created field lists the volume’s creation date.

To see the volume’s most recent attachment time, we can use the following command:


aws ec2 describe-volumes --region us-east-1 --query "Volumes[?Attachments[?AttachTime<='2016-11-01']].{ID:VolumeId}" --output text

The output is a text list of IDs for volumes:


vol-0EXAMPLE
vol-5EXAMPLE
vol-4EXAMPLE
vol-bEXAMPLE
vol-0db1c57561EXAMPLE
vol-06f90d0c16EXAMPLE

 

How to modify the EBS Volume

 
If we can’t use Amazon EBS Elastic Volumes, then expand the EBS root volume of the EC2 Linux instances by completing the following steps.
 

Request modification to EBS volumes

 
Let’s see the steps to expand the EBS root volume of our EC2 Linux instance.

We can dynamically increase the size, increase or decrease the performance, and change the volume type of our Amazon EBS volumes without detaching them  Elastic Volumes.

Use the following process when modifying a volume:

1. It is always better to create a snapshot of the volume in case we need to roll back the changes before modifying a volume that contains valuable data.

2. Then request the volume modification.

3. Then we should monitor the progress of the volume modification.

4. Then extend the volume’s file system to take advantage of the increased storage capacity if the size of the volume was modified.
 

Extending a Linux file system after resizing a volume

 
We can use the following methods described after expanding the EBS root volume of EC2 Linux instance.

The process for extending a file system on Linux is as follows:

  1. Our EBS volume might have a partition that contains the file system and data. Increasing the size of a volume does not increase the size of the partition.  We should check whether the volume has a partition that must be extended to the new size of the volume before extending the file system on a resized volume.

2. Then use a file system-specific command to resize each file system to the new volume capacity.

[Need help with more AWS queries? We’d be happy to assist] 
 

Conclusion

 
To conclude, today we discussed the steps followed by our Support Engineers to help our customers for expanding EBS root volume.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF