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] Resize domU block device?

To: Errol Neal <eneal@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Resize domU block device?
From: Ralf Müller <ralf@xxxxxxxx>
Date: Mon, 19 Nov 2007 18:23:02 +0100
Delivery-date: Mon, 19 Nov 2007 09:31:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Resent-date: Mon, 19 Nov 2007 18:30:42 +0100
Resent-from: Ralf Müller <ralf@xxxxxxxx>
Resent-message-id: <5D51330E-AD2B-49B7-8D97-63B5EFC8CE98@xxxxxxxx>
Resent-to: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

Am 19.11.2007 um 17:54 schrieb Errol Neal:

Quoting Ralf Müller <ralf@xxxxxxxx>:

Is there a way for a domU to discover size changes of block
devices modified by dom0?

The domU will be aware of the additional space.

Sure?

How you take advantage of that is depending upon the filesystem and more importantly, the OS. For example, ext3 filesystems must be unmounted before you can resize them. You'll probably need to delete the partition, recreate it, using up all the free space you gave it. That is , unless you use some of the other tools available. I'm talking about using sfdisk, fdisk or parted..

I use lvm for the block devices in dom0 and most of them I give directly
as e.g. xvdc1 to a domU. Within domU the block device is not partitioned
anymore (except they are boot devices - but this is another story), but directly formated with xfs.

The day before I tested to do "lvresize -L+20G" on a logical volume
given to a domU and do a "xfs_growfs" of this volume inside the domU
it belongs to. It didn't notice that until I rebooted the domU.
Thatswhy I asked here. Is this a new feature which is not in my Xen 3.1?

Regards
Ralf

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