![LVM 卷映射的块设备大小为 0](https://linux22.com/image/624906/LVM%20%E5%8D%B7%E6%98%A0%E5%B0%84%E7%9A%84%E5%9D%97%E8%AE%BE%E5%A4%87%E5%A4%A7%E5%B0%8F%E4%B8%BA%200.png)
我的 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 内核重新测试,问题消失了。也许这是一个已修复的旧错误。