Re: a couple of questions -Newbie

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

 



On Mon, Mar 03, 2008 at 10:48:01PM +0000, Richard W.M. Jones wrote:
> On Mon, Mar 03, 2008 at 03:38:46PM -0700, Spencer Parker wrote:
> > I actually just saw this and started playing around with it.  Should 
> > actually do what I need to do for that part.  The next thing I need to 
> > monitor is disk usage.
> 
> Disk usage is tricky to monitor from the hypervisor.  Have a look
> around for my 'virt-df' tool (which doesn't actually work at the
> moment -- it needs a bit of loving).  Here are a couple of starting
> points:
> 
>   http://www.redhat.com/archives/libvir-list/2007-September/msg00266.html
> 
>   http://hg.et.redhat.com/virt/applications/virt-top--devel?f=ba4432dc8714;file=virt-df/README

I tidied up virt-df a bit, added a manpage and pushed it out to the
mercurial repository above.  I might release it in a later Fedora for
people to try out.  At the moment it doesn't really understand LVM,
making it a little bit useless, but that's actually not too hard to
add -- a worthwhile mini-project for someone wanting to learn OCaml.

# virt-df -c qemu:///system 
Filesystem            1K-blocks       Used  Available Type
f9x32kvm:hda1            190740      24817     165923 Linux ext2/3
f9x32kvm:hda2                                         LVM2 not supported yet
rhel51x32kvm:hda1         99168      14977      84191 Linux ext2/3
rhel51x32kvm:hda2                                     LVM2 not supported yet

# virt-df -c qemu:///system --human-readable
Filesystem                 Size       Used  Available Type
f9x32kvm:hda1         186.3 MiB   24.2 MiB  162.0 MiB Linux ext2/3
f9x32kvm:hda2                                         LVM2 not supported yet
rhel51x32kvm:hda1      96.8 MiB   14.6 MiB   82.2 MiB Linux ext2/3
rhel51x32kvm:hda2                                     LVM2 not supported yet

# virt-df -c qemu:///system --inodes
Filesystem               Inodes       IUse      IFree Type
f9x32kvm:hda1             50200         36      50164 Linux ext2/3
f9x32kvm:hda2                                         LVM2 not supported yet
rhel51x32kvm:hda1         26104         33      26071 Linux ext2/3
rhel51x32kvm:hda2                                     LVM2 not supported yet

I wonder if we can do 'virt-free' and 'virt-ps' ...  Quite ambitious :-)

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]