Showing posts with label LVM snapshot. Show all posts
Showing posts with label LVM snapshot. Show all posts

Sunday, August 3, 2014

How to restore LVM snapshot

How to restore LVM snapshot

list of logical volumes (find your snapshot)
# sudo lvscan 

output:
  ACTIVE   Original '/dev/debian-group/main' [50.00 GiB] inherit
  ACTIVE   Snapshot '/dev/debian-group/backup01' [50.16 GiB] inherit

/dev/debian-group/backup01 is a snapshot of /dev/debian-group/main

merge lvm snapshot with source partition
# sudo lvconvert --main /dev/debian-group/backup01

if your source partition is in use,then changes will be applied on next reboot or next mount of source partition.