Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What's the equivalent of creating a snapshot and reverting to it later on in ZFS (which is automated and usually hassle-free) in LVM2?

I've looked at the progress of this LVM2 feature a while ago and I've seen somebody working on it but it wasn't ready at the time. I've heard that LVM2 apparently has this feature available now.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Use lvconvert --merge, like this:

lvconvert --merge /dev/vgname/snapshot-name

This is not quick, as this requires to revert all the cow-actions on disk. Removing a snapshot is near-instant.

share|improve this answer
    
Thanks - I've actually looked at this without waiting for the answer but thought it'd be good to have it available here for the others. –  Marcin Kaminski Dec 20 '12 at 1:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.