-1

I am using AWS EC2 instance and recently I tried extending my secondary volume and then connecting it back to my ec2 instance. I scaled it to 200 GB from 8GB. Though I have confirmed from the dashboard that its 200GB but I don't know why df . shows that my volume size is only 8GB?

df . shows : enter image description here

lsblk shows enter image description here

whom should I trust ?

Which one is showing the actual size ?

msw
  • 41,609
  • 8
  • 82
  • 107
Pulkit Pahwa
  • 1,322
  • 10
  • 8

1 Answers1

2

The volume is 200 GB, but the filesystem is still only 8 GB.

You need to resize the filesystem bigger to occupy the entire volume.

Use the resizefs command to extend the filesystem to the full volume size.

Matt Houser
  • 31,064
  • 5
  • 60
  • 79
  • Thanks it worked. The command I used to solve is ```sudo resize2fs /dev/xvdf1``` since my file system was ext4. This command can be used for a Linux ext2, ext3, or ext4 file system. – Pulkit Pahwa Feb 25 '16 at 13:46