How to Take ‘Snapshot of Logical Volume and Restore’ in LVM – Part III

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Babin Lonston

I'm Working as a System Administrator for last 10 year's with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

21 Responses

  1. Prasad S Desai says:

    Hi, I did not get the information like:

    1)should i mount the snapshot?
    2)how can i get the data from snapshot? where it will be?

  2. venkatesh says:

    Hi if we want to take whole server snap in that case what we have to do.? We need to unmount the root file system?

  3. gagan says:

    Hi Babin need to know one thing from you after running all the command successfully to create a snapshot when get into merging the snap vol it gives error UNABLE TO MERGE LV into its origin

  4. Rajveer Singh says:

    Hi Babin,

    I have a query. Suppose I have three LV’s (LV1, LV2, LV3 ) and one LV snanshot (LV_snap) inside a VG (VG1)… in case if we lose the data from LV1, how can we merge the data from snapshot volume to specific LV1?

    Thanks for your great article. This website is really helpful for beginners like us.


    • // in case if we lose the data from LV1 //

      That means only you lose some data so you can commit the snapshot to get back the files. Or even you can mount the snapshot volume and get the files.

  5. Sebastien.L says:

    Nice and very usefull !

    One question, do you think It’s possible to use tmpfs as primary file system (for performances) and a SSD for snapshot by this way ?

  6. Salil Kothadia says:

    Try testdisk
    sudo dnf install testdisk

  7. Petr says:

    Thank you very much for the article. There is one thing I don’t yet fully undestand, thought.
    If you merge the snapshot you are in fact making the changes you’ve made since its creation permanent, right?
    Wouldn’t restoring as in goign back to the previous state before the snapshot mean you only need to delete the snapshot? Or am I missing something?

    • // If you merge the snapshot you are in fact making the changes you’ve made since its creation permanent, right?//


      Merge will include the old and new changes, at the end of merge snapshot will be removed.

      • pepa65 says:

        This can’t be right. What if you just remove the snapshot? The source volume should continue as is, with all the changes since the snapshot was made.

        The merge of the snapshot means that you are “rolling back” to the snapshot, so you lose all the changes made since the snapshot. Please clarify!

  8. Jai says:

    This is very much useful article.

  9. Glenn McHenry says:

    I’m good with this part. Great tutorial by the way. What I would like to do is create the snapshot, back it up to another location, get rid of the snapshot and then if something I do FUBARS my lvm, restore from the backup. Is this possible?

  10. imran haider says:

    thanks a lot for examples :)

    • Anil More says:

      Hi babin,
      I have one query related to LVM snapshot .In the example you mention above, you have create a snapshot name “tecmint_datas_snap” of the volume “tecmint_datas”.For this snapshot .do we required to mount the directory name “”tecmint_datas_snap”” to take snapshot ? .One more question what is snapshot size ,i mean if my volume size is 10 GB then the sanpshot size will be 10GB or less or more? .

      Thanks for your help in advance.

      • @Anil,

        No we don’t required any directory in the name of snapshot.
        We just need to use only the name for snapshot.

        If disk size is 10 GB use 10 GB for snapshot, Sure it will not grow more than 10 GB, If you use less disk size it may get full according to your usage.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.