Hello, I have a Xen dom0 (Debian Etch running xen 3.0.3) running different domUs. DomUs'' disks are LVM2 volumes. Now I have increased the size of one of these LVM volumes so I have to inform to the corresponding domU that its disk has increased its size (to resize it without unmounting it). How can I do this? -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/1 Angel L. Mateo <amateo@um.es>> Hello, > > I have a Xen dom0 (Debian Etch running xen 3.0.3) running different > domUs. DomUs'' disks are LVM2 volumes. Now I have increased the size of > one of these LVM volumes so I have to inform to the corresponding domU > that its disk has increased its size (to resize it without unmounting > it). How can I do this?It seems AFAIK that you cannot tell an alive domU that its disk has grown without detaching and re attaching this disk. So if the disk supports the root filesystem, you can''t. Also, you can''t resize a filesystem without unmounting it ( http://www.howtoforge.com/linux_resizing_ext3_partitions).> > > -- > Angel L. Mateo Martínez > Sección de Telemática > Área de Tecnologías de la Información _o) > y las Comunicaciones Aplicadas (ATICA) / \\ > http://www.um.es/atica _(___V > Tfo: 968367590 > Fax: 968398337 > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Sep 01, 2008 at 03:28:48PM +0200, Alain Barthe wrote:> 2008/9/1 Angel L. Mateo <amateo@um.es> > > > Hello, > > > > I have a Xen dom0 (Debian Etch running xen 3.0.3) running different > > domUs. DomUs'' disks are LVM2 volumes. Now I have increased the size of > > one of these LVM volumes so I have to inform to the corresponding domU > > that its disk has increased its size (to resize it without unmounting > > it). How can I do this? > > > It seems AFAIK that you cannot tell an alive domU that its disk has grown > without detaching and re attaching this disk. So if the disk supports the > root filesystem, you can''t.I think there has been some patches for notifying domU about disk size changes, but those are not integrated into Xen. You could always run LVM in domU, add new disk from dom0 to domU, create PV into it, and the new disk to the existing VG in domU.> Also, you can''t resize a filesystem without unmounting it ( > http://www.howtoforge.com/linux_resizing_ext3_partitions). >I think ext3 nowadays supports online resizing.. ? -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/9/1 Alain Barthe <ab266061@gmail.com>:> 2008/9/1 Angel L. Mateo <amateo@um.es> >> >> I have a Xen dom0 (Debian Etch running xen 3.0.3) running different >> domUs. DomUs'' disks are LVM2 volumes. Now I have increased the size of >> one of these LVM volumes so I have to inform to the corresponding domU >> that its disk has increased its size (to resize it without unmounting >> it). How can I do this? > > It seems AFAIK that you cannot tell an alive domU that its disk has grown > without detaching and re attaching this disk. So if the disk supports the > root filesystem, you can''t.Unfortunately I''ve never seen a way to do it, it would be a nice feature.> Also, you can''t resize a filesystem without unmounting it > (http://www.howtoforge.com/linux_resizing_ext3_partitions).After the kernel is aware of the new disk size, resizing the filesystem is easy, just use resize2fs with a recent enough distro (assuming ext2/3) I prefer not to run LVM2 within the domU, there are already enough layers (md, LVM) where block alignments can get mismatched causing split read/writes and dropped performance) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users