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

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


  • To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Fajar A. Nugraha" <list@xxxxxxxxx>
  • Date: Sun, 20 Mar 2011 17:55:03 +0700
  • Delivery-date: Sun, 20 Mar 2011 03:56:16 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

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