title: Glusterfs mirrored server changes owner
body: <p>I have configured glusterfs over a master-client server which replicates to a slave server into the same route, glusterfs was installed with root user on both servers.</p>
  
  <p><strong>** In both servers I have this users: **</strong></p>
  
  <pre><code>omar
  johan
  charlie
  nisha
  robert
  </code></pre>
  
  <p>The installation steps were this:</p>
  
  <pre><code># apt-get install glusterfs-server
  # gluster peer probe slave
  # gluster peer status
  &gt; State: Peer in Cluster (Connected)
  # gluster volume create replica replica 2 transport tcp master-client:/home/charlie/replica slave:/home/charlie/replica
  # gluster volume start replica
  </code></pre>
  
  <p>Configuring client over master-client</p>
  
  <pre><code># mkdir /home/charlie/replica_editor
  # mount.glusterfs master-client:/replica /home/charlie/replica_editor
  </code></pre>
  
  <p>Testing cluster, creating file over replica_editor using charlie as user:</p>
  
  <pre><code>charlie@master-client:~/replica_editor$ touch test
  root@master-client:/home/charlie/replica_editor# ls -ltr
  &gt;        -rw-rw-r-- 1 charlie   charlie  0 May 26 08:56 test
  </code></pre>
  
  <p>Seeing over main server replica file system:</p>
  
  <pre><code>root@master-client:/home/charlie/replica# ls -ltr
  &gt;        -rw-rw-r-- 1 charlie   charlie  0 May 26 08:56 test
  </code></pre>
  
  <p>When seeing over slave server replicated file system, it has the same creation date, same permissions but the owner is not Charlie, is other user which doesn't matter here.    </p>
  
  <pre><code>root@slave:/home/charlie/replica# ls -ltr
  &gt;    -rw-rw-r-- 1 robert   robert  0 May 26 08:56 test
  </code></pre>
  
  <p>When changing manually the owner to charle with root, it changes the replica_editor owner to another one.</p>
  
  <pre><code>root@slave:/home/charlie/replica# chown charlie:charlie test
  &gt;    -rw-rw-r-- 1 charlie   charlie  0 May 26 08:56 test
  
  charlie@master-client:~/replica_editor$ ls -ltr
  &gt;    -rw-rw-r-- 1 johan   johan  0 May 26 08:56 test
  </code></pre>
  
  <p>Why is this happening while I'm not specifying anything about users over the installation.</p>