Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

AWS Tutorials: EBS – Steps to Increase the Disk Size on a Running EC2 Instance:

you can increase the disk size of an Amazon EC2 instance while it is running. Amazon allows you to modify the size of an Elastic Block Store (EBS) volume, which is the disk attached to your EC2 instance. Here’s how you can do it:

Steps to Increase the Disk Size on a Running EC2 Instance:

1. Modify the EBS Volume in the AWS Console

  1. Go to the EC2 Dashboard in the AWS Management Console.
  2. Click on Volumes under the “Elastic Block Store” section on the left-hand menu.
  3. Find the EBS volume attached to your EC2 instance.
  4. Select the volume and click on the Actions dropdown menu.
  5. Choose Modify Volume.
  6. In the “Size” field, change the disk size from 50 GB to 100 GB.
  7. Click Modify to save the changes.

The disk size will be increased, but the additional space will not be available to the EC2 instance until you resize the partition on the operating system.

2. Resize the Partition on the EC2 Instance

After modifying the volume size, you need to extend the partition on your EC2 instance so that it can use the newly added space. The steps vary depending on the operating system of your instance (Linux or Windows).

For Linux Instances:

  1. Connect to the EC2 instance via SSH.
  2. Check the current disk size to confirm that the volume has been extended:bash

lsblk
sudo resize2fs /dev/xvda1
sudo xfs_growfs /
df -h

For Windows Instances:

  1. Connect to the EC2 instance via Remote Desktop Protocol (RDP).
  2. Go to Disk Management:
    • Right-click the Start button and select Disk Management.
  3. Find the EBS volume (usually C:) and notice the unallocated space.
  4. Right-click on the partition and select Extend Volume.
  5. Follow the steps in the wizard to extend the volume.

Things to Note:

  • The process does not cause downtime, and the instance remains running.
  • Make sure to create a snapshot of the volume before modifying it to ensure you have a backup in case of any issues.
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x