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

Re: [Xen-users] Re: RE: how to expand a xen image?


  • To: "henry ritzlmayr" <xen-list@xxxxxx>
  • From: Heiko <rupertt@xxxxxxxxx>
  • Date: Wed, 3 Sep 2008 16:42:13 +0200
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 03 Sep 2008 07:42:56 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=JBvMzrQUM689xEapm/Nr3fH1Z16yADMa/Qhy0IDEkkRd/xf/n2wu2GW7tcvtQRJAdj 2IoZHjI1SncwSOya1dabo+221awnRdo72gFMjHNgf5S/NT0jDnbfR7TOD2QolzTYmBP0 psSDXk+NllQPbWdP5Ge7vfw6+9f6xhSADfI9w=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Wed, Sep 3, 2008 at 9:38 AM, henry ritzlmayr <xen-list@xxxxxx> wrote:
> Am Mittwoch, den 03.09.2008, 08:41 +0200 schrieb Heiko:
>> On Wed, Sep 3, 2008 at 7:57 AM, henry ritzlmayr <xen-list@xxxxxx> wrote:
>> > Am Dienstag, den 02.09.2008, 11:12 -0400 schrieb Dustin Henning:
>> >>       I'm not especially familiar with dd, but couldn't it be used for
>> >> this?  It seems I recall something about skipping blocks before writing, 
>> >> so
>> >> if you skip enough blocks to go to the end of the file and then write 
>> >> enough
>> >> blocks to extend it as much as you want, wouldn't this make the single 
>> >> disk
>> >> that much bigger the next time it is mounted to a domU?  Obviously it 
>> >> would
>> >> be wise to back-up the image first, and this would probably be an offline
>> >> operation, but it seems to me it might be better (or at least easier to
>> >> manage) than having two physical volumes (unless you want to use two real
>> >> disks or something).
>> >>       Dustin
>> >
>> > If you like it within one file:
>> >
>> > dd if=/dev/zero bs=1G count=5 >> imagefile
>> >
>> > adds five gigs to your imagefile.
>> >
>> Hello,
>>
>> I did it a couple of time the following way:
>>
>> shut down the VM,
>>
>> dd if=/dev/zero of=/VM/myxen_back_grow.img bs=1M conv=notrunc
>> count=5000 seek=10240
>> count is the size that you wanna add(here 5GB more)
>
> If you do it that way, be careful on the seek parameter. It has to be at
> least bigger than the original file and for performance reasons (sparse
> file) it should exactly match the file size.
>
> ThatÂt why I prefer it the way I posted it above which does the same
> thing but avoiding both problems.
>
sounds and looks much better, thx for that advice, i did put it into
my documentation.

cheers

Rupert
> Henry
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
_______________________________________________
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®.