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

[Xen-users] Clearout (defrag) of sparse file used for Xen VM


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "William Hargrove" <William.Hargrove@xxxxxxxxxxx>
  • Date: Mon, 24 Jul 2006 14:35:57 +0100
  • Delivery-date: Mon, 24 Jul 2006 06:38:06 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcavJhfi+wRQgHKgRHehN+RccD0LqA==
  • Thread-topic: Clearout (defrag) of sparse file used for Xen VM

Hi,

I've got a Xen VM sitting inside a sparse file, as shown below, with the
VM and it's swap file, each at 69gb

ls -lh:

-rw-r--r--  1 root root  69G Jun  5 12:42 hamdev02
-rw-r--r--  1 root root 2.0G Jun  5 14:53 hamdev02-swap

-rw-r--r--  1 root root  69G Jun  5 12:38 hamdev01
-rw-r--r--  1 root root 2.0G Jun  5 14:34 hamdev01-swap

One of the sparse files has now grown quite large, compared with another
VM:

du -sh:

44G     hamdev02
2.0G    hamdev02-swap

2.0G    hamdev01
9.8M    hamdev01-swap

Has anyone got any suggestions on how I could non-destructively reduce
the size of the file? We are starting to run out of space on the
partition these VMs sit on.

I've been looking at various ext3 based tools to try and defragment the
file, copy it to a new file, dump and restore the file etc, but none of
those seem to work.

Short of completely removing the file (and the VM) which I don't want to
do.. I'm a bit short of options.

Any ideas? Thx, Will H. 


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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