Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I have a ubuntu instance(CRON server) of volume size 50gb. I want to increase its size to 100gb+

Here are the steps I want to follow,

1) create a snapshot of the volume attached to CRON server.

2) create a volume with the newly created snapshot, by specifying the size you need. In my case 100gb.

3) detach the existing volume for cron server by running the command

ec2-detach-volume old_volume_id cron_instance_id sda1

4) attach the new volume (i.e. 100gb ones) to cronserver

ec2-attach-volume new_volume_id cron_instance_id sda1

please correct if am missing or not using a correct step.

1 Answer

0 votes
by (44.4k points)

Here is how to resize the Root Disk on a Running EBS boot EC2 instance.

Example:

# In case your Filesystem is either ext2, ext3, or ext4

$ sudo resize2fs /dev/sda1

# Or if you have XFS

$ sudo apt-get install -y xfsprogs

$ sudo xfs_growfs /

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer

Browse Categories

...