Extracting LVM metadata backups from a physical volume

Updated

You can extract LVM metadata from a wiped off LVM physical volume so that Red Hat support can recover the volume using the backups.

Prerequisites

  • The lvm2 package is installed.

Procedure

  1. Check the headers on the physical volume.

    # pvck --dump headers /dev/sda1
    
  2. Search for volume group metadata that corresponds with the volume group you want to recover.

    # pvck --dump metadata_search -v /dev/sda1
    
  3. Extract the instance of metadata you need for recovery and save it to a file.

    # pvck --dump metadata_search \
           --settings metadata_offset=yourinstance \
           -f file /dev/sda1 
    

Additional resources

  • The pvck(8) man page.
SBR
Category
Components
Article Type