<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">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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><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 class="h5"><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>_______________________________________________<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">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>