在centos8中使用 xfs_growfs 命令在线调整xfs格式文件系统大小出错:
[root
@localhost ~]# xfs_growfs /dev/mapper/ centos-root
xfs_growfs: /dev/mapper/ centos-root is not a mounted XFS filesystem
要采用挂载点:xfs_growfs /
成功在线调整xfs格式文件系统大小。
[root@localhost ~]# xfs_growfs /
meta-data=/dev/mapper/centos-root isize=256 agcount=4, agsize=3141632 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=12566528, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=6136, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 12566528 to 20428800