Hi,<br><br>There is no straight-forward way to do this. We don't have configuration options for DB manipulation.<br>I think the best workaround is to create a SQL Trigger [1] [2] , that will copy the rows to be deleted from 'host_pool' to a new table, 'history_host_pool'.<br>
<br>Please be aware of this bug [3], in some rare cases you may have a new Host using the ID of an old deleted one.<br><br><br>Regards,<br>Carlos.<br><br>[1] <a href="http://dev.mysql.com/doc/refman/5.6/en/triggers.html">http://dev.mysql.com/doc/refman/5.6/en/triggers.html</a><br>
[2] <a href="http://www.sqlite.org/lang_createtrigger.html">http://www.sqlite.org/lang_createtrigger.html</a><br><br>
[3] <a href="http://dev.opennebula.org/issues/566">http://dev.opennebula.org/issues/566</a><br>
<span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote">2011/5/23 Carlos Fernández Iglesias <span dir="ltr"><<a href="mailto:ciglesias@cesga.es">ciglesias@cesga.es</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I've noticed that when a host is deleted from opennebula it's information is also deleted from the database. This also applies to images, networks and users.<br>
<br>
For accounting purposes it will be great to have none of the database information erased as you may need that info in some scenario, and it may not be there.<br>
<br>
Is there some way to prevent this from happening?<br>
<br>
Thanks.<br>
_______________________________________________<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/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br>