0

I'm having a problem with my LVM volume. I lost a disk out of my RAID array, and started in in degraded mode. Now when I try to access 2 of the LVM volumes, they report a block size of 0. Does anyone know what is going on?

$ 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
  • are you sure you lvm volumes are ok? use lvs +ao devices
    – c4f4t0r
    Jan 18, 2014 at 0:44

1 Answer 1

0

I retested with a newer linux kernel and the issue went away. Maybe this was an old bug that has been fixed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .