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] increase size for dom guest using lvm online

To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] increase size for dom guest using lvm online
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Wed, 19 Aug 2009 13:55:45 +0700
Delivery-date: Tue, 18 Aug 2009 23:56:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D016DE2B3@trantor>
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>
References: <988918.84894.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D016DE2B3@trantor>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, Aug 16, 2009 at 6:25 PM, James
Harper<james.harper@xxxxxxxxxxxxxxxx> wrote:
>>
>> could we increase the size for dom guest online without rebooting or
>> unmounting?

>
> For a PV DomU (or a HVM DomU using PV drivers), there is no mechanism
> for the backend (Dom0) to notify the frontend (DomU) of a change in
> device size. I suspect that HVM DomU's have the same problems.
>
> So no, it cannot be done without rebooting.


There's a workaround, actually. For PV domU anyway.
While you cannot get domU to pickup device size change online, you CAN
attach new block device. So if you use LVM on domU as well, you can
simply attach a new block device, add it as new PV, then extend domU's
LV.

So you get the ability to grow domU's storage online at the cost of
extra complexity (having LVM on domU).

-- 
Fajar

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