我的 LVM 卷出现问题。我的 RAID 阵列中丢失了一个磁盘,并以降级模式启动。现在,当我尝试访问 2 个 LVM 卷时,它们报告块大小为 0。有人知道发生了什么吗?
$ lvdisplay
--- Logical volume ---
LV Name /dev/vg0/home
VG Name vg0
...
LV Size 20.00 GiB
$ blockdev --getsize64 /dev/mapper/vg0-root
0
$ mount /dev/mapper/vg0-root /mnt
mount: /dev/mapper/vg0-root: can't read superblock
$mke2fs -n /dev/mapper/vg0-root
mke2fs 1.41-14 (22-Dec-2010)
mke2fs: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-ready your partition table.
答案1
我使用较新的 Linux 内核重新测试,问题消失了。也许这是一个已修复的旧错误。