Dylan Martin
2007-Apr-04 22:47 UTC
[Xen-users] Create and mount new volumes on running guest?
I''m looking into using Xen and I was wondering if it''s possible to create and add a new volume on a running guest? For instance, say I have a bunch of unallocated space on an LVM physical volume on dom0. I have a running domU system that needs more disk. Can I create a new lv on dom0 and make it available to domU without rebooting domU? If so, how does it look from domU''s perspective? In a related question, can I grow volumes while domU is running? I imagine it would look like (1) grow volume on dom0, (2) grow volume on domU, (3) resize FS on domU. And I''ll just throw this out there: I''m thinking about virtualizing a lot of servers that I really don''t want to reboot. Are there any situations in Xen where a reboot is required where it usually isn''t when running straight on the hardware? Are there any situations that normally require a reboot that Xen allows me to avoid rebooting? Thanks! -Dylan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dominik Klein
2007-Apr-05 08:40 UTC
Re: [Xen-users] Create and mount new volumes on running guest?
> For instance, say I have a bunch of unallocated space on an LVM > physical volume on dom0. I have a running domU system that needs more > disk. Can I create a new lv on dom0 and make it available to domU > without rebooting domU? If so, how does it look from domU''s > perspective?You can assign new block devices to a domU while the domU is running with "xm block-attach". Wether that''s a lv, an iscsi disc or a disc image should not matter.> In a related question, can I grow volumes while domU is running? I > imagine it would look like (1) grow volume on dom0, (2) grow volume on > domU, (3) resize FS on domU.I did not try that myself and read different things about it. But if you say "grow volume on domU", that sounds like you (want to) run lvm in domU again, which should not be necessary imho. Regards Dominik _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users