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] Zero LVM

To: Thomas Ronner <thomas@xxxxxxxxxx>, Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Zero LVM
From: Jonathan Tripathy <jonnyt@xxxxxxxxxxx>
Date: Mon, 06 Dec 2010 16:52:17 +0000
Cc:
Delivery-date: Mon, 06 Dec 2010 08:55:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CFD11CD.6010109@xxxxxxxxxx>
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> <4CFD11CD.6010109@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

On 06/12/10 16:39, Thomas Ronner wrote:
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


Thanks for that!

I'm now getting No space left on device. I'm guessing I have to use a count parameter. What value would I set it at?

Thanks

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

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