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 lvm disk

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [xen-users] Resize lvm disk
From: Thomas King <tking@xxxxxxxxxx>
Date: Thu, 16 Aug 2007 09:17:02 -0400
Delivery-date: Thu, 16 Aug 2007 06:17:39 -0700
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

Hi,

Would partprobe tell your kernel what it needs to know?

Thomas King

-----Original Message-----

Message: 1
Date: Wed, 15 Aug 2007 12:05:50 -0700
From: "Kraska, Joe A \(US SSA\)" <joe.kraska@xxxxxxxxxxxxxx>
Subject: RE: [xen-users] Resize lvm disk
To: "Dylan Martin" <dmartin@xxxxxxxxxxxx>
Cc: Andy Smith <andy@xxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Message-ID:
                <09D59AEF0405D740BDCA2FAC0E0EA976033EC5F9@xxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain;                 charset="us-ascii"


BTW, it's important to note that if one is using LVM's, "resizing" a
disk image is completely unnecessary. All one really has to do is add an
additional virtual disk and then make this part of the LVM using
system-config-lvm.

Doing this "live," I don't know how to do. That's a hypervisor issue,
essentially "hotplug" support for virtual disks.

Joe.

-----Original Message-----
From: Dylan Martin [mailto:dmartin@xxxxxxxxxxxx]
Sent: Wednesday, August 15, 2007 11:30 AM
To: Kraska, Joe A (US SSA)
Cc: Andy Smith; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [xen-users] Resize lvm disk

I think I actually made this work once, but it was really convoluted.

Basically, I had to have two separate LVs, one partitioned with /boot
and one not partitioned, whole thing was LVM.  I could resize the
underlying LV on dom0 and then in domU I could do a pvscan?.. or
something like that, to get LVM on domU to recognize the change.
Unfortunately, getting the kernel's copy of the partition info to change
was not easy.  I did so many iterations of "OK, try this..."
with LVM, kpartx etc.. that I couldn't tell you how I finally got it to
work.

Actually, I might have done all the resizing from insize dom0...

Anyway, unless I'm just wrong and I didn't actually do this (a
possibility), it is possible.

Another option is to hot-add additional LVs to domU and then add them to
the LVM as additional PVs.  

-Dylan

>
> ...without rebooting the domU or detaching/re-attaching the block
> device?
>
> No; must resize the hard drive and reboot, the do the LVM stuff.
>
> Joe.
>

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>