I want to ask how to mount one storage device to 2 guests? When I try to create vm handle everything is fine I can create one vdi and vbds for every guest. When I start first machine everything is ok, but when I try to start second one it says that ERROR: 2 INTERNAL_ERROR Device 2051 (vbd) could not be connected. Device /dev/mapper/test_vg-test64_454 is mounted in a guest domain, and so cannot be mounted now. any Ideas how I can share one device to two or more virtual machines? I don''t want network solution like nfs,iscsi ... etc ------------------------------------- Powered by Mail.BG - http://mail.bg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Jun-01 15:37 UTC
Re: [Xen-users] how to mount one volume to 2 guests
009/6/1 <nikolanikov@mail.bg>:> I want to ask how to mount one storage device to 2 guests? > When I try to create vm handle everything is fine I can create one vdi and > vbds for every guest. When I start first machine everything is ok, but when > I try to start second one it says that > > ERROR: 2 INTERNAL_ERROR Device 2051 (vbd) could not be connected. > Device /dev/mapper/test_vg-test64_454 is mounted in a guest domain, > and so cannot be mounted now. > > any Ideas how I can share one device to two or more virtual machines? I > don''t want network solution like nfs,iscsi ... etcFirst of all, you DO realize that sharing a block device without some kind of cluster file system could lead to data corruption? If you want to share it anyway, you can try changing the mode to "r" (for read only) or "w!" (to force read-write multiple mount). -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
nikolanikov@mail.bg
2009-Jun-02 17:19 UTC
Re: [Xen-users] how to mount one volume to 2 guests
Yes I realize that, I want to use it with ocfs2. How I can set mode to w! ? Цитат от "Fajar A. Nugraha" <fajar@fajar.net>: > 009/6/1 <nikolanikov@mail.bg>: >> I want to ask how to mount one storage device to 2 guests? >> When I try to create vm handle everything is fine I can create one vdi and >> vbds for every guest. When I start first machine everything is ok, but when >> I try to start second one it says that >> >> ERROR: 2 INTERNAL_ERROR Device 2051 (vbd) could not be connected. >> Device /dev/mapper/test_vg-test64_454 is mounted in a guest domain, >> and so cannot be mounted now. >> >> any Ideas how I can share one device to two or more virtual machines? I >> don''t want network solution like nfs,iscsi ... etc > > First of all, you DO realize that sharing a block device without some > kind of cluster file system could lead to data corruption? > > If you want to share it anyway, you can try changing the mode to "r" > (for read only) or "w!" (to force read-write multiple mount). > > -- > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users[1] > > Links: ------ [1] http://lists.xensource.com/xen-users ------------------------------------- Powered by Mail.BG - http://mail.bg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fabian Zimmermann
2009-Jun-02 17:25 UTC
Re: [Xen-users] how to mount one volume to 2 guests
Hi,> Yes I realize that, I want to use it with ocfs2. How I can set mode to > w! ?in your domU.cfg .. ''phy:/dev/data/bla-disk,sda1,w'' => ''phy:/dev/data/bla-disk,sda1,r'' Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
nikolanikov@mail.bg
2009-Jun-02 17:52 UTC
Re: [Xen-users] how to mount one volume to 2 guests
I use libxen ( xenapi ) maybe I will try with the sharable option in vdi Цитат от Fabian Zimmermann <xen-users@z-technologies.de>: > Hi, >> Yes I realize that, I want to use it with ocfs2. How I can set mode to w! ? > > in your domU.cfg .. > > ''phy:/dev/data/bla-disk,sda1,w'' => ''phy:/dev/data/bla-disk,sda1,r'' > > Fabian ------------------------------------- Powered by Mail.BG - http://mail.bg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2009/6/2 <nikolanikov@mail.bg>> > Yes I realize that, I want to use it with ocfs2. How I can set mode to w! ?I am not sure to understand, but OCFS2 is a file system. If you want to use it, I think you have to create a disk image file on your ocfs2 file system, then to use the "file:" or "tap:io:" prefix in your domU config files. You can''t use directly a shared physical device, even if you created OCFS2 file systems on it.> > > Цитат от "Fajar A. Nugraha" <fajar@fajar.net>: > > > > 009/6/1 <nikolanikov@mail.bg>: > >> I want to ask how to mount one storage device to 2 guests? > >> When I try to create vm handle everything is fine I can create one vdi > and > >> vbds for every guest. When I start first machine everything is ok, but > when > >> I try to start second one it says that > >> > >> ERROR: 2 INTERNAL_ERROR Device 2051 (vbd) could not be connected. > >> Device /dev/mapper/test_vg-test64_454 is mounted in a guest domain, > >> and so cannot be mounted now. > >> > >> any Ideas how I can share one device to two or more virtual machines? I > >> don''t want network solution like nfs,iscsi ... etc > > > > First of all, you DO realize that sharing a block device without some > > kind of cluster file system could lead to data corruption? > > > > If you want to share it anyway, you can try changing the mode to "r" > > (for read only) or "w!" (to force read-write multiple mount). > > > > -- > > Fajar > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > > > > ------------------------------------- > Powered by Mail.BG <http://mail.bg> > _______________________________________________ > 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
Nathan Eisenberg
2009-Jun-03 17:26 UTC
RE: [Xen-users] how to mount one volume to 2 guests
No, that''s not true. OCFS2 is a distributed block locking mechanism specifically built to allow multiple systems to simultaneously access the same block device. Best Regards Nathan Eisenberg Sr. Systems Administrator Atlas Networks, LLC support@atlasnetworks.us<mailto:support@atlasnetworks.us> http://support.atlasnetworks.us/portal From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Alain Barthe Sent: Wednesday, June 03, 2009 9:54 AM To: nikolanikov@mail.bg Cc: Fajar A. Nugraha; Xen User-List Subject: Re: [Xen-users] how to mount one volume to 2 guests 2009/6/2 <nikolanikov@mail.bg<mailto:nikolanikov@mail.bg>> Yes I realize that, I want to use it with ocfs2. How I can set mode to w! ? I am not sure to understand, but OCFS2 is a file system. If you want to use it, I think you have to create a disk image file on your ocfs2 file system, then to use the "file:" or "tap:io:" prefix in your domU config files. You can''t use directly a shared physical device, even if you created OCFS2 file systems on it. Цитат от "Fajar A. Nugraha" <fajar@fajar.net<mailto:fajar@fajar.net>>:> 009/6/1 <nikolanikov@mail.bg<mailto:nikolanikov@mail.bg>>: >> I want to ask how to mount one storage device to 2 guests? >> When I try to create vm handle everything is fine I can create one vdi and >> vbds for every guest. When I start first machine everything is ok, but when >> I try to start second one it says that >> >> ERROR: 2 INTERNAL_ERROR Device 2051 (vbd) could not be connected. >> Device /dev/mapper/test_vg-test64_454 is mounted in a guest domain, >> and so cannot be mounted now. >> >> any Ideas how I can share one device to two or more virtual machines? I >> don''t want network solution like nfs,iscsi ... etc > > First of all, you DO realize that sharing a block device without some > kind of cluster file system could lead to data corruption? > > If you want to share it anyway, you can try changing the mode to "r" > (for read only) or "w!" (to force read-write multiple mount). > > -- > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com<mailto:Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > >------------------------------------- Powered by Mail.BG<http://mail.bg> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com<mailto: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
2009/6/3 Alain Barthe <ab266061@gmail.com>:> 2009/6/2 <nikolanikov@mail.bg> >> Yes I realize that, I want to use it with ocfs2. How I can set mode to w! >> ? > > I am not sure to understand, but OCFS2 is a file system. If you want to use > it, I think you have to create a disk image file on your ocfs2 file system, > then to use the "file:" or "tap:io:" prefix in your domU config files. > > You can''t use directly a shared physical device, even if you created OCFS2 > file systems on it.of course you can! if i understand correctly the original question, he has an LV (/dev/mapper/test_vg-test64_454) that he wants to make available to two DomUs as a shared block device, with OCFS2 inside it so they play nice. for that, simply use the ''w!'' flag to turn off the ''only one DomU per backing storage'' safety check. all this has nothing to do if the backing store is on phy:, tap: or file:, nor on the filesystem used to hold the backing files (if the''re files and not block devices) -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users