On Tue, May 13, 2008 at 05:42:38PM +0100, Richard W.M. Jones wrote:
I'm pleased to announce the most recent release of virt-df
(2.1.0).
Virt-df is 'df' for virtual guests. Run the program on the host / dom0
to display disk space used and available on all partitions on all
guests. You don't need to run any sort of program/agent within the
guest.
Home page:
http://et.redhat.com/~rjones/virt-df/
Source/binaries:
http://et.redhat.com/~rjones/virt-df/files/
Developer repository:
http://hg.et.redhat.com/virt/applications/virt-df--devel
This version supports most common filesystems and partitioning
schemes, including:
- Linux ext2/3
- DOS FAT32
- Windows NTFS
- Linux LVM2 (volume groups and logical volumes)
- Primary and extended disk partitions
- Linux swap
- Linux suspend partition
I'm assuming this only works for raw file & block devices ? Are you planning
to support the funky QCow / VMDK formats too ? The other thing that could
be annoying is that Fedora 9 support for encrypting all volumes - might need
to prompt for a decryption key for that.
Included also is an experimental command line tool called
'diskzip'
which intelligently compresses disk images by leaving out the bits
which aren't actually used in the filesystems / partitions / volume
groups contained within.
That's pretty neat. Which file systems does that work for ? VMWare have
a funky guest tool which tries to let you get to a similar point. It works
by basically openning a file inside the guest VM and filling it with zeros
until the entire disk is full. THeir backend can then detect and discard
all the sectors with zeros. Understanding the filesystem metdata is a much
nicer way todo this :-)
Regards,
Daniel
--
|: Red Hat, Engineering, Boston -o-
http://people.redhat.com/berrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org -o-
http://ovirt.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|