[root@localhost ~]# resize2fs /dev/sda3
resize2fs 1.45.6 (20-Mar-2020)
resize2fs: Bad magic number in super-block while trying to open /dev/sda3
Couldn't find valid filesystem superblock.
如果是xfs格式的文件扩充需要使用 xfs_growfs
[root@localhost ~]# xfs_growfs /dev/sda3
meta-data=/dev/sda3 isize=512agcount=4, agsize=1160384 blks
=sectsz=512attr=2, projid32bit=1=crc=1finobt=1, sparse=1, rmapbt=0=reflink=1
data =bsize=4096blocks=4641536, imaxpct=25=sunit=0swidth=0 blks
naming =version 2bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096blocks=2560, version=2=sectsz=512sunit=0 blks, lazy-count=1
realtime =none extsz=4096blocks=0, rtextents=0
data blocks changed from 4641536 to 20370171