<div>Hi,</div>
<div> </div>
<div>This is a digest of a problem in LVM snapshot which seems to have its roots in dm. I placed it on the LVM list already; here is a copy for dm-devel, just in case anybody has seen this a thousand times before... Our customer is not happy with a 15-snapshot limit.</div>

<div> </div>
<div>
<div>With a 768 GB logical volume in a 2235 GB volume group, and 4 GB of memory, I try to set up lots of snapshots (of 45 or 50 GB each) and can't get past 15. Sometimes I'll succeed in generating more than 15 COWs in /dev/mapper, but lvdisplay never shows more than 15 snapshots in the "LV snapshot status source of" listing under the parent volume. I searched and found 15 snapshots mentioned in a couple places like <span><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wiki.samba.org/index.php/Shadow_Copies_with_Snapshots" target="_blank">wiki.samba.org/index.php/Shadow_Copies_with_Snapshots</a> - but nothing really authoritative.</span></div>

<div><span></span> </div>
<div><span>Is there really such a limit? Or is it a memory requirement - I seem to remember so many MB memory per GB of storage, but can't find that either. Versions are (variants of) lvm2-2.02.38, device-mapper-1.02.26, kernel-smp-2.6.20 (64 bit).</span></div>

<div><span></span> </div>
<div><span>
<div>More details: I found a /var/log/messages note that corresponded exactly to the following bug:</div>
<div>==========================</div>
<div>
<p><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.linux-archive.org/debian-kernel/7067-bug-453254-linux-2-6-18-5-xen-686-unable-create-more-than-32-lvm-snapshots-total.html" target="_blank">http://www.linux-archive.org/debian-kernel/7067-bug-453254-linux-2-6-18-5-xen-686-unable-create-more-than-32-lvm-snapshots-total.html</a></p>

<p>11-28-2007, 01:34 AM<br>Peter de Zwart<br>    <br>Default Bug#453254: linux-2.6.18-5-xen-686: Unable to create more than 32 LVM snapshots in total<br>Package: linux-2.6.18-5-xen-686<br>Severity: normal</p>
<p><br>When attempting to create more than 32 LVM snapshots, the following error message is sent from the Kernel:</p>
<p>device-mapper: table: 254:142: snapshot: Could not create kcopyd client<br>device-mapper: ioctl: error adding target to table</p>
<p>==========================<br>(End of reference; no follow-up found.)</p>
<p>Thanks in advance,</p>
<p>Larry Dickson</p>
<p>Cutting Edge Networked Storage</p></div></span></div></div>