标题: resize2fs: Bad magic number in super-block while trying to open /dev/...的解决 [打印本页] 作者: shillan 时间: 2020-12-23 17:32 标题: resize2fs: Bad magic number in super-block while trying to open /dev/...的解决
在进行lvm扩容之后,按照惯例进行 resize2fs 操作,发现报如下错误:
# resize2fs /dev/centos/root
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/centos/root
Couldn't find valid filesystem superblock.
检查 /dev/centos/root 文件系统,发现是xfs,如下;
# mount |grep root
/dev/mapper/centos-root on / type xfs (rw,relatime,attr2,inode64,noquota)
xfs的文件系统重新定义大小用如下命令: