<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">
<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 class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">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 class="h5"><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 class="gmail_default" 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 class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" 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 class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" 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 class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">Thanks,</div><div class="gmail_default" style="font-family:'courier new',monospace">
John</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>