Linux LVM error VG meta data inconsistent and Solution

last updated in Categories , , , , , , , ,

Q. How do I fix the following error under CentOS Enterprise Linux:

Advertisements

LVM error VG meta data inconsistent

How do I fix this problem?

A. You need to use lvm command, which provides the command-line tools for LVM2. In order to fix this problem boot your Linux into rescue mode or a single user mode:

First, you need to restore the VG Meta data, enter:
lvm vgcfgrestore VG

Now, you need to rescan for physical devices and vol groups (scan all disks for physical volume), enter:
lvm pvscan
lvm vgscan

Finally, make the volume group active, enter:
lvm vgchange -ay VG

For more information read lvm man page:
man lvm

ADVERTISEMENTS

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

2 comment

  1. Although each change in volume groups gets backed up in meta data repo /etc/lvm/backup/ by default, however, I believe this won’t revert to the last fully functioning state or semi state because it may be the very same modification causing the corrupting or inconsistency as suggested in redhat.com link.

    Still, have a question? Get help on our forum!