磁盘扩容报 resize2fs: Bad magic number in super-block

# resize2fs -p -F  /dev/mapper/mpatha
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block 当尝试打开 /dev/mapper/mpatha 时
找不到有效的文件系统超级块.

具体原因是自己采用的事xfs的文件系统,所以使用如下命令得以处理:

mount /dev/mapper/mpatha /data

xfs_growfs -p -F /dev/mapper/mpatha
meta-data=/dev/mapper/mpatha     isize=512    agcount=4, agsize=268435455 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=1073741820, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=521728, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 1073741820 to 1335885824

猜你喜欢

转载自blog.csdn.net/qq_29520895/article/details/131305094