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

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

To: "'Thomas Hager'" <duke@xxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] how to expand a xen image?
From: "Dustin Henning" <Dustin.Henning@xxxxxxxxxxx>
Date: Tue, 2 Sep 2008 11:12:59 -0400
Cc:
Delivery-date: Tue, 02 Sep 2008 08:13:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1220366296.1930.19.camel@xxxxxxxxxxxxxxxxxxxxx>
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>
Organization: PRD, Inc.
References: <48BD44AD.8080909@xxxxxxxxxxxxxx> <1220366296.1930.19.camel@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: Dustin.Henning@xxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckNCaFfU/ZNGL9/Ry+lL8XGwGM+lgABHhOg
        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

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

-- 
Thomas "Duke" Hager                               duke@xxxxxxxxxx
GPG: 1024D/D27F858C            http://www.sigsegv.at/gpg/duke.gpg
=================================================================
"Never Underestimate the Power of Stupid People in Large Groups."




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