<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Jacob Broido</b> <<a href="mailto:jacob.broido@gmail.com">jacob.broido@gmail.com</a>><br>Date: Aug 24, 2005 7:00 PM
<br>Subject: Re: [dm-devel] cow snapshot on cloop device<br>To: Kevin Corry <<a href="mailto:kevcorry@us.ibm.com">kevcorry@us.ibm.com</a>><br><br></span>I am using dmsetup directly. and I do the following:<br>
1) Create an empty file that will be used as cow backing storage<br>
2) losetup the backing file to /dev/loop0<br>
3) create a snapshot of main root_device on /dev/loop0<br>
4) mount the cow snapshot<br>
<br>
<br>
Here is the info you requested:<br>
The kernel is a - <a href="http://2.6.11.10" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">2.6.11.10</a> + xen patch.<br>
=======================================================<br>
/ # dmsetup ls<br>
root_master         (253, 0)<br>
root_cow0        (253, 1)<br>
/ # dmsetup table<br>
root_master: 0 4096128 linear 240:0 0 <br>
root_cow0: 0 4096128 snapshot 253:0 7:0 P 8<br>
<br>
/ # cat /proc/partitions<br>
<br>
major minor  #blocks    name<br>
<br>
7    0        loop0<br>
8    0        sda<br>
8    1        sda1<br>
8    2        sda2<br>
8    3        sda3<br>
240    0        cloop0<br>
252    0        dm-0<br>
253    1        dm-1<br>
<br>
/ # cat /proc/mounts<br>
rootfs / rootfs rw 0 0<br>
/dev/root.old  / ext2 rw 0 0<br>
/proc /proc proc rw,noadirtime 0 0<br>
/sys  /sys sysfs rw 0 0<br>
/dev/hdc /cdrom iso9660 ro 0 0<br>
/ramdisk /ramdisk tmpfs rw 0 0<br>
/dev/mapper/root_cow0 /cow ext2 rw.noatime 0 0<br>
====================================================<div><span class="e" id="q_105e96f6f1d75cf8_1"><br><br><div><span class="gmail_quote">On 8/24/05, <b class="gmail_sendername">Kevin Corry</b> <<a href="mailto:kevcorry@us.ibm.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
kevcorry@us.ibm.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Wed August 24 2005 11:35 am, Jacob Broido wrote:<br>> Hi,<br>> I am trying to set a cow snapshot on a cloop device.
<br>> I managed to create a snapshot and mount it as read/write, but it appears<br>> that the data inside the /cloop appears invalid:<br>><br>> Binary executables appear to be invalid, I perfomed diff between files on
<br>> snapshotted /dev/cloop, and the same files accessed directly through cloop.<br>><br>> The files were diffrent,<br>> anyone has idea as to what can be the reason for this?<br><br>Are you using LVM, EVMS, or dmsetup to create your snapshot? Please send in
<br>the output from "dmsetup ls" and "dmsetup table", as well as the contents<br>of /proc/partitions and /proc/mounts, after you have activated and mounted<br>your snapshot.<br><br>--<br>Kevin Corry<br>

<a href="mailto:kevcorry@us.ibm.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kevcorry@us.ibm.com</a><br><a href="http://www.ibm.com/linux/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.ibm.com/linux/</a><br><a href="http://evms.sourceforge.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://evms.sourceforge.net/</a><br></blockquote>
</div><br><br clear="all"><br></span></div><div><span class="e" id="q_105e96f6f1d75cf8_2">-- <br>Not gonna be king of the world if you're slave to the grind<br>- Skid Row

</span></div><br clear="all"><br>-- <br>Not gonna be king of the world if you're slave to the grind<br>- Skid Row