Hello, all! Please, tell me, how can I say domU that its underlying disk device (e.g. LVM logical volume) has changed its size? I don''t want reboot host and reattach the device. I do lvresize in the dom0 and after that want to do ext2online in the domU. I can see that disk is not known to be resized in domU by looking at the domU /proc/partitions file. Thank you. -- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Igor Chubin > Sent: 12 June 2007 15:51 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Underlying device resized > > > Hello, all! > > > Please, tell me, how can I say domU > that its underlying disk device (e.g. LVM logical volume) > has changed its size? > > I don''t want reboot host and reattach the device.Well, you probably have to, unless you can otherwise make it think the device has "changed media" or "hotplugged". Since most OS''s don''t really expect hard-disks to change size without some sort of hardware event happening (e.g. hotplug event), the guest OS isn''t going to "check" to see if the disk changed size without some sort of "trigger". If it''s a PV domain, you may be able to just "xm block-detach" and "xm block-attach", but for HVM devices, I''m not sure that works without PV drivers to help out (and I don''t think such drivers are available). -- Mats> > I do lvresize in the dom0 and after that want to do ext2online > in the domU. > I can see that disk is not known to be resized in domU by > looking at the domU /proc/partitions file. > > Thank you. > > > -- > WBR, i.m.chubin > > > _______________________________________________ > 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
...> > Please, tell me, how can I say domU > > that its underlying disk device (e.g. LVM logical volume) > > has changed its size? > > > > I don''t want reboot host and reattach the device. > > Well, you probably have to, unless you can otherwise make it think the > device has "changed media" or "hotplugged". Since most OS''s don''t really > expect hard-disks to change size without some sort of hardware event > happening (e.g. hotplug event), the guest OS isn''t going to "check" to > see if the disk changed size without some sort of "trigger". > > If it''s a PV domain, you may be able to just "xm block-detach" and "xm > block-attach", but for HVM devices, I''m not sure that works without PV > drivers to help out (and I don''t think such drivers are available). >Thank you, Mats. This domain is PV and Linux is running in it. I understand that I can reattach device, but this is impossible in my case, because I can''t unmount fs in the domU. May be I could trigger hotplug event without reaataching device? Something like "Please, rescan!" in the domU. -- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > Well, you probably have to, unless you can otherwise make it think the > device has "changed media" or "hotplugged". Since most OS''s don''t really > expect hard-disks to change size without some sort of hardware event > happening (e.g. hotplug event), the guest OS isn''t going to "check" to > see if the disk changed size without some sort of "trigger". > > If it''s a PV domain, you may be able to just "xm block-detach" and "xm > block-attach", but for HVM devices, I''m not sure that works without PV > drivers to help out (and I don''t think such drivers are available).May be it''s possible to send hotplug event that device is attached without real attaching? Or do something like partprobe (I know that partprobe is useless in my case; it''s just an example). It''s very sad to understand that I have LVMs and ext2resize and possibility of hotplug device attaching but despite of this I have to reboot (or go into single user mode yo unmount filesystem) my domU and make my service unavailable for some time. -- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
For PV, xm block-configure supposedly used to do this. I need to do this all the time but I''ve never been able to get things to work with any recent Xen. I have on average 120 to 150 LVM volumes per node on a cluster of 16 nodes (we now have multiple clusters too). Having to reboot a VM just to pick this up is actually quite a pain. Does anyone know how to make this work? On Jun 12, 2007, at 9:52 AM, Petersson, Mats wrote:> > >> -----Original Message----- >> From: xen-users-bounces@lists.xensource.com >> [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of >> Igor Chubin >> Sent: 12 June 2007 15:51 >> To: xen-users@lists.xensource.com >> Subject: [Xen-users] Underlying device resized >> >> >> Hello, all! >> >> >> Please, tell me, how can I say domU >> that its underlying disk device (e.g. LVM logical volume) >> has changed its size? >> >> I don''t want reboot host and reattach the device. > > Well, you probably have to, unless you can otherwise make it think the > device has "changed media" or "hotplugged". Since most OS''s don''t > really > expect hard-disks to change size without some sort of hardware event > happening (e.g. hotplug event), the guest OS isn''t going to "check" to > see if the disk changed size without some sort of "trigger". > > If it''s a PV domain, you may be able to just "xm block-detach" and "xm > block-attach", but for HVM devices, I''m not sure that works without PV > drivers to help out (and I don''t think such drivers are available). > > -- > Mats >> >> I do lvresize in the dom0 and after that want to do ext2online >> in the domU. >> I can see that disk is not known to be resized in domU by >> looking at the domU /proc/partitions file. >> >> Thank you. >> >> >> -- >> WBR, i.m.chubin >> >> >> _______________________________________________ >> 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-- Jayson Vantuyl Systems Architect Engine Yard jvantuyl@engineyard.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users