1. 程式人生 > >bad geometry: block count 65536 exceeds size of device (53248 blocks)

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

lvm 邏輯卷 卷組

在虛擬機裏做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)