xen-users
RE: [xen-users] Resize lvm disk
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
|
|
|