* vbd resize
@ 2009-07-09 10:11 James Harper
2009-07-09 11:17 ` Pasi Kärkkäinen
0 siblings, 1 reply; 5+ messages in thread
From: James Harper @ 2009-07-09 10:11 UTC (permalink / raw)
To: xen-devel
I'm investigating what would be required for a DomU's block device to be
resized (well... grown at least) without having to reboot the DomU.
Does the commercial product support this?
Thanks
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vbd resize
2009-07-09 10:11 vbd resize James Harper
@ 2009-07-09 11:17 ` Pasi Kärkkäinen
2009-07-15 8:20 ` Pasi Kärkkäinen
0 siblings, 1 reply; 5+ messages in thread
From: Pasi Kärkkäinen @ 2009-07-09 11:17 UTC (permalink / raw)
To: James Harper; +Cc: xen-devel
On Thu, Jul 09, 2009 at 08:11:09PM +1000, James Harper wrote:
> I'm investigating what would be required for a DomU's block device to be
> resized (well... grown at least) without having to reboot the DomU.
>
> Does the commercial product support this?
>
This has been discussed here a couple of times, and it's also a feature
request for Xen 4.0.
I don't think it would be a lot of code to support this.. the upstream Linux
kernel already supports SCSI disk online resizing. Also RHEL 5.3 kernel supports
online SCSI disk resizing.
Earlier thread:
http://lists.xensource.com/archives/html/xen-devel/2008-09/msg00158.html
-- Pasi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vbd resize
2009-07-09 11:17 ` Pasi Kärkkäinen
@ 2009-07-15 8:20 ` Pasi Kärkkäinen
0 siblings, 0 replies; 5+ messages in thread
From: Pasi Kärkkäinen @ 2009-07-15 8:20 UTC (permalink / raw)
To: James Harper; +Cc: xen-devel
On Thu, Jul 09, 2009 at 02:17:24PM +0300, Pasi Kärkkäinen wrote:
> On Thu, Jul 09, 2009 at 08:11:09PM +1000, James Harper wrote:
> > I'm investigating what would be required for a DomU's block device to be
> > resized (well... grown at least) without having to reboot the DomU.
> >
> > Does the commercial product support this?
> >
>
> This has been discussed here a couple of times, and it's also a feature
> request for Xen 4.0.
>
> I don't think it would be a lot of code to support this.. the upstream Linux
> kernel already supports SCSI disk online resizing. Also RHEL 5.3 kernel supports
> online SCSI disk resizing.
>
> Earlier thread:
> http://lists.xensource.com/archives/html/xen-devel/2008-09/msg00158.html
>
James: You might have enough knowledge of Xen internals to add support for
vbd resize to Xen hypervisor/tools :)
Then the next step would be to support it in domU kernels/drivers.
-- Pasi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vbd resize
2013-03-02 23:27 James Harper
@ 2013-03-02 23:37 ` James Harper
0 siblings, 0 replies; 5+ messages in thread
From: James Harper @ 2013-03-02 23:37 UTC (permalink / raw)
To: James Harper, xen-devel
>
> I'm trying to add vbd resize to GPLPV, but it doesn't seem to work:
>
> xm block-attach w2k3test32 phy:/dev/vg-xen/virt-test-0 hdb w
>
> xenstore-read /local/domain/0/backend/vbd/377/832/sectors
> =44056576
>
> lvextend --size=+1M /dev/vg-xen/virt-test-0
>
> xenstore-read /local/domain/0/backend/vbd/377/832/sectors
> =44056576
>
> The xenstore backend isn't updated to reflect the new size of the device... a
> strings | grep size of xen-blkback.ko module says:
> <6>xen-blkback:VBD Resize: Domid: %d, Device: (%d, %d)
> <6>xen-blkback:VBD Resize: new size %llu
> <4>xen-blkback:Error writing new size
>
> So the code is definitely there, it's just not noticing that the device has been
> resize.
>
> Any suggestions?
>
My bad. I just checked the code and there actually has to be ring activity for the resize to be detected.
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* vbd resize
@ 2013-03-02 23:27 James Harper
2013-03-02 23:37 ` James Harper
0 siblings, 1 reply; 5+ messages in thread
From: James Harper @ 2013-03-02 23:27 UTC (permalink / raw)
To: xen-devel
I'm trying to add vbd resize to GPLPV, but it doesn't seem to work:
xm block-attach w2k3test32 phy:/dev/vg-xen/virt-test-0 hdb w
xenstore-read /local/domain/0/backend/vbd/377/832/sectors
=44056576
lvextend --size=+1M /dev/vg-xen/virt-test-0
xenstore-read /local/domain/0/backend/vbd/377/832/sectors
=44056576
The xenstore backend isn't updated to reflect the new size of the device... a strings | grep size of xen-blkback.ko module says:
<6>xen-blkback:VBD Resize: Domid: %d, Device: (%d, %d)
<6>xen-blkback:VBD Resize: new size %llu
<4>xen-blkback:Error writing new size
So the code is definitely there, it's just not noticing that the device has been resize.
Any suggestions?
Thanks
James
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-02 23:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 10:11 vbd resize James Harper
2009-07-09 11:17 ` Pasi Kärkkäinen
2009-07-15 8:20 ` Pasi Kärkkäinen
2013-03-02 23:27 James Harper
2013-03-02 23:37 ` James Harper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.