Hi Steffen, <br><br>In your original scenario, you could replace the DB contents for your Host, with OpenNebula stopped.<br>Since you have migrated your VMs, you can force the host deletion editing the onehost command [1]:<br>
<br>Just change<br><pre> if host['HOST_SHARE/RUNNING_VMS'].to_i != 0
puts "Host still has associated VMs, aborting delete."
else
to
if false
puts "Host still has associated VMs, aborting delete."
else</pre><br><br>Maybe these kind of inconsistencies could be managed by the new onedb command, we'll consider adding this feature for next releases.<br><br>Sorry for the late response; best regards,<br>Carlos.<br>
<br>[1] <a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2011-June/005636.html">http://lists.opennebula.org/pipermail/users-opennebula.org/2011-June/005636.html</a><br><br clear="all"><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">On Thu, Jul 7, 2011 at 7:46 AM, Steffen Neumann <span dir="ltr"><<a href="mailto:sneumann@ipb-halle.de">sneumann@ipb-halle.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
On Wed, 2011-07-06 at 16:25 +0200, Steffen Neumann wrote:<br>
...<br>
<div class="im">> That host surely was running with USEDCPU 1280 at some time,<br>
> but I had to restart oned because of an I/O error on one.db,<br>
> so I guess the book keeping is inconsistent because currently<br>
> there are only two VMs running.<br>
><br>
> So I am back to my original question: how do I tell ONE<br>
> the *correct* USEDCPU / FREECPU ? Delete / Add the whole host again ?<br>
> Or is there anything less invasive I can do ?<br>
<br>
</div>Since I *need* that host to accept VMs now, I migrated all VMs<br>
I could see away from it, and wanted to delete the whole host,<br>
but I got<br>
<br>
oneadmin@cumulus:~/var$ onehost delete 12<br>
Host still has associated VMs, aborting delete.<br>
<br>
So this again revolves around: how do I purge this<br>
non-existing cold dead VM out of ONE's memory ?<br>
Since the one* tools can't figure out what's running there,<br>
I will have to manually modify one.db ? Which tables in there ?<br>
Or did I miss the point ?<br>
<br>
Yours,<br>
Steffen<br>
<br>
<br>
oneadmin@cumulus:~/var$ onehost show 12 -x<br>
<div class="im"><HOST><br>
<ID>12</ID><br>
<NAME>node-blc02</NAME><br>
<STATE>0</STATE><br>
<IM_MAD>im_kvm</IM_MAD><br>
<VM_MAD>vmm_kvm</VM_MAD><br>
<TM_MAD>tm_nfs</TM_MAD><br>
<LAST_MON_TIME>1308659636</LAST_MON_TIME><br>
<CLUSTER>default</CLUSTER><br>
<HOST_SHARE><br>
<HID>12</HID><br>
<DISK_USAGE>0</DISK_USAGE><br>
</div> <MEM_USAGE>8388608</MEM_USAGE><br>
<div><div></div><div class="h5"> <CPU_USAGE>100</CPU_USAGE><br>
<MAX_DISK>0</MAX_DISK><br>
<MAX_MEM>66108092</MAX_MEM><br>
<MAX_CPU>1600</MAX_CPU><br>
<FREE_DISK>0</FREE_DISK><br>
<FREE_MEM>34700700</FREE_MEM><br>
<FREE_CPU>320</FREE_CPU><br>
<USED_DISK>0</USED_DISK><br>
<USED_MEM>31407392</USED_MEM><br>
<USED_CPU>1280</USED_CPU><br>
<RUNNING_VMS>1</RUNNING_VMS><br>
</HOST_SHARE><br>
<TEMPLATE><br>
<ARCH><![CDATA[x86_64]]></ARCH><br>
<CPUSPEED><![CDATA[2400]]></CPUSPEED><br>
<FREECPU><![CDATA[320.0]]></FREECPU><br>
<FREEMEMORY><![CDATA[34700700]]></FREEMEMORY><br>
<HOSTNAME><![CDATA[node-blc02]]></HOSTNAME><br>
<HYPERVISOR><![CDATA[kvm]]></HYPERVISOR><br>
<MODELNAME><![CDATA[AMD Opteron(tm) Processor 6136]]></MODELNAME><br>
<NETRX><![CDATA[0]]></NETRX><br>
<NETTX><![CDATA[0]]></NETTX><br>
<TOTALCPU><![CDATA[1600]]></TOTALCPU><br>
<TOTALMEMORY><![CDATA[66108092]]></TOTALMEMORY><br>
<USEDCPU><![CDATA[1280.0]]></USEDCPU><br>
<USEDMEMORY><![CDATA[31407392]]></USEDMEMORY><br>
</TEMPLATE><br>
</HOST><br>
<br>
<br>
--<br>
IPB Halle AG Massenspektrometrie & Bioinformatik<br>
Dr. Steffen Neumann <a href="http://www.IPB-Halle.DE" target="_blank">http://www.IPB-Halle.DE</a><br>
Weinberg 3 <a href="http://msbi.bic-gh.de" target="_blank">http://msbi.bic-gh.de</a><br>
06120 Halle Tel. <a href="tel:%2B49%20%280%29%20345%205582%20-%201470" value="+4934555821470">+49 (0) 345 5582 - 1470</a><br>
<a href="tel:%2B49%20%280%29%20345%205582%20-%200" value="+4934555820">+49 (0) 345 5582 - 0</a><br>
sneumann(at)IPB-Halle.DE Fax. <a href="tel:%2B49%20%280%29%20345%205582%20-%201409" value="+4934555821409">+49 (0) 345 5582 - 1409</a><br>
<br>
<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>
</div></div></blockquote></div><br>