Hello I have two domains running on the same Dom0. I want to allocate shared disk to both of them (i want to simulate cluster envinroment). Does anyone know whether this is possible and if so how can it be done? This is my disk defenition for the domains - DomU1: disk=[''phy:vgxen01/lv_linva04_hda,hda,w'',''phy:vgxen01/lv_linva04_06_hdb, hdb,w''] DomU2: disk=[''phy:vgxen01/lv_linva06_hda,hda,w'',''phy:vgxen01/lv_linva04_06_hdb, hdb,w''] When trying to start second DomU i am getting the following - Error: Device 5632 (vbd) could not be connected. Device /dev/vgxen01/lv_linva04_06_hdb is mounted in a guest domain, and so cannot be mounted now. Cheers Niv This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Niv Elad wrote:> disk=[''phy:vgxen01/lv_linva06_hda,hda,w'',*''phy:vgxen01/lv_linva04_06_hdb,hdb,w''*] > When trying to start second DomU i am getting the following - > Error: Device 5632 (vbd) could not be connected. > Device /dev/vgxen01/lv_linva04_06_hdb is mounted in a guest domain, > and so cannot be mounted now.You can add a bang after the w to force Xen to allow you to mount it anyway. You just have to remember to use a cluster-aware filesystem like OCFS2 og GFS so the two VMs don''t get in each others way. The config-line would then be: disk=[''phy:vgxen01/lv_linva06_hda,hda,w'',*''phy:vgxen01/lv_linva04_06_hdb,hdb,w!''*] -- Anders _______________________________________________ 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 Niv Elad > Sent: 08 March 2007 13:28 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Shared storage between Domu''s > > Hello > > I have two domains running on the same Dom0. > I want to allocate shared disk to both of them (i want to > simulate cluster envinroment). > > Does anyone know whether this is possible and if so how can > it be done?Yes, but if you actually want to write to the file-system, you will need a cluster-file-system that "tolerates" multiple writers to the same file-system. Most filesystems assume that there can only be writes from one origin, and thus that the writes are "synchronized" by the writer. In a cluser-file-system, this is not assumed, and thus there are mechanisms in the filesystem to cope with multiple writes from different machines (or such). I''m not an expert on cluster file systems, but google turns up: OCFS, GFS and Lustre amongst some other things. For a very "easy" but not optimal solution, you may want to set up an NFS mount and let the guests use that - NFS isn''t a cluster file system, but it allows multiple machines to write to the same "disk". (because it''s sequentialized through the NFS daemno). -- Mats> > This is my disk defenition for the domains - > > DomU1: > disk=[''phy:vgxen01/lv_linva04_hda,hda,w'',''phy:vgxen01/lv_linva > 04_06_hdb,hdb,w''] > > DomU2: > disk=[''phy:vgxen01/lv_linva06_hda,hda,w'',''phy:vgxen01/lv_linva > 04_06_hdb,hdb,w''] > > When trying to start second DomU i am getting the following - > > Error: Device 5632 (vbd) could not be connected. > Device /dev/vgxen01/lv_linva04_06_hdb is mounted in a guest domain, > and so cannot be mounted now. > > > Cheers > > Niv > This message and the information contained herein is > proprietary and confidential and subject to the Amdocs policy > statement, > you may review at http://www.amdocs.com/email_disclaimer.asp > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Niv, Setup NFS/AFS/Samba on a domU and share your disk that way? Xen won''t let you mount a slice in two domUs that I am aware of. On Thu, Mar 08, 2007 at 03:28:13PM +0200, Niv Elad wrote:> > Hello > > I have two domains running on the same Dom0. > I want to allocate shared disk to both of them (i want to simulate > cluster envinroment). > > Does anyone know whether this is possible and if so how can it be done? > > This is my disk defenition for the domains - > > DomU1: > disk=[''phy:vgxen01/lv_linva04_hda,hda,w'',''phy:vgxen01/lv_linva04_06_hdb, > hdb,w''] > > DomU2: > disk=[''phy:vgxen01/lv_linva06_hda,hda,w'',''phy:vgxen01/lv_linva04_06_hdb, > hdb,w''] > > When trying to start second DomU i am getting the following - > > Error: Device 5632 (vbd) could not be connected. > Device /dev/vgxen01/lv_linva04_06_hdb is mounted in a guest domain, > and so cannot be mounted now. > > > Cheers > > Niv > > > This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, > you may review at http://www.amdocs.com/email_disclaimer.asp > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- att Okeson-Harlow Sen gutoj malgrandaj maro ne ekzistus _______________________________________________ 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 > Matt Okeson-Harlow > Sent: 08 March 2007 15:09 > To: Niv Elad > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Shared storage between Domu''s > > Niv, > > Setup NFS/AFS/Samba on a domU and share your disk that way? > Xen won''t let you mount a slice in two domUs that I am aware of.As described in the two other post on this subject, you can share it, but you have to have a file-system that is "shareable". And you need to use "w!" instead of "w" to tell Xen that "Yes, I know I''m sharing this file-system" [and if you actually don''t care about the content of your disk-image or the overall stability of your domain, you can of course force multiple domains to access the same disk-image even if it''s not actually shareable - but that''s like playing with matches in a petrol station...] -- Mats> > On Thu, Mar 08, 2007 at 03:28:13PM +0200, Niv Elad wrote: > > > > Hello > > > > I have two domains running on the same Dom0. > > I want to allocate shared disk to both of them (i want to simulate > > cluster envinroment). > > > > Does anyone know whether this is possible and if so how can > it be done? > > > > This is my disk defenition for the domains - > > > > DomU1: > > > disk=[''phy:vgxen01/lv_linva04_hda,hda,w'',''phy:vgxen01/lv_linva > 04_06_hdb, > > hdb,w''] > > > > DomU2: > > > disk=[''phy:vgxen01/lv_linva06_hda,hda,w'',''phy:vgxen01/lv_linva > 04_06_hdb, > > hdb,w''] > > > > When trying to start second DomU i am getting the following - > > > > Error: Device 5632 (vbd) could not be connected. > > Device /dev/vgxen01/lv_linva04_06_hdb is mounted in a guest domain, > > and so cannot be mounted now. > > > > > > Cheers > > > > Niv > > > > > > This message and the information contained herein is > proprietary and confidential and subject to the Amdocs policy > statement, > > you may review at http://www.amdocs.com/email_disclaimer.asp > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > att Okeson-Harlow > Sen gutoj malgrandaj maro ne ekzistus >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Mat Thank for your reply. The "w!" did work. I am using an ocfs2 fs type on the shared devises so that should keep it safe. Cheers -----Original Message----- From: Petersson, Mats [mailto:Mats.Petersson@amd.com] Sent: Thursday, March 08, 2007 5:10 PM To: Matt Okeson-Harlow; Niv Elad Cc: xen-users@lists.xensource.com Subject: RE: [Xen-users] Shared storage between Domu''s> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Matt > Okeson-Harlow > Sent: 08 March 2007 15:09 > To: Niv Elad > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Shared storage between Domu''s > > Niv, > > Setup NFS/AFS/Samba on a domU and share your disk that way? > Xen won''t let you mount a slice in two domUs that I am aware of.As described in the two other post on this subject, you can share it, but you have to have a file-system that is "shareable". And you need to use "w!" instead of "w" to tell Xen that "Yes, I know I''m sharing this file-system" [and if you actually don''t care about the content of your disk-image or the overall stability of your domain, you can of course force multiple domains to access the same disk-image even if it''s not actually shareable - but that''s like playing with matches in a petrol station...] -- Mats> > On Thu, Mar 08, 2007 at 03:28:13PM +0200, Niv Elad wrote: > > > > Hello > > > > I have two domains running on the same Dom0. > > I want to allocate shared disk to both of them (i want to simulate > > cluster envinroment). > > > > Does anyone know whether this is possible and if so how can > it be done? > > > > This is my disk defenition for the domains - > > > > DomU1: > > > disk=[''phy:vgxen01/lv_linva04_hda,hda,w'',''phy:vgxen01/lv_linva > 04_06_hdb, > > hdb,w''] > > > > DomU2: > > > disk=[''phy:vgxen01/lv_linva06_hda,hda,w'',''phy:vgxen01/lv_linva > 04_06_hdb, > > hdb,w''] > > > > When trying to start second DomU i am getting the following - > > > > Error: Device 5632 (vbd) could not be connected. > > Device /dev/vgxen01/lv_linva04_06_hdb is mounted in a guest domain, > > and so cannot be mounted now. > > > > > > Cheers > > > > Niv > > > > > > This message and the information contained herein is > proprietary and confidential and subject to the Amdocs policy > statement, > > you may review at http://www.amdocs.com/email_disclaimer.asp > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > -- > att Okeson-Harlow > Sen gutoj malgrandaj maro ne ekzistus >This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users