<html>
<body>
Hi All,<br><br>
Im quite a newbie to GlusterFS. We have a setup with 1 fileserver + 1
Webserver. The file server has /storage/uspg type as ReiserFS. This
/storage/uspg is gluster mounted to the webserver mount point,
/opt/efus.<br><br>
ie in File Server,<br><br>
root@fs1pg ~# mount<br>
...........<br>
.........<br>
/dev/ida/c0d0p6 on /storage type reiserfs (rw,user_xattr)<br>
...........<br><br>
in Web Server,<br><br>
root@w1pg /opt/efus# mount<br>
.............<br>
............<br>
glusterfs on /opt/efus type fuse
(rw,nosuid,nodev,allow_other,default_permissions,max_read=1048576)<br>
...........<br><br>
The files are written by the user 'apache' of web server to /opt/efus
(which is glusterfs). File writing works as expected but copying the file
makes problem. An example is illustrated below:<br><br>
<b>root@w1pg /opt/efus# sudo -u apache touch test.pdf<br>
root@w1pg /opt/efus# ls -l test.pdf<br>
-rw-r--r--&nbsp; 1 apache apache 0 Dec&nbsp; 1 09:46 test.pdf<br>
root@w1pg /opt/efus# sudo -u apache cp -pvf test.pdf test1.pdf<br>
`test.pdf' -&gt; `test1.pdf'<br>
cp: getting attribute `trusted.afr.version' of `test.pdf': Operation not
permitted<br>
cp: getting attribute `trusted.afr.createtime' of `test.pdf': Operation
not permitted<br><br>
</b>Now, glusterfs-server.vol file in FileServer is given below:<br><br>
root@fs1uspg ~# cat /etc/glusterfs/glusterfs-server.vol<br>
<b><i>## Define the stroage<br>
volume uspg-storage<br>
&nbsp;type
storage/posix&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# POSIX FS translator<br>
&nbsp;option directory
/storage/uspg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Export this directory<br>
end-volume<br><br>
volume
iothreads&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
#iothreads can give performance a boost<br>
&nbsp; type performance/io-threads<br>
&nbsp; option thread-count 16<br>
&nbsp; subvolumes uspg-storage<br>
end-volume<br><br>
## Add network serving capability to above brick.<br>
volume server<br>
&nbsp;type protocol/server<br>
&nbsp;option transport-type tcp/server&nbsp;&nbsp;&nbsp;&nbsp; # For
TCP/IP transport<br>
&nbsp;option listen-port
6996&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Default is 6996<br>
&nbsp;option client-volume-filename /var/log/glusterfs/client.vol<br>
&nbsp;subvolumes iothreads<br>
&nbsp;option auth.ip.iothreads.allow * # Allow access to
&quot;brick&quot; volume<br>
end-volume<br><br>
</i></b>Similarly, glusterfs-client.vol in Web Server is given below:
<br><br>
root@w1pg /opt/efus# cat /etc/glusterfs/glusterfs-client.vol<br>
<b><i>### Add client feature and attach to remote subvolume<br>
volume client_uspg<br>
&nbsp;type protocol/client<br>
&nbsp;option transport-type tcp/client&nbsp;&nbsp;&nbsp;&nbsp; # for
TCP/IP transport<br>
&nbsp;option remote-host 192.168.12.202&nbsp;&nbsp;&nbsp;&nbsp; # IP
address of the remote brick<br>
&nbsp;option remote-port
6996&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# default server port is 6996<br>
&nbsp;option remote-subvolume
iothreads&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # name of the remote
volume<br>
end-volume<br><br>
volume afrbricks<br>
&nbsp;type cluster/afr<br>
&nbsp;subvolumes&nbsp; client_uspg<br>
&nbsp;option replicate *:1<br>
&nbsp;option self-heal on<br>
end-volume<br><br>
volume iothreads&nbsp;&nbsp;&nbsp; #iothreads can give performance a
boost<br>
&nbsp; type performance/io-threads<br>
&nbsp; option thread-count 8<br>
&nbsp; subvolumes afrbricks<br>
end-volume<br><br>
</i></b>Please guide me to fix this issue. Any help is appreciated.
Thanks in advance.<br><br>
Regards,<br><br>
<x-sigsep><p></x-sigsep>
Kurian Mathew Thayil.</body>
</html>