[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] xapi VDI.getPhysicalUtilisation not equals .vhd file size on disk in NFS


  • To: xen-api@xxxxxxxxxxxxx
  • From: ND KK <k110168@xxxxxxxxx>
  • Date: Wed, 8 Aug 2012 11:42:48 +0800
  • Delivery-date: Wed, 08 Aug 2012 03:43:02 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

Hello all,

I have a problem,
We use XCP 1.1 and add a NFS volume on it. This NFS volume from a NFS Server which install on CentOS 5.6.
When we provided many VMs in this SR, we find that the sum of  all VDIs Physical Utilisation (get from xapi) in this SR greater than the SR's Physical Utilisation .

Then, I ssh to the NFS server check the VHD files size
I use command: ls -lh  VHD_FILE_NAME
It show that 
-rw-r--r-- 1 root root  4.9G  Aug  8 02:38 e77405a8-cb42-449c-b20e-912fe2a46ac2.vhd

use command: du -sh VHD_FILE_NAME
It show that 
3.0G  e77405a8-cb42-449c-b20e-912fe2a46ac2.vhd

Why they are different?


The sum of all VDIs physical utilisation get from Xapi "VDI.getPhysicalUtilisation" is like the sum of  ls -lh VHD_FILE_NAME
The SR's physical utilisation get from Xapi "SR.getPhysicalUtilisation" is like the sum of  du -sh VHD_FILE_NAME

Is it a XAPI's BUG?



_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.