Hi,<div><br></div><div>On Mon, Oct 1, 2012 at 2:42 PM, Duverne, Cyrille <span dir="ltr"><<a href="mailto:cyrille.duverne@euranova.eu" target="_blank">cyrille.duverne@euranova.eu</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I've noticed that when I delete a VM, the directory /var/lib/one/one-data/$VMID is left behind and never deleted.<br>Is this normal ?<br>I've seen this behaviour in 3.2, but it's still happening in 3.8<br></blockquote>
</div><div><br></div><div>The VM dirs are left behind, that's normal. You can clean-up them using hooks [1], take a look at this ticket [2].</div><div><br></div><font face="courier new, monospace">VM_HOOK = [<br> name = "vmdir_cleanup",<br>
on = "DONE",<br> command = "/bin/rm",<br> arguments = "-r /var/lib/one/$VMID" ]<br><br>VM_HOOK = [<br> name = "log_cleanup",<br> on = "DONE",<br>
command = "/bin/rm",<br> arguments = "/var/log/one/$VMID.log" ]</font><div><br></div><div>In previous versions the dirs would be recreated, but it should work in 3.6.</div><div><br></div><div>By the way, where did you get opennebula 3.8? Can I take a look at it? That will speed development! :-)</div>
<div><br></div><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">And on another side, I have an image that can't be deleted, Sunstone says that it's used by 4 VMs, but none is running, and the image can't be deleted from the DB I think.</blockquote>
</div><div><br></div><div>The Image can still be reserved for VMs in states other than running, like stopped or suspended.</div><div>Is this your case?</div><div><br></div><div><br></div><div>Regards</div><div><br><div>[1] <a href="http://opennebula.org/documentation:rel3.6:hooks">http://opennebula.org/documentation:rel3.6:hooks</a></div>
<div>[2] <a href="http://dev.opennebula.org/issues/1026">http://dev.opennebula.org/issues/1026</a><br clear="all">--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div>
<span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
<br>
<br><br><div class="gmail_quote">On Mon, Oct 1, 2012 at 2:42 PM, Duverne, Cyrille <span dir="ltr"><<a href="mailto:cyrille.duverne@euranova.eu" target="_blank">cyrille.duverne@euranova.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>Hello dear community,<br><br>I've noticed that when I delete a VM, the directory /var/lib/one/one-data/$VMID is left behind and never deleted.<br>Is this normal ?<br>I've seen this behaviour in 3.2, but it's still happening in 3.8<br>
<br>And on another side, I have an image that can't be deleted, Sunstone says that it's used by 4 VMs, but none is running, and the image can't be deleted from the DB I think.<br><br>Any idea ?<br><br>Thanks in advance.<br>
<br>PS : ONE 3.6 rocksss !!! :p<br><font face=""><br><div>Cyrille<br><br>
Blog : <a href="http://blog.cduverne.com" target="_blank">http://blog.cduverne.com</a><br>
Twitter : @CydsWorld<br>
<br>
"Imagination is more important than Knowledge"<br>
Albert Einstein</div><br><br><br>Lundi 01/10/2012 à 12:57 Carlos Martín Sánchez a écrit:<br><blockquote style="border:0;border-left:2px solid #22437f;padding:0px;margin:0px;padding-left:5px;margin-left:5px">Hi,<div><br></div>
<div>The files should have been deleted. Do you have any error messages in /var/log/one/oned.log?</div><div><br></div><div>You can also check each image file path using 'oneimage show', it's the SOURCE attribute.</div>
<div><br></div><div>Regards</div><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div>
<span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
<br>
<br><br><div class="gmail_quote">On Mon, Oct 1, 2012 at 8:58 AM, Christoph Robbert <span dir="ltr"><<a href="mailto:chrobbert@googlemail.com" target="_blank">chrobbert@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
my hard drive is running out of space. So i deleted some unused images in Opennebula via the sunstone gui.<br>
But i didn't get any additional free hard drive space. But the datastore contains only files with hash names.<br>
Why happen this? Is this a bug or a feature?<br>
<br>
Regards,<br>
<br>
Christoph Robbert<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div><br></div></blockquote></font></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div></div>