Linux resize2fs : badmagicnumberinsuper-block错误的解决方法2018年05月23日11:03:19生命只剩下读书数8543
这是符合CC 4.0 by-sa版权协议的博主的原创文章。 请附上原文来源的链接和本声明。
本文链接: https://blog.csdn.net/QQ _ 22083251/article/details/80417097
[root@backup binlog]# vgdisplay
---卷组---
VG Name centos
系统id
格式LV m2
元数据areas 2
元数据序列no 8
VG访问读/写
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 2
Act PV 2
VG Size 2.73 TiB
PE Size 4.00 MiB
Total PE 715273
Alloc PE/Size 712822/2.72 TiB
Free PE/Size 2451/9.57 GiB
vgu uid6riz mz-cqff-owy6-0EVS-yene-37u9- 65 sunu
[ root @ backup binlog ] # lvextend-l4g/dev/mapper/centos-home
sizeoflogicalvolumecentos/homechangedfrom 2.66 TiB (697542 extents ) to 2.66 TiB (698566 extents )。
logicalvolumehomesuccessfullyresized。
执行resize2fs错误:
[ root @ backup binlog ] # resize2fs/dev/mapper/centos-home
resize2fs1.42.9(28-dec-2013 )。
尝试打开resize2fs : badmagicnumberinsuper-block/dev/mapper/centos-home时
找不到有效的文件系统超块。
验证文件系统是否为xfs:
[根@ backup binlog ] # cat/etc/fstab|grep centos-home
/dev/mapper/centos-home/homexfsdefaults 0
xfs使用以下命令扩展磁盘空间:
[ root @ backup binlog ] # xfs _ growfs/dev/mapper/centos-home
meta-data=/dev/mapper/centos-home isize=256 ag count=6,agsize=118277632 blks
=sectsz=4096 attr=2,projid32bit=1
=crc=0 finobt=0
data=bsize=4096 blocks=709040128,imaxpct=5
=sunit=0 swidth=0 blks
naming=版本2 bsize=4096 ascii-ci=0f type=0
log=internal bsize=4096 blocks=231011,version=2
=sectsz=4096 sunit=1 blks,lazy-count=1
real time=noneextsz=4096 blocks=0,rtextents=0
datablockschangedfrom 709040128 to 715331584
转载于:https://my.oschina.net/u/3367404/blog/3095469