<p dir="ltr"></p>
<p dir="ltr">On Oct 4, 2016 11:11 AM, &quot;Nicolas Ecarnot&quot; &lt;<a href="mailto:nicolas@ecarnot.net">nicolas@ecarnot.net</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; Sending this here to share knowledge.<br>
&gt;<br>
&gt; Here is what I learned from many BZ and mailing list posts readings. I&#39;m not working at Redhat, so please correct me if I&#39;m wrong.<br>
&gt;<br>
&gt; We are using thin-provisioned block storage LUNs (Equallogic), on which oVirt is creating numerous Logical Volumes, and we&#39;re very happy with it.<br>
&gt; When oVirt is removing a virtual disk, the SAN is not informed, because the LVM layer is not sending the &quot;issue_discard&quot; flag.<br>
&gt;<br>
&gt; /etc/lvm/lvm.conf is not the natural place to try to change this parameter, as VDSM is not using it.<br>
&gt;<br>
&gt; Efforts are presently made to include issue_discard setting support directly into vdsm.conf, first on a datacenter scope (4.0.x), then per storage domain (4.1.x) and maybe via a web GUI check-box. Part of the effort is to make sure every bit of a planned to be removed LV get wiped out. Part is to inform the block storage side about the deletion, in case of thin provisioned LUNs.</p>
<p dir="ltr">Our implementation will be independent of the LVM setting issue_discard, will not be based on it and it won&#39;t be needed. <br>
Y. </p>
<p dir="ltr">&gt;<br>
&gt; <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1342919">https://bugzilla.redhat.com/show_bug.cgi?id=1342919</a><br>
&gt; <a href="https://bugzilla.redhat.com/show_bug.cgi?id=981626">https://bugzilla.redhat.com/show_bug.cgi?id=981626</a><br>
&gt;<br>
&gt; -- <br>
&gt; Nicolas ECARNOT<br>
&gt;<br>
&gt; On Mon, Oct 3, 2016 at 2:24 PM, Nicolas Ecarnot &lt;<a href="mailto:nicolas@ecarnot.net">nicolas@ecarnot.net</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Yaniv,<br>
&gt;&gt;<br>
&gt;&gt; As a pure random way of web surfing, I found that you posted on twitter an information about DISCARD support. (<a href="https://twitter.com/YanivKaul/status/773513216664174592">https://twitter.com/YanivKaul/status/773513216664174592</a>)<br>
&gt;&gt;<br>
&gt;&gt; I did not dig any further, but has it any relation with the fact that so far, oVirt did not reclaim lost storage space amongst its logical volumes of its storage domains?<br>
&gt;&gt;<br>
&gt;&gt; A BZ exist about this, but one was told no work would be done about it until 4.x.y, so now we&#39;re there, I was wondering if you knew more?<br>
&gt;<br>
&gt;<br>
&gt; Feel free to send such questions on the mailing list (ovirt users or devel), so other will be able to both chime in and see the response.<br>
&gt; We&#39;ve supported a custom hook for enabling discard per disk (which is only relevant for virtio-SCSI and IDE) for some versions now (3.5 I believe).<br>
&gt; We are planning to add this via a UI and API in 4.1.<br>
&gt; In addition, we are looking into discard (instead of wipe after delete, when discard is also zero&#39;ing content) as well as discard when removing LVs.<br>
&gt; See:<br>
&gt; <a href="http://www.ovirt.org/develop/release-management/features/storage/pass-discard-from-guest-to-underlying-storage/">http://www.ovirt.org/develop/release-management/features/storage/pass-discard-from-guest-to-underlying-storage/</a><br>
&gt; <a href="http://www.ovirt.org/develop/release-management/features/storage/wipe-volumes-using-blkdiscard/">http://www.ovirt.org/develop/release-management/features/storage/wipe-volumes-using-blkdiscard/</a><br>
&gt; <a href="http://www.ovirt.org/develop/release-management/features/storage/discard-after-delete/">http://www.ovirt.org/develop/release-management/features/storage/discard-after-delete/</a><br>
&gt;<br>
&gt; Y.<br>
&gt;  <br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Best,<br>
&gt;&gt;<br>
&gt;&gt; -- <br>
&gt;&gt; Nicolas ECARNOT<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;</p>