Dominique H. Schramm
2007-Dec-17 20:01 UTC
[Xen-users] How to query the used space of a domU
Hi folks, i use xen 3.1.0 from sources with debian eth. the space for the domU is a lvm volume. now i have a problem: how can i query the used space of a domU without logging into the domU ? with xm i didn''t find out an option how to query this. thanks, -- Have an nice day, Viele Grüße Dominique H Schramm _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pim van Riezen
2007-Dec-17 20:14 UTC
Re: [Xen-users] How to query the used space of a domU
On Dec 17, 2007, at 21:01 , Dominique H. Schramm wrote:> Hi folks, > > i use xen 3.1.0 from sources with debian eth. the space for > the domU is a lvm volume. > > now i have a problem: > > how can i query the used space of a domU without logging > into the domU ? with xm i didn''t find out an option how to > query this.This information is not available to the hypervisor, it has no knowledge of the filesystem used by the domU. If the filesystem is ext2/ext3, you could query the logical volume in a read-only fashion, for instance by using something like "debugfs /dev/volgroup/volume -R stats | grep ''Free blocks''". I''m not an ext3 export to know for sure if this is advisable (funny in-between states of the filesystem while the guest is writing might emit nasal daemons if accessed by debugfs concurrently). Generally speaking people leave this kind of monitoring to services like SNMP running on the guest. Cheers, Pim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pim van Riezen
2007-Dec-17 20:15 UTC
Re: [Xen-users] How to query the used space of a domU
On Dec 17, 2007, at 21:01 , Dominique H. Schramm wrote:> Hi folks, > > i use xen 3.1.0 from sources with debian eth. the space for > the domU is a lvm volume. > > now i have a problem: > > how can i query the used space of a domU without logging > into the domU ? with xm i didn''t find out an option how to > query this.This information is not available to the hypervisor, it has no knowledge of the filesystem used by the domU. If the filesystem is ext2/ext3, you could query the logical volume in a read-only fashion, for instance by using something like "debugfs /dev/volgroup/volume -R stats | grep ''Free blocks''". I''m not an ext3 export to know for sure if this is advisable (funny in-between states of the filesystem while the guest is writing might emit nasal daemons if accessed by debugfs concurrently). Generally speaking people leave this kind of monitoring to services like SNMP running on the guest. Cheers, Pim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users