[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "Fajar A. Nugraha" <list@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>




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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.