[one-users] VMs in PENDING [was: Fixing up USED / FREECPU ?]

Steffen Neumann sneumann at ipb-halle.de
Wed Jul 6 22:46:08 PDT 2011


Hi,

On Wed, 2011-07-06 at 16:25 +0200, Steffen Neumann wrote:
...
> That host surely was running with USEDCPU 1280 at some time, 
> but I had to restart oned because of an I/O error on one.db,
> so I guess the book keeping is inconsistent because currently
> there are only two VMs running. 
> 
> So I am back to my original question: how do I tell ONE 
> the *correct* USEDCPU / FREECPU ? Delete / Add the whole host again ?
> Or is there anything less invasive I can do ?

Since I *need* that host to accept VMs now, I migrated all VMs 
I could see away from it, and wanted to delete the whole host,
but I got 

	oneadmin at cumulus:~/var$ onehost delete 12
	Host still has associated VMs, aborting delete.

So this again revolves around: how do I purge this
non-existing cold dead VM out of ONE's memory ?
Since the one* tools can't figure out what's running there,
I will have to manually modify one.db ? Which tables in there ?
Or did I miss the point ?

Yours,
Steffen


oneadmin at cumulus:~/var$ onehost show 12 -x
<HOST>
  <ID>12</ID>
  <NAME>node-blc02</NAME>
  <STATE>0</STATE>
  <IM_MAD>im_kvm</IM_MAD>
  <VM_MAD>vmm_kvm</VM_MAD>
  <TM_MAD>tm_nfs</TM_MAD>
  <LAST_MON_TIME>1308659636</LAST_MON_TIME>
  <CLUSTER>default</CLUSTER>
  <HOST_SHARE>
    <HID>12</HID>
    <DISK_USAGE>0</DISK_USAGE>
    <MEM_USAGE>8388608</MEM_USAGE>
    <CPU_USAGE>100</CPU_USAGE>
    <MAX_DISK>0</MAX_DISK>
    <MAX_MEM>66108092</MAX_MEM>
    <MAX_CPU>1600</MAX_CPU>
    <FREE_DISK>0</FREE_DISK>
    <FREE_MEM>34700700</FREE_MEM>
    <FREE_CPU>320</FREE_CPU>
    <USED_DISK>0</USED_DISK>
    <USED_MEM>31407392</USED_MEM>
    <USED_CPU>1280</USED_CPU>
    <RUNNING_VMS>1</RUNNING_VMS>
  </HOST_SHARE>
  <TEMPLATE>
    <ARCH><![CDATA[x86_64]]></ARCH>
    <CPUSPEED><![CDATA[2400]]></CPUSPEED>
    <FREECPU><![CDATA[320.0]]></FREECPU>
    <FREEMEMORY><![CDATA[34700700]]></FREEMEMORY>
    <HOSTNAME><![CDATA[node-blc02]]></HOSTNAME>
    <HYPERVISOR><![CDATA[kvm]]></HYPERVISOR>
    <MODELNAME><![CDATA[AMD Opteron(tm) Processor 6136]]></MODELNAME>
    <NETRX><![CDATA[0]]></NETRX>
    <NETTX><![CDATA[0]]></NETTX>
    <TOTALCPU><![CDATA[1600]]></TOTALCPU>
    <TOTALMEMORY><![CDATA[66108092]]></TOTALMEMORY>
    <USEDCPU><![CDATA[1280.0]]></USEDCPU>
    <USEDMEMORY><![CDATA[31407392]]></USEDMEMORY>
  </TEMPLATE>
</HOST>


-- 
IPB Halle                    AG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann          http://www.IPB-Halle.DE
Weinberg 3                   http://msbi.bic-gh.de
06120 Halle                  Tel. +49 (0) 345 5582 - 1470
                                  +49 (0) 345 5582 - 0
sneumann(at)IPB-Halle.DE     Fax. +49 (0) 345 5582 - 1409





More information about the Users mailing list