[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] ANNOUNCE: an experimental implementation of snapshot merging



On Tue, 3 Jun 2008, Chris Cox wrote:

On Tue, 2008-06-03 at 15:26 -0400, Mikulas Patocka wrote:
Hi

Here I release the first experimental implementation of snapshot merging.
Merging allows you to copy data in snapshot back to the origin device.
Once merging starts, it runs on background. When the merging finishes (you
see "0%" with "lvs" command), you should remove the merging snapshot with
lvremove command.

I would think this would be VERY hard to do since both the "origin" and
"snapshot" change (file deletes, etc).  Do you have a set of rules you
use for the merge?

The rule is: "origin must not be mounted when you start merging". Currently it is not enforced by the lvm tool (you damage your filesystem, if you merge over a mounted filesystem), in final version, there will be a test to refuse merging in this case.

If you merge a snapshot, you are going to lose the data in the origin. If you don't want to lose them, create another snapshot before you start merging (then, the new snapshot will contain the data in the origin).

Another rule is: while merging is in progress, don't create other snapshots --- well, you can, but they will contain inconsistent midstate. Snapshots that were created before the merging started will be preserved OK.

Mikulas


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]