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

[SOLVED] Re: [Xen-users] Wrong size on a domU partition

To: "Fajar A. Nugraha" <list@xxxxxxxxx>
Subject: [SOLVED] Re: [Xen-users] Wrong size on a domU partition
From: kazabe <kazabe@xxxxxxxxx>
Date: Sun, 20 Mar 2011 07:53:05 -0500
Cc: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 20 Mar 2011 06:02:53 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=JUqSfbTKpH+LhXNJrglKtqlYn28lu2uNLTLsI0PWI+A=; b=q2qlEQSBRffqcogiOMsqXmyTYYov73POUAGL2qICoCDMyS4WvRFn4YNJQAk+WidJgI 7QVnHeez1TXrOwF0Lymf4+XLf/b4TlIF4Vq170OT48wHJHjaPonGgDMiJtJ+M+1vkMDP c6g17E8910MTaEZQoXW6YmISTc/p5t566NIAg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=g4rc7YzTajSVvhDJlGLfu2sS0Kbjxt6OGIHcgW8c9b0IwiCc7OJCurzf2z1HAfPlsm /8IOeiBty4esfBnCM0DQtRzgNLIkuAsjt64bbBzzwo0AIzha+xYCahflEQenODvi6tzT Aydl7Q/s3auQvcYWRbI1x86YH5IIXE5skMYJo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=H=oCaMatQQek7nWw7cDN=qaVvhpGCgGYBiNgR@xxxxxxxxxxxxxx>
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: <AANLkTi=Yy+s9K9MBgrMqgfeZ8dYUzNESChd6d9E=B_6d@xxxxxxxxxxxxxx> <AANLkTimbeEg-dGDYaWzX+thRdADkp5a15d7eQzyKge6R@xxxxxxxxxxxxxx> <p0624081fc9aae3d91910@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTikdkx1=1ksV3KGwqZ8==7GPL7AJDxT7qYUGbuYh@xxxxxxxxxxxxxx> <p06240821c9ab80b45194@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTi=H=oCaMatQQek7nWw7cDN=qaVvhpGCgGYBiNgR@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx



2011/3/20 Fajar A. Nugraha <list@xxxxxxxxx>
On Sun, Mar 20, 2011 at 5:01 PM, Simon Hobson <linux@xxxxxxxxxxxxxxxx> wrote:
> Fajar A. Nugraha wrote:
>
>> ... or simply
>>
>> dd if=/dev/zero of=/xen/domains/SRV03/opt-disk.img bs=1024k seek=30720
>> count=0
>>
>> that way no actual write needs to occur, but you get the same result.
>
> I'd never thought of trying a count of zero.
>
> On the other hand, what does this do for I/O performance long term ? Does a
> sparse image that's grown piecemeal over time perform better/worse/no
> different to an image that was written in one go ?

It shouldn't matter much how many times you extend it (as long as the
fs resizer can cope with it). What matters more is whether the file is
preallocated or sparse, with sparse file generally having lower
performance due to fragmentation.

--
Fajar

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

I use the same command without the seek parameter, and now the image disk is displayed correctly.

And i agree too, a sparse image have low performance.

Thanks and regards.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>