Trying to save volume resize2fs EB

I have 200 GB EBS and am trying to increase the available space. I followed the instructions below: http://www.hellersoftware.com/2012/resize-ebs-volume-attached-to-amazon-web-services-ec2-instance/ and managed to create a snapshot and create a new EBS based on this instant snapshot.

Everything is smooth except when I do:

# resize2fs /dev/sdf

I get

 resize2fs 1.40.8 (13-Mar-2008) resize2fs: Bad magic number in super-block while trying to open /dev/sdf Couldn't find valid filesystem superblock. 

Not sure what is going on there, but my new volume still shows only 200 GB, when in fact it is 800 GB.

+20
amazon-ec2 diskspace disk-partitioning
Nov 13
source share
1 answer

OP said it uses the XFS file system. The resize2fs tool only works with ext2, ext3 and ext4.

There is the same tool available for the XFS filesytem file called xfs_growfs. Most likely, you will have to install it first.

 sudo yum install xfsprogs.x86_64 --assumeyes 

then mount your file system

 sudo mount -t xfs /dev/sdf /vol 

you can now expand the file system

 sudo xfs_growfs /vol 

df -h should now show more available space

Hope this helps :)

Tip: the ext4 file system is the recommended file system for EBS volumes (for the future)

+50
Nov 13
source share



All Articles