From: "lu ping" Subject: why "real" device and "snapshot-origin" differs after a snapshot is created Date: Tue, 6 Jan 2009 20:14:19 -0800 Message-ID: Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1015151741==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com List-Id: dm-devel.ids --===============1015151741== Content-Type: multipart/alternative; boundary="----=_Part_45110_9030694.1231301659682" ------=_Part_45110_9030694.1231301659682 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Folks, I am a dm newbie and I am not sure if it's the right place to ask my question. But I couldn't find any other related mail list... After I create a LVM snapshot, there are four related devices. According to the documentation, there is a "real" device which contains the original mapping table of the source, while a "snapshot-origin" device gets the original device number. As to my understanding, when you read from "snapshot-origin", it will just pass the read to the "real" device, while when you write to it, it does the COW to the "COW device" and then again pass the writes to the "real" device. But after I wrote to "snapshot-origin", I found it's content no longer the same as the "real" device (from a "diff"). I must be missing something important here. Can somebody explain to me why? Thanks Ping ------=_Part_45110_9030694.1231301659682 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Folks,

I am a dm newbie and I am not sure if it's the right place to ask my question. But I couldn't find any other related mail list...

After I create a LVM snapshot, there are four related devices. According to the documentation, there is a "real" device which contains the original mapping table of the source, while a "snapshot-origin" device gets the original device number.

As to my understanding, when you read from "snapshot-origin", it will just pass the read to the "real" device, while when you write to it, it does the COW to the "COW device" and then again pass the writes to the "real" device.
But after I wrote to "snapshot-origin", I found it's content no longer the same as the "real" device (from a "diff"). I must be missing something important here. Can somebody explain to me why?

Thanks
Ping
------=_Part_45110_9030694.1231301659682-- --===============1015151741== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1015151741==--