<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><br><br><br><pre>
Hi,

<div>recondition:</div><div>glusterfs version is 3.7.6</div>A node:128.224.95.140
B node:128.224.162.255

brick on A node:/data/brick/gv0
brick on B node:/data/brick/gv0

reproduce steps:
1.gluster peer probe 128.224.162.255                                                                                                                                      (on A node)
2. gluster volume create gv0 replica 2 128.224.95.140:/data/brick/gv0 128.224.162.255:/data/brick/gv0 force                      <span style="line-height: 23.8px;"> (on A node)</span>
3.gluster volume start gv0                                                                                                                                                          (on A node)
4. mount -t glusterfs 128.224.95.140:/gv0 gluster                                                                                                                     (on A node)
5.create file 11 in dir gluster                                                                                                                                                       (on A node)
<div> 6.getfattr -m. -d -e hex /data/brick/gv0/11<span style="line-height: 23.8px;">                                                                                                                                   (on A node)</span></div><div><span style="line-height: 23.8px;"><br></span></div># file: data/brick/gv0/11
trusted.afr.dirty=0x000000000000000000000000
trusted.bit-rot.version=0x00000000000000025696d78700029573
<div>trusted.gfid=0xe696148665c343f7ace19184f0b5e7fa</div><div><pre style="line-height: 23.8px;"> 6.getfattr -m. -d -e hex /data/brick/gv0/11<span style="line-height: 23.8px;">                                                                                                                                   (on B node)</span></pre></div><div># file: data/brick/gv0/11
trusted.afr.dirty=0x000000000000000000000000
trusted.bit-rot.version=0x000000000000000256653d270006d953
trusted.gfid=0xe696148665c343f7ace19184f0b5e7fa</div><div><br></div><div>My question is following.</div><div><br></div><div>Why the file a only has one &nbsp;<span style="line-height: 23.8px;">trusted.afr.dirty </span><span style="line-height: 1.7;"> extended attribute about change log in replicate volume?</span></div><div><br></div><div>I know right info by run "getfattr"  is like below.</div><div><br></div><div>Example:<br>
[root@store3 ~]# getfattr -d -e hex -m. brick-a/file.txt<br>
#file: brick-a/file.txt<br>
security.selinux=0x726f6f743a6f626a6563745f723a66696c655f743a733000<br>
trusted.afr.vol-client-2=0x000000000000000000000000<br>
trusted.afr.vol-client-3=0x000000000200000000000000<br>
trusted.gfid=0x307a5c9efddd4e7c96e94fd4bcdcbd1b</div><div><br></div><div><p>replica pair, i.e.brick-b:<br>
trusted.afr.vol-client-0=0x000000000000000000000000 --&gt;changelog for itself (brick-a)<br>
trusted.afr.vol-client-1=0x000000000000000000000000 --&gt;changelog for brick-b as seen by brick-a  </p>

<p>Likewise, all files in brick-b will have:<br>
trusted.afr.vol-client-0=0x000000000000000000000000 --&gt;changelog for brick-a as seen by brick-b<br>
trusted.afr.vol-client-1=0x000000000000000000000000 --&gt;changelog for itself (brick-b)  </p><p><br></p><p>Above info is getting from link <a href="https://github.com/gluster/glusterfs/blob/master/doc/debugging/split-brain.md." _src="https://github.com/gluster/glusterfs/blob/master/doc/debugging/split-brain.md.">https://github.com/gluster/glusterfs/blob/master/doc/debugging/split-brain.md.</a></p><p><br></p><p>Thanks,</p><p>Xin </p></div><div><br></div></pre></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span>