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

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. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  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.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Linux BASH Programming Cookbook
Getting Started with Ubuntu 16.04
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

16 Responses

  1. 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?

  2. 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

  3. 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.

  4. 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 ?

  5. Salil Kothadia says:

    Try testdisk
    sudo dnf install testdisk

  6. 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.

  7. Jai says:

    This is very much useful article.

  8. 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?

  9. 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 *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?