<div dir="ltr"><div style>files are present in dir1 and dir2 on node1, and dir1 in node2<br></div><div style>dir2 on node2 is empty</div><div><br></div>On node 1:<div><div>[/mnt/gluster] # ls /home/harry/gluster/brick/dir*</div>
<div>/home/harry/gluster/brick/dir1:<br></div><div>a  b  c</div><div><br></div><div>/home/harry/gluster/brick/dir2:<br></div><div>a  b  c</div><div><br></div><div>[/mnt/gluster] # getfattr -m . -d -e hex /home/harry/gluster/brick/dir*</div>
<div>getfattr: Removing leading &#39;/&#39; from absolute path names</div><div># file: home/harry/gluster/brick/dir1</div><div>system.posix_acl_access=0x0200000001000700ffffffff020007000000000002000500feff00000200070042420f000200050043420f000200050044420f0004000700ffffffff10000500ffffffff20000500ffffffff</div>
<div>system.posix_acl_default=0x0200000001000700ffffffff020007000000000002000500feff00000200070042420f000200050043420f000200050044420f0004000700ffffffff10000700ffffffff20000000ffffffff</div><div>trusted.afr.GV0_DATA-client-0=0x000000000000000000000000</div>
<div>trusted.afr.GV0_DATA-client-1=0x00000000ffffffffffffffff</div><div>trusted.gfid=0x28d502fdb1c94ce0ad631d4ab131add0</div><div>trusted.glusterfs.dht=0x000000010000000000000000ffffffff</div><div><br></div><div># file: home/harry/gluster/brick/dir2</div>
<div>system.posix_acl_access=0x0200000001000700ffffffff020007000000000002000500feff00000200070042420f000200050043420f000200050044420f0004000700ffffffff10000500ffffffff20000500ffffffff</div><div>system.posix_acl_default=0x0200000001000700ffffffff020007000000000002000500feff00000200070042420f000200050043420f000200050044420f0004000700ffffffff10000700ffffffff20000000ffffffff</div>
<div>trusted.afr.GV0_DATA-client-0=0x000000000000000000000000</div><div>trusted.afr.GV0_DATA-client-1=0x000000000000000100000001</div><div>trusted.gfid=0x28d502fdb1c94ce0ad631d4ab131add0</div><div>trusted.glusterfs.dht=0x000000010000000000000000ffffffff</div>
<div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">On node 2:</div><div class="gmail_extra"><div class="gmail_extra">[/mnt/gluster] # ls /home/harry/gluster/brick/dir*</div><div class="gmail_extra">
/home/harry/gluster/brick/dir1<br></div><div class="gmail_extra">a  b  c</div><div class="gmail_extra"><br></div><div class="gmail_extra">/home/harry/gluster/brick/dir2<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
[/mnt/gluster] # getfattr -m . -d -e hex /home/harry/gluster/brick/dir*</div><div class="gmail_extra">getfattr: Removing leading &#39;/&#39; from absolute path names</div><div class="gmail_extra"># file: home/harry/gluster/brick/dir1</div>
<div class="gmail_extra">system.posix_acl_access=0x0200000001000700ffffffff020007000000000002000500feff00000200070042420f000200050043420f000200050044420f0004000700ffffffff10000500ffffffff20000500ffffffff</div><div class="gmail_extra">
system.posix_acl_default=0x0200000001000700ffffffff020007000000000002000500feff00000200070042420f000200050043420f000200050044420f0004000700ffffffff10000700ffffffff20000000ffffffff</div><div class="gmail_extra">trusted.afr.GV0_DATA-client-0=0x000000000000000000000000</div>
<div class="gmail_extra">trusted.afr.GV0_DATA-client-1=0x000000000000000000000000</div><div class="gmail_extra">trusted.gfid=0x28d502fdb1c94ce0ad631d4ab131add0</div><div class="gmail_extra">trusted.glusterfs.dht=0x000000010000000000000000ffffffff</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"># file: home/harry/gluster/brick/dir2</div><div class="gmail_extra">system.posix_acl_access=0x0200000001000700ffffffff020007000000000002000500feff00000200070042420f000200050043420f000200050044420f0004000700ffffffff10000500ffffffff20000000ffffffff</div>
<div class="gmail_extra">system.posix_acl_default=0x0200000001000700ffffffff020007000000000002000500feff00000200070042420f000200050043420f000200050044420f0004000700ffffffff10000700ffffffff20000000ffffffff</div><div class="gmail_extra">
trusted.gfid=0x28d502fdb1c94ce0ad631d4ab131add0</div><div class="gmail_extra"><br></div><br><div class="gmail_quote">On Thu, Apr 17, 2014 at 11:37 AM, Ravishankar N <span dir="ltr">&lt;<a href="mailto:ravishankar@redhat.com" target="_blank">ravishankar@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
    <div>On 04/16/2014 07:47 PM, Jia-Hao Chen
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Dear all,
        <div><br>
        </div>
        <div>I create a replicated volume with 2 nodes.</div>
        <div>And I make a directory and create a few files in it.</div>
        <div><br>
        </div>
        <div>[/mnt/gluster] # mkdir dir1</div>
        <div>
          <div>[/mnt/gluster] # echo 123 &gt;&gt; dir1/a</div>
        </div>
        <div>
          <div>[/mnt/gluster] # echo 123 &gt;&gt; dir1/b</div>
        </div>
        <div>
          <div>[/mnt/gluster] # echo 123 &gt;&gt; dir1/c</div>
        </div>
        <div><br>
        </div>
        <div>Then I bring down node 2 and rename dir1 to dir2</div>
        <div><br>
        </div>
        <div>[/mnt/gluster] # mv dir1 dir2</div>
        <div><br>
        </div>
        <div>After bring back node 2, dir1 reappear</div>
        <div><br>
        </div>
        <div>[/mnt/gluster] # ls -l</div>
        <div>
          <div>drwxr-x---    2 harry    harry      4096 Apr 16 11:30
            dir1/</div>
          <div>drwxr-x---    2 harry    harry      4096 Apr 16 11:30
            dir2/</div>
        </div>
        <div><br>
        </div>
        <div>
          <div>It surprised me. But it makes sense since dir1 is still
            on node 2.</div>
          <div>When node 2 come back, dir1 is healed on another node.</div>
          <div>However when I list both dir1 and dir2, the file list is
            empty.<br>
          </div>
        </div>
        <div><br>
        </div>
        <div>
          <div>[/mnt/gluster] # ls -l dir1</div>
          <div>
            <div>[/mnt/gluster] # ls -l dir2</div>
          </div>
          <div>[/mnt/gluster] #<br>
          </div>
          <div><br>
          </div>
          <div>It seems a bug to me.</div>
          <div>What is the expected result of this case?</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote></div></div>
    This is strange. The expected result is that node 2 must also
    contain only dir2. i.e. the self-heal must happen from node 1 to
    node 2 once the latter comes back online.<br>
    Are the files present in the backend bricks?<br>
    <br>
    -Ravi<br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>Best regards,</div>
          <div>Chen, Chia-Hao</div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Gluster-users mailing list
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div></div></div>