On Sun, Mar 01, 2009 at 11:16:28AM +0530, er krishna wrote:

> | See,my requirement is to export my block device over network in such
> a way so that some of the client can do write operation and some of
> themcan only do read operation on that block device. Once Iexported my
> block device for a particular acl(particular mac) for write operation
> how can I manage it for only read acess for other client? How is it
> possible? Please tell.

But _why_ do you want to do that? Are you aware that if the writer is
active, the reader may capture an inconsistent state that has never
existed on the writer?

> I have exported my block devicein following manner:
> 
> ./ggaoed -c ggaoed.conf -d  ( in conf file : /dev/sda3 device was used
> with 0 0 eth0. )
> I tried to export that block device /dev/sda3 to export with 0 1 eth0
> using another conf file and I was not able to do it. It shows me
> device or resource busy coz /dev/sda3 is already exported and it is
> mounted on some client machine for r/w operation. I  want to export
> this device for some of more client for read operation. How can I do
> it ? Please help.

That is the intended behavior. ggaoed opens the block device in
exclusive mode to prevent it being modified behind the daemon's back
(e.g. mounted locally or exported with inconsistent direct I/O settings)
while it is in use.

It seems you want to export the device on multiple shelf/slot addresses
simultaneously. I don't see how that would help anything but I do see
how that could cause data corruption. If you have a real use case where
this would be useful then please describe it.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences,
     Laboratory of Parallel and Distributed Systems
     Address   : H-1132 Budapest Victor Hugo u. 18-22. Hungary
     Phone/Fax : +36 1 329-78-64 (secretary)
     W3        : http://www.lpds.sztaki.hu
     ---------------------------------------------------------

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Aoetools-discuss mailing list
Aoetools-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aoetools-discuss

Reply via email to