WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Clearout (defrag) of sparse file used for Xen VM
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>