[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xen-users] Resize lvm disk



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


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.