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] Underlying device resized

To: "Igor Chubin" <igor@xxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] Underlying device resized
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Tue, 12 Jun 2007 16:52:06 +0200
Delivery-date: Tue, 12 Jun 2007 07:50:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070612145107.GE24241@xxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcetAMVG4tA8HpWwT3WTCe/h40ztigAAAyyQ
Thread-topic: [Xen-users] Underlying device resized
 

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Igor Chubin
> Sent: 12 June 2007 15:51
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] Underlying device resized
> 
> 
> Hello, all!
> 
> 
> Please, tell me, how can I say domU
> that its underlying disk device (e.g. LVM logical volume)
> has changed its size?
> 
> I don't want reboot host and reattach the device.

Well, you probably have to, unless you can otherwise make it think the
device has "changed media" or "hotplugged". Since most OS's don't really
expect hard-disks to change size without some sort of hardware event
happening (e.g. hotplug event), the guest OS isn't going to "check" to
see if the disk changed size without some sort of "trigger". 

If it's a PV domain, you may be able to just "xm block-detach" and "xm
block-attach", but for HVM devices, I'm not sure that works without PV
drivers to help out (and I don't think such drivers are available). 

--
Mats
> 
> I do lvresize in the dom0 and after that want to do ext2online
> in the domU.
> I can see that disk is not known to be resized in domU by  
> looking at the domU /proc/partitions file.
> 
> Thank you.
> 
> 
> -- 
> WBR, i.m.chubin
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 
> 



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

<Prev in Thread] Current Thread [Next in Thread>