[fedora-virt] Internal Snapshots & Used-Space

Kevin Wolf kwolf at redhat.com
Thu Oct 10 08:04:27 UTC 2013


Am 09.10.2013 um 18:02 hat Eric Blake geschrieben:
> On 10/09/2013 08:34 AM, Jorge Fábregas wrote:
> > Hi,
> > 
> > I'm using the new snapshot features of virt-manager and since these are
> > internal snapshots I'm wondering how to figure out how much space a
> > given snapshot is currently using.
> > 
> > Previously I used base-images+overlays and I could just check the size
> > of the overlay file to get an idea.  If I use "qemu-img info" on my
> > current disks (the ones with internal snapshots) there's a "VM size"
> > column there but it shows 0 for offline snapshots.
> > 
> > Is there a way to get the actual used-space for an internal snapshot?
> 
> Not via libvirt.  I'm not even sure if qemu-img can do that yet,
> although the new 'qemu-img map' subcommand to be added in qemu 1.7 might
> be the sort of tool for it.  It's probably worth asking on the qemu list.

I'm not even sure what the correct result would be. Internal snapshots
are independent from each other (i.e. there is no parent-child
relationship between them), so for which snapshot would a shared cluster
be accounted?

Kevin


More information about the virt mailing list