Linux LVM snapshot commit or revert?

Posted by Shewfig on Server Fault See other posts from Server Fault or by Shewfig
Published on 2010-04-02T18:34:14Z Indexed on 2010/04/02 18:43 UTC
Read the original article Hit count: 315

Filed under:
|
|

Hi, I'm about to perform an experimental upgrade on my CentOS 5 server. If the upgrade fails, I want to be able to back out the changes to the filesystem. This scenario seems similar to the example in Section 3.8 of the LVM HOWTO for LVM2 read-write snapshots - but the example is rather lacking in actual how-to.

1) How would I commit the changes, merging them back into the original partition?

2) How would I revert the changes, restoring the filesystem back to its original state? Should I assume that I'll need to restart several services, if not outright reboot?

3) Is it possible to snapshot only certain directories on a partition, or is it a partition-wide operation?

Thanks...

© Server Fault or respective owner

Related posts about linux

Related posts about lvm