bad geometry: block count 65536 exceeds size of device (53248 blocks)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了bad geometry: block count 65536 exceeds size of device (53248 blocks)相关的知识,希望对你有一定的参考价值。

在虚拟机里做LVM的缩减的时候,未卸载逻辑卷的情况下进行了缩减导致报错:

bad geometry: block count 65536 exceeds size of device (53248 blocks)

猜测大概的意思就是我分区表里是64M(PE为4M),而实际逻辑卷已被缩减到52M。

参考了几篇文章也没解决掉:

我就尝试直接去扩展逻辑卷,结果就好了。

逻辑卷扩展的步骤:
   1.先确保扩展的大小;并确保所属的卷组有足够的剩余空间
   2、扩展物理边界
      lvextend -L [+]size /path/to/lv_device
   3、扩展逻辑边界
      resize2fs /path/to/lv_devive
缩减逻辑卷的步骤:
   1、卸载卷,并执行强制检查
     e2fsck -f /path/to/lv_devive
   2、缩减逻辑边界
     resize2fs /path/to/lv_device SIZE
   3、缩减物理边界:
     lvreduce -L [-]size /path/to/lv_device
   4、挂载卷






参考文章:

https://unix.stackexchange.com/questions/115698/fix-ext4-fs-bad-geometry-block-count-exceeds-size-of-device


http://linux.bigresource.com/General-Cannot-mount-hard-disk-block-count-exceeds-size-of-device-x13UNnlXF.html


http://www.linuxquestions.org/questions/linux-newbie-8/ext4-fs-bad-geometry-block-count-large-number-exceeds-size-of-device-4175450897-print/


以上是关于bad geometry: block count 65536 exceeds size of device (53248 blocks)的主要内容,如果未能解决你的问题,请参考以下文章

invalid request block size: 4542 (max 4096)...skip引起的Nginx 502 Bad Geteway

resize2fs: Bad magic number in super-block while t

resize2fs: Bad magic number in super-block while trying to open

LVM 扩容报错:resize2fs: Bad magic number in super-block while......

“Given final block not properly padded. Such issues can arise if a bad key is used during“错误解决

“Given final block not properly padded. Such issues can arise if a bad key is used during“错误解决