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] Can't see changes in LV Size inside domU (after lvextend

To: Bruno Bertechini <bruno.bertechini@xxxxxxxxxxx>
Subject: Re: [Xen-users] Can't see changes in LV Size inside domU (after lvextend on dom0)
From: Sadique Puthen <sputhenp@xxxxxxxxxx>
Date: Sat, 13 Sep 2008 02:34:23 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 12 Sep 2008 14:06:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <0525F0F9CFA849E4B4E98E76CC737279@xxxxxxxxxxxxxxx>
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: <0525F0F9CFA849E4B4E98E76CC737279@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080501)
Bruno Bertechini wrote:
>
> Hi guys,
>
>  
>
> I’ve seen this post regarding “lvm resize” and this contains all the
> information I need to resize a disk inside domU :
>
>  
>
> http://lists.xensource.com/archives/html/xen-users/2006-11/msg00019.html
>
>  
>
> From this post:
>
>  
>
> “With this I can extend the LVs in the Dom0, and either shutdown the DomU and
> resize2fs from Dom0 or even (tested on test VMs and low-use production ones)
> resize online within the DomU. Works fine and I still get the manageability
> of LVM within my DomU's without actually using LVM within them.”
>  
> ---------
>
> I have the same situation from this post, which I think is the Best
> approach for manageability of disk space on Xen domains.
>
>  
>
> I have a VG called vm_guests and 03 LV’s on it: lv_guest1_root,
> lv_guest1_swap, lv_guest1_export.
>
>  
>
> I have them mapped on my xen config file:
>
>  
>
> disk=[ 'phy:/dev/vm_guests/lv_guest1_root,xvda2,w',
>
>        'phy:/dev/vm_guests/lv_guest1_swap,xvda1,w',
>
>        'phy:/dev/vm_guests/lv_guest1_export,xvda3,w' ]
>
>  
>
> This works fine for me.
>
>  
>
> The problem here is:
>
>  
>
> On dom0 if I use lvextend to resize lv_guest1_export for example, I
> can’t see the changes on my domU . I don’t know why. If I understand
> it clearly (based on xen documentation and also on the post linked in
> the beginning of this email), these kind of changes should reflect
> automatically on domU instances.
>
>  
>
> à Steps completed: lvextend –L +10G /dev/vm_guests/lv_guest1_export
>
>  
>
> If I try to resize my partition inside domU (guest1) – with reiserfs I
> got :
>
>  
>
> ----- WITHOUT REBOOT ------
>
> guest1:~ # resize_reiserfs /dev/xvda3
>
> resize_reiserfs 3.6.19 (2003 www.namesys.com)
>
>  
>
> /dev/xvda3 already is of the needed size. Nothing to be done
>
>  
>
> --- AFTER REBOOT ---
>
>  
>
> guest1:~ # resize_reiserfs /dev/xvda3
>
> resize_reiserfs 3.6.19 (2003 www.namesys.com)
>
>  
>
> resize_reiserfs: On-line resizing finished successfully.
>
>  
>
>  
>
> Is that possible to make the new space available to domU WITHOUT
> REBOOT the guest ?
>

No, check out
http://lists.xensource.com/archives/html/xen-devel/2008-09/msg00159.html
It's in the todo list for developers. Once upon a time there was a "xm
block-reconfigure" which is broken and is not working anymore with
current version.

--Sadique
>
>  
>
> Thanks a lot for you help!
>
>  
>
> Best Regards
>
>  
>
> Bruno Bertechini
>
>  
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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>