首页 > 代码库 > bad geometry: block count 65536 exceeds size of device (53248 blocks)

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)