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/
Home Products Support Community News


[Xen-users] Will this work? (Zeroing free space)

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Will this work? (Zeroing free space)
From: Aleix Dorca <adorca@xxxxxx>
Date: Fri, 21 Aug 2009 09:31:11 +0200
Delivery-date: Fri, 21 Aug 2009 00:32:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi guys,

I know this is not completely related to Xen but it affects my Xen setup.

I have some Win2003 VMs using disks via iscsi. I do backups using snapshots on LVM, dd and gzip. So far so good.

The thing is that the size of backups increases in time due to VM use although the used space in the VM disk does not increase. I'd like to zero the free space on the ext3 and ntfs partitions so gzip can compress more the files and the backups end up being somewhat smaller.

I wonder if this would work. I'd stop the VM and mount the disk temporarily on a iscsi client (maybe not necessary on ext3 partitions) and then I'd do a "dd if=/dev/zero of=file". After filling all available space on the disk I'd delete the file, thus leaving all free space zeroed.

Has any of you tried something similar?

Thanks a lot,


Xen-users mailing list

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