试图resize2fs中EB卷发生故障 [英] Trying to resize2fs EB volume fails
问题描述
我有一个200GB的EBS卷,我试图以增加可用空间。我也跟着上的说明:<一href="http://www.hellersoftware.com/2012/resize-ebs-volume-attached-to-amazon-web-services-ec2-instance/">http://www.hellersoftware.com/2012/resize-ebs-volume-attached-to-amazon-web-services-ec2-instance/和管理基于该快照创建快照,并创建一个新的EBS。
I have a 200GB EBS volume and am trying to increase the space available. I followed the instructions on: 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 that snapshot.
一切都是桃色的,除非我做的:
Everything is peachy, except when I do:
#resize2fs中的/ dev / SDF
我收到
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.
不知道这是怎么回事那里,但我的新卷仍然只显示200GB,而事实上,它是一个800GB容量。
Not sure what's going on there, but my new volume still only shows 200GB, when in fact it's an 800GB volume.
推荐答案
该任择议定书说,他用的是XFS文件系统。
该工具 resize2fs中
适用于ext2,ext3和唯一的EXT4。
The OP stated that he was using the XFS filesystem.
The tool resize2fs
works with ext2, ext3 and ext4 only.
有可用于XFS filesytem称为xfs_growfs一个类似的工具。 你最有可能需要先安装它
There's a similar tool available for the XFS filesytem called xfs_growfs. You'll most likely have to install it first
sudo yum install xfsprogs.x86_64 --assumeyes
然后挂载文件系统
then mount your filesystem
sudo mount -t xfs /dev/sdf /vol
现在你可以扩展文件系统
now you can extend the filesystem
sudo xfs_growfs /vol
DF -h
现在应该表现出更多的可用空间
df -h
should now show more available space
我希望这有助于:)
提示:EXT4文件系统是EBS卷的推荐文件系统(未来的)
Tip: ext4 filesystem is the recommended filesystem for EBS volumes ( for the future )
这篇关于试图resize2fs中EB卷发生故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!