PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, May 15, 2022

[FIXED] Why AWS instance not showing the correct storage that is attached externally?

 May 15, 2022     amazon-ec2, amazon-web-services, filesystems, linux, ubuntu     No comments   

Issue

I have attached an external EBS volume of 650GB to my ubuntu instance with a root volume of 250GB. 650GB is attached to /xvdg-volume

the result of lsblk

But if I check the df -h command it is not displaying the entire volume. You can see that in the following image: /xvdg-volume is only 350GB

the result of df -h

Does anyone say why this is happening in my case?


Solution

After the volume has been extended, the EC2 instance and the system both need to be adjusted to adapt to the new size.

To do this use the resize2fs method to resize the changed partition.

In your case will be something like this:

sudo resize2fs /xvdg-volume

You can also extend the partition and file system size after you have already grown the volume on the AWS side by simply rebooting your instance. When the operating system comes back up, it will modify everything itself.

For more information check here: How to Resize EBS Volumes on AWS



Answered By - valdeci
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing