LVM心理卷分区

我在一个跨两个硬盘的卷组中有两个逻辑卷。 我目前遇到的问题是,我无法再安装卷组,因为超级块会错误地报告要装入的逻辑卷的大小。

root@ops:~# fdisk -l /dev/sda /dev/sdb Disk /dev/sda: 500.1 GB, 500107861504 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773167 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0004bd90 Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 976771071 488134657 5 Extended /dev/sda5 501760 976771071 488134656 8e Linux LVM Disk /dev/sdb: 500.1 GB, 500107861504 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773167 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sdb doesn't contain a valid partition table root@ops:~# lvdisplay --- Logical volume --- LV Path /dev/ops-vg-restore/root LV Name root VG Name ops-vg-restore LV UUID uIvK4y-7ks6-A7CK-1N4X-gK1g-7mgZ-7OV0wB LV Write Access read/write LV Creation host, time ops, 2014-04-30 09:53:37 -0400 LV Status available # open 0 LV Size 927.24 GiB Current LE 237373 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:0 --- Logical volume --- LV Path /dev/ops-vg-restore/swap_1 LV Name swap_1 VG Name ops-vg-restore LV UUID kkuVNB-9fu8-jDW1-A3A9-9P9N-VTDK-gmXsgz LV Write Access read/write LV Creation host, time ops, 2014-04-30 09:53:37 -0400 LV Status available # open 0 LV Size 3.99 GiB Current LE 1022 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:1 root@ops:~# mount /dev/ops-vg-restore/root /mnt/ops-vg-restore/ mount: wrong fs type, bad option, bad superblock on /dev/mapper/ops--vg--restore-root, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so 

dmesg返回

 [Tue Feb 10 11:33:10 2015] EXT4-fs (dm-0): bad geometry: block count 1219824640 exceeds size of device (243069952 blocks) 

这是否意味着我应该在sdb上创build一个新的分区? 然后创build一个lvm分区或尝试使用e2fsck修复超级块问题?

[编辑更多信息请求]

 root@ops:~# pvs PV VG Fmt Attr PSize PFree /dev/sda5 ops-vg-restore lvm2 a-- 465.52g 48.00m /dev/sdb ops-vg-restore lvm2 a-- 465.76g 0 /dev/sdd1 lvm2 a-- 1.82t 1.82t root@ops:~# vgs VG #PV #LV #SN Attr VSize VFree ops-vg-restore 2 2 0 wz--n- 931.28g 48.00m root@ops:~# lvs LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert root ops-vg-restore -wi-a---- 927.24g swap_1 ops-vg-restore -wi-a---- 3.99g 

[另外一点额外信息]

 root@ops:~# e2fsck -v -f /dev/ops-vg-restore/root e2fsck 1.42.9 (4-Feb-2014) The filesystem size (according to the superblock) is 1219824640 blocks The physical size of the device is 243069952 blocks Either the superblock or the partition table is likely to be corrupt! Abort<y>? no Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Error reading block 243073024 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? yes Force rewrite<y>? ... 

上述过程持续了很长一段时间,直到它没有任何更多的信息,或者我不忽略这个错误。 然后我得到,

 Error reading block 243269632 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? no e2fsck: Can't read a block bitmap while retrying to read bitmaps for /dev/ops-vg-restore/root Error writing block 243073024 (Invalid argument). Ignore error<y>? yes e2fsck: aborted root@ops:~# fdisk -l /dev/ops-vg-restore/root Disk /dev/ops-vg-restore/root: 995.6 GB, 995614523392 bytes 255 heads, 63 sectors/track, 121043 cylinders, total 1944559616 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/ops-vg-restore/root doesn't contain a valid partition table