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

Re: [Xen-users] Recovering space or "shrink" disk img?

To: "James Pifer" <jep@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Recovering space or "shrink" disk img?
From: "Alex Tomkins" <tomkins@xxxxxxxxxxxx>
Date: Fri, 12 Sep 2008 11:35:17 +0100
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 12 Sep 2008 03:35:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1221178848.11534.43.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1221178848.11534.43.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
If the disk image is just for swap you could get a script which
removes the file after shutdown and recreates it before the machine
starts up.  Just as long as you either recreate the swap outside the
virtual machine or get a script on startup to recreate it inside the
virtual machine you should be able to reclaim the lost disk space
every boot.



-- 
Alex Tomkins <tomkins@xxxxxxxxxxxx>

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

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