* [linux-lvm] Question before merging snapshot
@ 2013-09-02 20:21 Ron Schneider
2013-09-03 8:17 ` Marian Csontos
0 siblings, 1 reply; 2+ messages in thread
From: Ron Schneider @ 2013-09-02 20:21 UTC (permalink / raw)
To: linux-lvm
Hi all,
Situation:
I have a volume A that contains production data.
For an experiment I created volume a' from A using
the snapshot function.
I then used a' for my experiment, which went very well.
Now I want to merge snapshot a' back into A. I have read that the merge
will effectively make A to be what a' was before, then a' will
disappear. However, all examples that I found on the net referred to
making snapshot a' then making changes to the origin A and finally using
--merge to revert A back to a'.
In my case though, I used the snapshot a' for writing instead of origin
A. I just want you to confirm that --merge will function the same way
nevertheless, thus making the modified content of a' appear in the
origin LV A.
Of course I will backup everything before the merge but I'd like to save
myself unnecessary recovery cycles so I thought I'd just ask the pros
beforehand - just to be sure.
--
kind regards,
Ron
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] Question before merging snapshot
2013-09-02 20:21 [linux-lvm] Question before merging snapshot Ron Schneider
@ 2013-09-03 8:17 ` Marian Csontos
0 siblings, 0 replies; 2+ messages in thread
From: Marian Csontos @ 2013-09-03 8:17 UTC (permalink / raw)
To: linux-lvm; +Cc: news-io-dx32
On 09/02/2013 10:21 PM, Ron Schneider wrote:
>
> Hi all,
>
> Situation:
>
> I have a volume A that contains production data.
> For an experiment I created volume a' from A using
> the snapshot function.
> I then used a' for my experiment, which went very well.
>
> Now I want to merge snapshot a' back into A. I have read that the merge
> will effectively make A to be what a' was before, then a' will
> disappear. However, all examples that I found on the net referred to
> making snapshot a' then making changes to the origin A and finally using
> --merge to revert A back to a'.
> In my case though, I used the snapshot a' for writing instead of origin
> A. I just want you to confirm that --merge will function the same way
> nevertheless, thus making the modified content of a' appear in the
> origin LV A.
> Of course I will backup everything before the merge but I'd like to save
> myself unnecessary recovery cycles so I thought I'd just ask the pros
> beforehand - just to be sure.
Hi, what's in the snapshot will become content of the origin, regardless
where the writes go.
When writing to origin, merge will revert the changes made to origin
since snapshot was taken.
When writing to snapshot, merge will promote the changes made in the
snapshot to the origin.
When writing to both, changes to origin will be reverted and changes
made in snapshot will be promoted.
-- Marian
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-03 8:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-02 20:21 [linux-lvm] Question before merging snapshot Ron Schneider
2013-09-03 8:17 ` Marian Csontos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).