gpt4 book ai didi

linux - XFS 增长不工作

转载 作者:IT王子 更新时间:2023-10-29 01:16:07 24 4
gpt4 key购买 nike

所以我有以下设置:

[ec2-user@ip-172-31-9-177 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 80G 0 disk
├─xvda1 202:1 0 6G 0 part /
└─xvda2 202:2 0 4G 0 part /data

我找到的所有教程都说要使用 xfs_growfs <mountpoint>但这没有效果,-d 也没有效果选项:

[ec2-user@ip-172-31-9-177 ~]$ sudo xfs_growfs -d /
meta-data=/dev/xvda1 isize=256 agcount=4, agsize=393216 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0
data = bsize=4096 blocks=1572864, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data size unchanged, skipping

我应该补充一点,我正在使用:

[ec2-user@ip-172-31-9-177 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.0 (Maipo)
[ec2-user@ip-172-31-9-177 ~]$ xfs_info -V
xfs_info version 3.2.0-alpha2
[ec2-user@ip-172-31-9-177 ~]$ xfs_growfs -V
xfs_growfs version 3.2.0-alpha2

最佳答案

在运行 xfs_growfs 之前,您必须调整文件系统所在分区的大小。

试一试:

sudo growpart /dev/xvda 1

根据 https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

关于linux - XFS 增长不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25262518/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com