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


Re: [Xen-users] Zero LVM

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Zero LVM
From: Thomas Ronner <thomas@xxxxxxxxxx>
Date: Mon, 06 Dec 2010 17:39:41 +0100
Delivery-date: Mon, 06 Dec 2010 08:41:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CFD0E36.7000201@xxxxxxxxxxx>
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: <4CFD0E36.7000201@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20101027 Thunderbird/3.1.6
Hi Jonathan,

On 12/6/10 5:24 PM, Jonathan Tripathy wrote:
Hi Everyone,

When providing Xen guests to cutomers, it is important to make sure that the LVM LV is "zeroed" before use. What is the correct syntax to do this?

I've tried:

dd if=/dev/zero of=/dev/vg0/lvname

however this seems to go on forever (unless my test machine is just slow!)

Any ideas?

That command will use a default block size of 512 bytes which takes, indeed, forever. Try:

dd if=/dev/zero of=/dev/vg0/lvname bs=1M


Xen-users mailing list

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