<div dir="ltr"><div>Hi John,<br><br></div>Thanks for the excellent clarification.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 23, 2014 at 9:57 PM, John Griffith <span dir="ltr"><<a href="mailto:john.griffith@solidfire.com" target="_blank">john.griffith@solidfire.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_extra">

<br><br><div class="gmail_quote"><div class="">On Fri, May 23, 2014 at 10:19 AM, Udara Liyanage <span dir="ltr"><<a href="mailto:udaraliyanage@gmail.com" target="_blank">udaraliyanage@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>HI Beyh,<br><br></div>According to the changes made in [1], volumes are not cleared when "volume_clear=none"<br>



<br>[1] <a href="https://github.com/openstack/cinder/commit/bb06ebd0f6a75a6ba55a7c022de96a91e3750d20" target="_blank">https://github.com/openstack/cinder/commit/bb06ebd0f6a75a6ba55a7c022de96a91e3750d20</a></div></blockquote>



<div><br></div></div><div class="gmail_default" style="font-family:'courier new',monospace">​Exactly!!  That's the whole point :)​</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="ltr"><br>

</div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Fri, May 23, 2014 at 9:46 PM, Udara Liyanage <span dir="ltr"><<a href="mailto:udaraliyanage@gmail.com" target="_blank">udaraliyanage@gmail.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>HI John,<br><br></div>Thanks for the detailed answer.<br></div>Just one more clarification. If "lvm_type=thin" will it clear only the blocks which data are written on?<br>





</div><div class="gmail_extra"><div><div>
<br><br><div class="gmail_quote">On Fri, May 23, 2014 at 8:51 PM, John Griffith <span dir="ltr"><<a href="mailto:john.griffith@solidfire.com" target="_blank">john.griffith@solidfire.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div dir="ltr"><div style="font-family:courier new,monospace"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Thu, May 22, 2014 at 11:33 PM, Ruzicka, Marek <span dir="ltr"><<a href="mailto:marek.ruzicka@t-systems.sk" target="_blank">marek.ruzicka@t-systems.sk</a>></span> wrote:<br>








</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Can’t help you here… I’m still running Grizzly, and volume resize came in IceHouse I believe.<u></u><u></u></span></p>








<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Marek <u></u><u></u></span></p>








<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>








<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Udara Liyanage [mailto:<a href="mailto:udaraliyanage@gmail.com" target="_blank">udaraliyanage@gmail.com</a>] <br>








<b>Sent:</b> 23. mája 2014 07:28<br><b>To:</b> Ruzicka, Marek<br><b>Cc:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br><b>Subject:</b> Re: [Openstack] Large volume creation takes long time<u></u><u></u></span></p>








<div><div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">HI marek,<u></u><u></u></p></div><p class="MsoNormal">Thanks for the reply.<br>By the way how to resize a volume to zero. I found "cinder extend" command where volumes can be extended. How to shrink the volume to zero?<u></u><u></u></p>








</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">On Fri, May 23, 2014 at 10:52 AM, <<a href="mailto:marek.ruzicka@t-systems.sk" target="_blank">marek.ruzicka@t-systems.sk</a>> wrote:<u></u><u></u></p>








<div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’m not 100% sure, but I remember (depending on the driver you are using) it used to zero entire volume before deletion, which might or might not make sense for you.</span><u></u><u></u></p>








<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sorry for not being able to provide any details, this is just something I remember from way back.</span><u></u><u></u></p>








<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers,</span><u></u><u></u></p>








<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Marek</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>








<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Udara Liyanage [mailto:<a href="mailto:udaraliyanage@gmail.com" target="_blank">udaraliyanage@gmail.com</a>] <br>








<b>Sent:</b> 23. mája 2014 07:00<br><b>To:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br><b>Subject:</b> [Openstack] Large volume creation takes long time</span><u></u><u></u></p>








<div><div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<u></u><u></u></p></div><p class="MsoNormal">When it tries to delete a large sized volume, it takes a long time. Is there a another better way to do  this such as resizing a volume to zero.<br clear="all">








<u></u><u></u></p><div><div><div><p class="MsoNormal"><br>-- <u></u><u></u></p><div><div><div><p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Udara S.S Liyanage.<br>








Software Engineer at WSO2.<br>Commiter and PPMC Member of Apache Stratos.<br>Blog - </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#500050"><a href="http://udaraliyanage.wordpress.com/" target="_blank"><span style="color:#1155cc">http://udaraliyanage.wordpress.com</span></a></span><u></u><u></u></p>








