我有 3 个 1TB 驱动器,我已将它们设置为使用 LVM。这是输出pvdisplay
:
--- Physical volume ---
PV Name /dev/sda1
VG Name vgpool
PV Size 931.51 GiB / not usable 728.00 KiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 238467
Free PE 0
Allocated PE 238467
PV UUID 22ZgJ3-ep7X-flT6-KD1u-fWr1-Q8u9-2V28Ad
--- Physical volume ---
PV Name /dev/sdc1
VG Name vgpool
PV Size 931.51 GiB / not usable 728.00 KiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 238467
Free PE 0
Allocated PE 238467
PV UUID 3b7vE1-gXPo-Moxm-5F46-vOPb-UpyF-mjo7ad
--- Physical volume ---
PV Name /dev/sdb1
VG Name vgpool
PV Size 931.51 GiB / not usable 728.00 KiB
Allocatable yes
PE Size 4.00 MiB
Total PE 238467
Free PE 774
Allocated PE 237693
PV UUID dFWNtb-WbyA-HSVz-urls-G0Y9-x2W0-jwsoTq
一切看起来都不错吧?现在,我运行sudo fdisk -l
:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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/sda doesn't contain a valid partition table
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 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: 0x2e962a62
Device Boot Start End Blocks Id System
/dev/sdb1 2048 1953525167 976761560 8e Linux LVM
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 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: 0xe95df8a7
Device Boot Start End Blocks Id System
/dev/sdc1 2048 1953525167 976761560 8e Linux LVM
Disk /dev/mapper/vgpool-lvstuff: 2997.4 GB, 2997362884608 bytes
255 heads, 63 sectors/track, 364408 cylinders, total 5854224384 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/mapper/vgpool-lvstuff doesn't contain a valid partition table
我担心的是,尽管我将每个驱动器正确格式化为 LVM ( ),但fdisk
仍显示sda
没有有效分区。8e
这是我第一次使用 LVM,所以我做错了什么吗?
lshal
:
block.device = '/dev/sda' (string)
block.is_volume = false (bool)
block.major = 8 (0x8) (int)
block.minor = 0 (0x0) (int)
block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_WDC_WD10EARS_00Y5B1_WD_WCAV5C337141' (string)
info.capabilities = {'storage', 'block'} (string list)
info.category = 'storage' (string)
info.parent = '/org/freedesktop/Hal/devices/pci_8086_3b22_scsi_host_scsi_device_lun0' (string)
info.product = 'WDC WD10EARS-00Y' (string)
info.udi = '/org/freedesktop/Hal/devices/storage_serial_WDC_WD10EARS_00Y5B1_WD_WCAV5C337141' (string)
info.vendor = 'ATA' (string)
linux.hotplug_type = 3 (0x3) (int)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda' (string)
storage.automount_enabled_hint = true (bool)
storage.bus = 'pci' (string)
storage.drive_type = 'disk' (string)
storage.firmware_version = '80.00A08' (string)
storage.hotpluggable = false (bool)
storage.lun = 0 (0x0) (int)
storage.media_check_enabled = false (bool)
storage.model = 'WDC WD10EARS-00Y' (string)
storage.no_partitions_hint = false (bool)
storage.originating_device = '/org/freedesktop/Hal/devices/computer' (string)
storage.removable = false (bool)
storage.removable.media_available = true (bool)
storage.removable.media_size = 1000204886016 (0xe8e0db6000) (uint64)
storage.requires_eject = false (bool)
storage.serial = 'WDC_WD10EARS-00Y5B1_WD-WCAV5C337141' (string)
storage.size = 1000204886016 (0xe8e0db6000) (uint64)
storage.vendor = 'ATA' (string)
答案1
看起来分区表/dev/sda
被破坏了。你没有提到你做了什么来摧毁它,所以很难确切地说你将如何重建它。
您可以尝试使用
fdisk
重新创建sda1
分区。假设三个磁盘的磁盘分区相同,您可以使用与其他两个驱动器上相同的参数重新创建
sda1
分区。fdisk /dev/sda1
如果正确,这应该会使体积再次可见。 (之后您可能需要重新启动。)如果失败,您可以尝试使用 TestDisk 重新创建
sda1
分区。这将扫描驱动器并尝试查找指示磁盘上的内容和位置的元数据,但它可能会给出误报。你在这里有点孤身一人。