LVM Label Corruption

Symptom

The pvs utility fails to show physical volume details, and blkid cannot recognize the LVM2_member label. Expected output:

Error state:

Possible Causes

Analysis of the metadata region with hexdump confirms label corruption.

Solution

  1. Check the backup files in /etc/lvm/backup to find the PV UUID, then restore using pvcreate:

    Command:

    shell
    pvcreate --uuid D8v9Qw-1EJw-cmRc-nY2y-AZbC-8eLd-5Cpi2s --restorefile /etc/lvm/backup/vg /dev/sdb
  2. Restore the volume group configuration:

    shell
    vgcfgrestore --file /etc/lvm/backup/vg vg
  3. Complete the recovery by activating the volume group:

    shell
    vgchange -ay vg