<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Francis,<br>
<br>
Thanx for the suggestion..<br>
<br>
I tried this. I set 644 owner root on the brick directory.<br>
Apache is not able to read the PHP files from under the brick
folder.<br>
2012/03/23 09:04:32 [crit] 15752#0: *137813 stat()
"/var/www/gluster-application-read-only/www/staging/failover-test/web/server-health.php"
failed (13: Permission denied), client: *.*.107.216, server:
*.failover.myserver.com, request: "GET /server-health.php HTTP/1.1",
host: "test.failover.myserver.com"<br>
<br>
Apache seems to be unable to change into brick dir since it has no x
permission.<br>
If I set the x for other users (apache) on the brick then since
apache user is owner of all the files it will be able to overwrite
it also using the path directly through the brick.<br>
I maybe missing something?<br>
<br>
<br>
<br>
On 23/03/12 08.20, Francsics Balázs wrote:
<blockquote cite="mid:3F9B8263FD604B9AA06A38D19168A14B@gmail.com"
type="cite">
<div style="font-family: Helvetica; font-size: 13px; ">Gluster
runs on the gluster user, right? If you set the brick permission
to 644, and you read the files with a different user, you cannot
write to the dir.<br>
</div>
<div>
<div><br>
</div>
<div>--Â </div>
<div>Francsics Balázs</div>
<div>Sent with <a moz-do-not-send="true"
href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div>
<div><br>
</div>
</div>
<p style="color: #A0A0A8;">On 2012. March 22., Thursday at 22:18,
Haris Zukanovic wrote:</p>
<blockquote type="cite"
style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span>
<div>
<div>
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
Great to hear that...<br>
All my tests so far have also confirmed that there are no
problems when you only read from the brick dir.<br>
However, I would like somehow to prevent accidentals
writes if possible. Do you have any suggestions on how to
accomplish that?<br>
In fact, I am unable to allow writes to a file through the
Gluster mount and allow to read but not write on the brick
directory directly.<br>
<br>
<br>
<br>
On 22/03/12 20.47, <a moz-do-not-send="true"
href="mailto:winyaa@gmail.com">winyaa@gmail.com</a>
wrote:
<blockquote type="cite">
<div>
<p>If you are on the same machine, which the gluster
runs from, and you are using replicated setup, you
can read from the brick directly, but avoid to write
into the brick dir, becouse it leads to data
inconsistency.</p>
<div>2012.03.22. 20:06, "Haris Zukanovic" <<a
moz-do-not-send="true"
href="mailto:haris.zukanovic74@gmail.com">haris.zukanovic74@gmail.com</a>>
ezt Ãrta:<br type="attribution">
<blockquote type="cite">
<div> Thanx for your input...<br>
Do you mean that I should mount the brick
through NFS to make the brick read-only? I would
like to avioid that. I am on the same physical
machine where the brick is.<br>
<br>
<br>
On 22/03/12 19.56, Berend de Boer wrote:<br>
<blockquote type="cite">
<div>
<blockquote style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<blockquote style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<blockquote style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<blockquote style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<blockquote type="cite">
<div> "Haris" == Haris
Zukanovic<<a
moz-do-not-send="true"
href="mailto:haris.zukanovic74@gmail.com"
target="_blank">haris.zukanovic74@gmail.com</a>>
 writes:<br>
</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
  Haris>  Anyhow, everything seems to
work fine for now but the read<br>
  Haris>  performance is a problem.<br>
<br>
Try mounting the volume with nfs and see if
that improves things.<br>
<br>
</div>
</blockquote>
<br>
-- <br>
--<br>
Haris Zukanovic<br>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Gluster-users@gluster.org"
target="_blank">Gluster-users@gluster.org</a><br>
<a moz-do-not-send="true"
href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users"
target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
--
Haris Zukanovic</pre>
</div>
</div>
</span> </blockquote>
<div> <br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
--
Haris Zukanovic</pre>
</body>
</html>