Backup and restore of LVM data

From Proxmox VE
Jump to: navigation, search

Backing up LVM metadata

Should the day come when your hard disk is not accessible for whatever reason - corruption, bad sectors, etc., - you will be well equipped for recovery of the LVM if you have done:


This will create /etc/lvm/backup/pve file which can be used during recovery. Atleast the last two (latest dated) files in the /etc/lvm/archive folder will also come in handy - keep a copy of all the above files offline for good measure.

Restoring LVM metadata

To restore the volume group descriptor area from backup files in /etc/lvm/lvm.conf (or from VGConfPath) to the given PhysicalVolumePath,


allows you to do so. This command DOES NOT restore data contained in logical volume(s), only the LVM configuration metadata!

LVM Links