<div dir="ltr"><div><div>The gfid mismatch here is between the shard and its "link-to" file, the creation of which happens at a layer below that of shard translator on the stack.<br></div><div><br></div><div>Adding DHT devs to take a look.<br></div><br></div>-Krutika<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 26, 2018 at 1:09 AM, Ian Halliday <span dir="ltr"><<a href="mailto:ihalliday@ndevix.com" target="_blank">ihalliday@ndevix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>Hello all,</div><div><br></div><div>We are having a rather interesting problem with one of our VM storage systems. The GlusterFS client is throwing errors relating to GFID mismatches. We traced this down to multiple shards being present on the gluster nodes, with different gfids.</div><div><br></div><div>Hypervisor gluster mount log:</div><div><br></div><div>[2018-03-25 18:54:19.261733] E [MSGID: 133010] [shard.c:1724:shard_common_<wbr>lookup_shards_cbk] 0-ovirt-zone1-shard: Lookup on shard 7 failed. Base file gfid = 87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7 [Stale file handle]</div><div>The message "W [MSGID: 109009] [dht-common.c:2162:dht_lookup_<wbr>linkfile_cbk] 0-ovirt-zone1-dht: /.shard/87137cac-49eb-492a-<wbr>8f33-8e33470d8cb7.7: gfid different on data file on ovirt-zone1-replicate-3, gfid local = 00000000-0000-0000-0000-<wbr>000000000000, gfid node = 57c6fcdf-52bb-4f7a-aea4-<wbr>02f0dc81ff56 " repeated 2 times between [2018-03-25 18:54:19.253748] and [2018-03-25 18:54:19.263576]</div><div>[2018-03-25 18:54:19.264349] W [MSGID: 109009] [dht-common.c:1901:dht_lookup_<wbr>everywhere_cbk] 0-ovirt-zone1-dht: /.shard/87137cac-49eb-492a-<wbr>8f33-8e33470d8cb7.7: gfid differs on subvolume ovirt-zone1-replicate-3, gfid local = fdf0813b-718a-4616-a51b-<wbr>6999ebba9ec3, gfid node = 57c6fcdf-52bb-4f7a-aea4-<wbr>02f0dc81ff56</div><div><br></div><div><br></div><div>On the storage nodes, we found this:</div><div><br></div><div>[root@n1 gluster]# find -name 87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div><div>./brick2/brick/.shard/<wbr>87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div><div>./brick4/brick/.shard/<wbr>87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div><div><br></div><div>[root@n1 gluster]# ls -lh ./brick2/brick/.shard/<wbr>87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div><div>---------T. 2 root root 0 Mar 25 13:55 ./brick2/brick/.shard/<wbr>87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div><div>[root@n1 gluster]# ls -lh ./brick4/brick/.shard/<wbr>87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div><div>-rw-rw----. 2 root root 3.8G Mar 25 13:55 ./brick4/brick/.shard/<wbr>87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div>
<div><br></div><div id="m_4796567358248921674signature_old"><div id="m_4796567358248921674x64746296573c472"><div>[root@n1 gluster]# getfattr -d -m . -e hex ./brick2/brick/.shard/<wbr>87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div><div># file: brick2/brick/.shard/87137cac-<wbr>49eb-492a-8f33-8e33470d8cb7.7</div><div>security.selinux=<wbr>0x73797374656d5f753a6f626a6563<wbr>745f723a756e6c6162656c65645f74<wbr>3a733000</div><div>trusted.gfid=<wbr>0xfdf0813b718a4616a51b6999ebba<wbr>9ec3</div><div>trusted.glusterfs.dht.linkto=<wbr>0x6f766972742d3335302d7a6f6e65<wbr>312d7265706c69636174652d3300</div><div><br></div><div>[root@n1 gluster]# getfattr -d -m . -e hex ./brick4/brick/.shard/<wbr>87137cac-49eb-492a-8f33-<wbr>8e33470d8cb7.7</div><div># file: brick4/brick/.shard/87137cac-<wbr>49eb-492a-8f33-8e33470d8cb7.7</div><div>security.selinux=<wbr>0x73797374656d5f753a6f626a6563<wbr>745f723a756e6c6162656c65645f74<wbr>3a733000</div><div>trusted.afr.dirty=<wbr>0x000000000000000000000000</div><div>trusted.bit-rot.version=<wbr>0x020000000000000059914190000c<wbr>e672</div><div>trusted.gfid=<wbr>0x57c6fcdf52bb4f7aaea402f0dc81<wbr>ff56</div><div><br></div><div><br></div><div>I'm wondering how they got created in the first place, and if anyone has any insight on how to fix it?</div><div><br></div><div>Storage nodes:</div><div>[root@n1 gluster]# gluster --version</div><div>glusterfs 4.0.0</div><div><br></div><div>[root@n1 gluster]# gluster volume info</div><div><br></div><div>Volume Name: ovirt-350-zone1</div><div>Type: Distributed-Replicate</div><div>Volume ID: 106738ed-9951-4270-822e-<wbr>63c9bcd0a20e</div><div>Status: Started</div><div>Snapshot Count: 0</div><div>Number of Bricks: 7 x (2 + 1) = 21</div><div>Transport-type: tcp</div><div>Bricks:</div><div>Brick1: 10.0.6.100:/gluster/brick1/<wbr>brick</div><div>Brick2: 10.0.6.101:/gluster/brick1/<wbr>brick</div><div>Brick3: 10.0.6.102:/gluster/arbrick1/<wbr>brick (arbiter)</div><div>Brick4: 10.0.6.100:/gluster/brick2/<wbr>brick</div><div>Brick5: 10.0.6.101:/gluster/brick2/<wbr>brick</div><div>Brick6: 10.0.6.102:/gluster/arbrick2/<wbr>brick (arbiter)</div><div>Brick7: 10.0.6.100:/gluster/brick3/<wbr>brick</div><div>Brick8: 10.0.6.101:/gluster/brick3/<wbr>brick</div><div>Brick9: 10.0.6.102:/gluster/arbrick3/<wbr>brick (arbiter)</div><div>Brick10: 10.0.6.100:/gluster/brick4/<wbr>brick</div><div>Brick11: 10.0.6.101:/gluster/brick4/<wbr>brick</div><div>Brick12: 10.0.6.102:/gluster/arbrick4/<wbr>brick (arbiter)</div><div>Brick13: 10.0.6.100:/gluster/brick5/<wbr>brick</div><div>Brick14: 10.0.6.101:/gluster/brick5/<wbr>brick</div><div>Brick15: 10.0.6.102:/gluster/arbrick5/<wbr>brick (arbiter)</div><div>Brick16: 10.0.6.100:/gluster/brick6/<wbr>brick</div><div>Brick17: 10.0.6.101:/gluster/brick6/<wbr>brick</div><div>Brick18: 10.0.6.102:/gluster/arbrick6/<wbr>brick (arbiter)</div><div>Brick19: 10.0.6.100:/gluster/brick7/<wbr>brick</div><div>Brick20: 10.0.6.101:/gluster/brick7/<wbr>brick</div><div>Brick21: 10.0.6.102:/gluster/arbrick7/<wbr>brick (arbiter)</div><div>Options Reconfigured:</div><div>cluster.min-free-disk: 50GB</div><div>performance.strict-write-<wbr>ordering: off</div><div>performance.strict-o-direct: off</div><div>nfs.disable: off</div><div>performance.readdir-ahead: on</div><div>transport.address-family: inet</div><div>performance.cache-size: 1GB</div><div>features.shard: on</div><div>features.shard-block-size: 5GB</div><div>server.event-threads: 8</div><div>server.outstanding-rpc-limit: 128</div><div>storage.owner-uid: 36</div><div>storage.owner-gid: 36</div><div>performance.quick-read: off</div><div>performance.read-ahead: off</div><div>performance.io-cache: off</div><div>performance.stat-prefetch: on</div><div>cluster.eager-lock: enable</div><div>network.remote-dio: enable</div><div>cluster.quorum-type: auto</div><div>cluster.server-quorum-type: server</div><div>cluster.data-self-heal-<wbr>algorithm: full</div><div>performance.flush-behind: off</div><div>performance.write-behind-<wbr>window-size: 8MB</div><div>client.event-threads: 8</div><div>server.allow-insecure: on</div><div><br></div><div><br></div><div>Client version: </div><div>[root@kvm573 ~]# gluster --version</div><div>glusterfs 3.12.5</div><div><br></div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div><br></div>- Ian</font></span></div></div><div><br></div>
</div><br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>