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

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


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: henry ritzlmayr <xen-list@xxxxxx>
  • Date: Wed, 03 Sep 2008 07:57:58 +0200
  • Delivery-date: Tue, 02 Sep 2008 23:05:42 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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.

cheers
Henry


> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Thomas Hager
> Sent: Tuesday, September 02, 2008 10:38
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] how to expand a xen image?
> 
> On Tue, 2008-09-02 at 15:50 +0200, Eric Doutreleau wrote:
> > Hi
> hi,
> 
> > Is there a simple way to expand  the image in order to expand the lvm?
> kinda:
> 
> add another image file as /dev/hdb to your domU, create a physical volume on
> the new disc and extend your volume group with vgextend.
> 
> hth,
> tom.
> 



_______________________________________________
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®.