Hello, xen-users. Tell me please is it possible in any way to start multiple domUs using the same disk? It looks like the only way to import the same disk into several domUs is achived by mounting this disk in the read-only mode. However I can''t mount the root device in read-only mode (my linux simply won''t boot normally). Is there any alternatives to do this? Clearly, there is no simple solution, as one have to manage all possible conflicts that may occure when two or more domUs will try to modify the same data. -- Artem Pervin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 28, 2007 at 05:49:45PM +0400, ArtemPervin@botik.ru wrote:> Hello, xen-users. > Tell me please is it possible in any way to start multiple domUs using the same disk? > It looks like the only way to import the same disk into several domUs is achived > by mounting this disk in the read-only mode. However I can''t mount the root device in > read-only mode (my linux simply won''t boot normally). Is there any alternatives to do > this? Clearly, there is no simple solution, as one have to manage all possible > conflicts that may occure when two or more domUs will try to modify the same data.You could try to use things like unionfs to make one readonly-device (or an image that is loopback-mounted) available in some other devices, this time readwritable and with a copy-on-write. One could also mount one rootdisk for all vms readonly and one writable disk for each vm, and place symlinks on the rootdisk onto the writable disk where needed; /var/run, /tmp etc. - not an easy job. Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mo, Mai 28, 2007 at 05:49:45 +0400, ArtemPervin@botik.ru wrote:> Hello, xen-users. > > Tell me please is it possible in any way to start multiple domUs using the same disk? > It looks like the only way to import the same disk into several domUs is achived by mounting this disk in the read-only mode. However I can''t mount the root device in read-only mode (my linux simply won''t boot normally). Is there any alternatives to do this? Clearly, there is no simple solution, as one have to manage all possible conflicts that may occure when two or more domUs will try to modify the same data. >Artem, look for example at the article: http://xgu.ru/wiki/Xenomips/en There is an explanation in the article how your task -- using the same partition for the several domUs -- can be solved. (also, there is the Russian version of the page: http://xgu.ru/wiki/Xenomips )> -- > Artem Pervin > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, Igor, Christian. Thank you guys, I`ll try your ideas. And especially thank you, Igor, for a nice Russian resource on Xen.> On Mo, Mai 28, 2007 at 05:49:45 +0400, ArtemPervin@botik.ru wrote: >> Hello, xen-users. >> >> Tell me please is it possible in any way to start multiple domUs using the same disk? >> It looks like the only way to import the same disk into several domUs is achived by mounting this disk in the read-only mode. However I can''t mount the root device in read-only mode (my linux simply won''t boot normally). Is there any alternatives to do this? Clearly, there is no simple solution, as one have to manage all possible conflicts that may occure when two or more domUs will try to modify the same data. >>-- Regards, Artem Pervin mailto:ArtemPervin@botik.ru _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
ArtemPervin@botik.ru wrote:> Hello, xen-users. > > Tell me please is it possible in any way to start multiple domUs using the same disk? > It looks like the only way to import the same disk into several domUs is achived by mounting this disk in the read-only mode. However I can''t mount the root device in read-only mode (my linux simply won''t boot normally). Is there any alternatives to do this? Clearly, there is no simple solution, as one have to manage all possible conflicts that may occure when two or more domUs will try to modify the same data. >Why not use an NFS or similar network based access to a central disk repository? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>> Tell me please is it possible in any way to start multiple domUs using the same disk? >> It looks like the only way to import the same disk into several domUs is achived by mounting this disk in the read-only mode. However I can''t mount the root device in read-only mode (my linux simply won''t boot normally). Is there any alternatives to do this? Clearly, there is no simple solution, as one have to manage all possible conflicts that may occure when two or more domUs will try to modify the same data. >> > Why not use an NFS or similar network based access to a central disk > repository?Hm... That looks like an option. I`ll try this too, thanks. -- Artem Pervin Regards, mailto:ArtemPervin@botik.ru _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users