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] Is XVD live resize possible?

To: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Subject: Re: [Xen-users] Is XVD live resize possible?
From: Ferenc Wagner <wferi@xxxxxxx>
Date: Sun, 06 Apr 2008 14:15:31 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 06 Apr 2008 05:16:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47F8AF71.40908@xxxxxxxxx> (Nico Kadel-Garcia's message of "Sun, 06 Apr 2008 12:09:37 +0100")
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <87d4p3pala.fsf@xxxxxxxxxxxxxxxxx> <47F8AF71.40908@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)
Nico Kadel-Garcia <nkadel@xxxxxxxxx> writes:

> Ferenc Wagner wrote:
>
>> Say I export an LVM logical volume from dom0 as /dev/xvda to the domU:
>>
>> disk = [ 'phy:xenimages/stan,xvda,w' ]
>>
>> No I can lvresize xenimages/stan in dom0, but the domU stays ignorant
>> of this change.  How could I propagate the resize to the domU without
>> rebooting or temporarily breaking its connection to /dev/xvda?  Sort
>> of a SCSI rescan, perhaps?
>
> You have to resize the *file system* on the partition.

Sure, that would be the next step.  But I can't resize the file system
until the underlying partition gets bigger also from the domU point of
view.

> Whether you can use a 'rescue CD' inside the virtualized
> environment, to resize your partitions, is an interesting question
> and may depend on your installed OS quite a bit. You can certainly
> resize non-'/' partitions from the live OS, and use such an
> environment to re-run grub if your boot loader has moved or gotten
> confused.

I'm using LVM, so resizing anything is very well possible from the
running OS, as soon as I have the (virtual) raw disk space for it.  A
reboot would certainly provide that, but the question is exactly how
to avoid a reboot.  It's a low level block device problem, below that
of filesystems or even LVM.
-- 
Thanks,
Feri.

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