</div><p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#888888">phone: <a href="tel:%2B94%2071%20443%206897" target="_blank">+94 71 443 6897</a></span><u></u><u></u></p>








</div></div></div></div></div></div></div></div></div></div></div><p class="MsoNormal"><br><br clear="all"><br>-- <u></u><u></u></p><div><div><div><p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Udara S.S Liyanage.<br>








Software Engineer at WSO2.<br>Commiter and PPMC Member of Apache Stratos.<br>Blog - </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#500050"><a href="http://udaraliyanage.wordpress.com/" target="_blank"><span style="color:#1155cc">http://udaraliyanage.wordpress.com</span></a></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#888888"><u></u><u></u></span></p>








</div><p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#888888">phone: <a href="tel:%2B94%2071%20443%206897" value="+94714436897" target="_blank">+94 71 443 6897</a><u></u><u></u></span></p>








</div></div></div></div></div></div></div><br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><div style="font-family:'courier new',monospace">​The writing zeros to the volume on delete is indeed what you're seeing, it's a "feature" that is there for security purposes, so for example a public provider doesn't hand out a new volume to a tenant with the possibility of allocating blocks with somebody elses data on them.</div>








<div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace">You can switch to using "lvm_type=thin" in your cinder.conf file which will basically handle this by returning zero for blocks that haven't been written yet (so we don't do the secure delete).  Or as was suggested if you don't need the secure delete option you can turn it off altogether by setting "volume_clear=none" in your cinder.conf file.</div>








<div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace">As far as adjusting the size to zero, we don't allow reducing the volume size, only extending.  Reducing introduces quite a bit of risk and also it doesn't address the problem that secure_delete is there for anyway.</div>








<div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace">Thanks,</div><div style="font-family:'courier new',monospace">




John​</div><br></div></div>
</blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><br></font></span></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">-- <br><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);color:rgb(136,136,136)">






<div style="font-family:arial"><span style="border-collapse:collapse;color:rgb(80,0,80)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif">Udara S.S Liyanage.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif">






<span style="color:rgb(34,34,34);font-family:arial,sans-serif">Software Engineer at WSO2.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif"><span style="color:rgb(34,34,34);font-family:arial,sans-serif">Commiter and PPMC Member of Apache Stratos.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif">






<span style="color:rgb(34,34,34);font-family:arial,sans-serif">Blog - </span><a href="http://udaraliyanage.wordpress.com/" style="color:rgb(17,85,204);font-family:arial,sans-serif" target="_blank">http://udaraliyanage.wordpress.com</a><font face="arial, helvetica, sans-serif"><span style="font-family:arial,sans-serif;color:rgb(0,0,0)"><br>






</span></font></span></div>phone: <a value="+94716684620" style="color:rgb(17,85,204)">+94 71 443 6897</a></div></div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br></font></span></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">-- <br><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);color:rgb(136,136,136)">





<div style="font-family:arial"><span style="border-collapse:collapse;color:rgb(80,0,80)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif">Udara S.S Liyanage.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif">





<span style="color:rgb(34,34,34);font-family:arial,sans-serif">Software Engineer at WSO2.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif"><span style="color:rgb(34,34,34);font-family:arial,sans-serif">Commiter and PPMC Member of Apache Stratos.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif">





<span style="color:rgb(34,34,34);font-family:arial,sans-serif">Blog - </span><a href="http://udaraliyanage.wordpress.com/" style="color:rgb(17,85,204);font-family:arial,sans-serif" target="_blank">http://udaraliyanage.wordpress.com</a><font face="arial, helvetica, sans-serif"><span style="font-family:arial,sans-serif;color:rgb(0,0,0)"><br>





</span></font></span></div>phone: <a value="+94716684620" style="color:rgb(17,85,204)">+94 71 443 6897</a></div></div>
</font></span></font></span></div>
</blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);color:rgb(136,136,136)">

<div style="font-family:arial"><span style="border-collapse:collapse;color:rgb(80,0,80)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif">Udara S.S Liyanage.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif">Software Engineer at WSO2.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif"><span style="color:rgb(34,34,34);font-family:arial,sans-serif">Commiter and PPMC Member of Apache Stratos.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif">Blog - </span><a href="http://udaraliyanage.wordpress.com/" style="color:rgb(17,85,204);font-family:arial,sans-serif" target="_blank">http://udaraliyanage.wordpress.com</a><font face="arial, helvetica, sans-serif"><span style="font-family:arial,sans-serif;color:rgb(0,0,0)"><br>

</span></font></span></div>phone: <a value="+94716684620" style="color:rgb(17,85,204)">+94 71 443 6897</a></div></div>
</div>