<div dir="ltr"><div><div>Hi Jim & Matt,<br><br></div>Can you also check for the link count in the stat output of those hardlink entries in the .glusterfs folder on the bricks.<br>If the link count is 1 on all the bricks for those entries, then they are orphaned entries and you can delete those hardlinks.<br></div><div>To be on the safer side have a backup before deleting any of the entries.<br><br></div><div>Regards,<br></div><div>Karthik<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 20, 2017 at 3:18 AM, Jim Kinney <span dir="ltr"><<a href="mailto:jim.kinney@gmail.com" target="_blank">jim.kinney@gmail.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>I've been following this particular thread as I have a similar issue (RAID6 array failed out with 3 dead drives at once while a 12 TB load was being copied into one mounted space - what a mess)</div><div><br></div><div>I have >700K GFID entries that have no path data:</div><div>Example:</div><div>getfattr -d -e hex -m . .glusterfs/00/00/0000a5ef-<wbr>5af7-401b-84b5-ff2a51c10421</div><div># file: .glusterfs/00/00/0000a5ef-<wbr>5af7-401b-84b5-ff2a51c10421</div><div>security.selinux=<wbr>0x73797374656d5f753a6f626a6563<wbr>745f723a756e6c6162656c65645f74<wbr>3a733000</div><div>trusted.bit-rot.version=<wbr>0x020000000000000059b1b3160002<wbr>70e7</div><div>trusted.gfid=<wbr>0x0000a5ef5af7401b84b5ff2a51c1<wbr>0421</div><div><br></div><div>[<a href="mailto:root@bmidata1" target="_blank">root@bmidata1</a> brick]# getfattr -d -n trusted.glusterfs.pathinfo -e hex -m . .glusterfs/00/00/0000a5ef-<wbr>5af7-401b-84b5-ff2a51c10421</div><div>.glusterfs/00/00/0000a5ef-<wbr>5af7-401b-84b5-ff2a51c10421: trusted.glusterfs.pathinfo: No such attribute</div><div></div><div><br></div><div>I had to totally rebuild the dead RAID array and did a copy from the live one before activating gluster on the rebuilt system. I accidentally copied over the .glusterfs folder from the working side</div><div>(replica 2 only for now - adding arbiter node as soon as I can get this one cleaned up). </div><div><br></div><div>I've run the methods from "<a href="http://docs.gluster.org/en/latest/Troubleshooting/gfid-to-path/" target="_blank">http://docs.gluster.org/en/<wbr>latest/Troubleshooting/gfid-<wbr>to-path/</a>" with no results using random GFIDs. A full systemic run using the script from method 3 crashes with "too many nested links" error (or something similar).</div><div><br></div><div>When I run gluster volume heal volname info, I get 700K+ GFIDs. Oh. gluster 3.8.4 on Centos 7.3</div><div><br></div><div>Should I just remove the contents of the .glusterfs folder on both and restart gluster and run a ls/stat on every file?</div><div><br></div><div><br></div><div>When I run a heal, it no longer has a decreasing number of files to heal so that's an improvement over the last 2-3 weeks :-)</div><div><div class="h5"><div><br></div><div>On Tue, 2017-10-17 at 14:34 +0000, Matt Waymack wrote:</div></div></div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div><div class="h5"><pre>Attached is the heal log for the volume as well as the shd log.
<blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex">
<blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex">
Run these commands on all the bricks of the replica pair to get the attrs set on the backend.
</blockquote>
</blockquote>
[root@tpc-cent-glus1-081017 ~]# getfattr -d -e hex -m . /exp/b1/gv0/.glusterfs/10/86/<wbr>108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2
getfattr: Removing leading '/' from absolute path names
# file: exp/b1/gv0/.glusterfs/10/86/<wbr>108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2
security.selinux=<wbr>0x73797374656d5f753a6f626a6563<wbr>745f723a756e6c6162656c65645f74<wbr>3a733000
trusted.afr.dirty=<wbr>0x000000000000000000000000
trusted.afr.gv0-client-2=<wbr>0x000000000000000100000000
trusted.gfid=<wbr>0x108694dbc0394b7cbd3dad6a15d8<wbr>11a2
trusted.gfid2path.<wbr>9a2f5ada22eb9c45=<wbr>0x38633262623330322d323466332d<wbr>346463622d393630322d3839356136<wbr>396461363131662f435f564f4c2d62<wbr>3030312d693637342d63642d63772e<wbr>6d6435
[root@tpc-cent-glus2-081017 ~]# getfattr -d -e hex -m . /exp/b1/gv0/.glusterfs/10/86/<wbr>108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2
getfattr: Removing leading '/' from absolute path names
# file: exp/b1/gv0/.glusterfs/10/86/<wbr>108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2
security.selinux=<wbr>0x73797374656d5f753a6f626a6563<wbr>745f723a756e6c6162656c65645f74<wbr>3a733000
trusted.afr.dirty=<wbr>0x000000000000000000000000
trusted.afr.gv0-client-2=<wbr>0x000000000000000100000000
trusted.gfid=<wbr>0x108694dbc0394b7cbd3dad6a15d8<wbr>11a2
trusted.gfid2path.<wbr>9a2f5ada22eb9c45=<wbr>0x38633262623330322d323466332d<wbr>346463622d393630322d3839356136<wbr>396461363131662f435f564f4c2d62<wbr>3030312d693637342d63642d63772e<wbr>6d6435
[root@tpc-arbiter1-100617 ~]# getfattr -d -e hex -m . /exp/b1/gv0/.glusterfs/10/86/<wbr>108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2
getfattr: /exp/b1/gv0/.glusterfs/10/86/<wbr>108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2: No such file or directory
[root@tpc-cent-glus1-081017 ~]# getfattr -d -e hex -m . /exp/b4/gv0/.glusterfs/e0/c5/<wbr>e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3
getfattr: Removing leading '/' from absolute path names
# file: exp/b4/gv0/.glusterfs/e0/c5/<wbr>e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3
security.selinux=<wbr>0x73797374656d5f753a6f626a6563<wbr>745f723a756e6c6162656c65645f74<wbr>3a733000
trusted.afr.dirty=<wbr>0x000000000000000000000000
trusted.afr.gv0-client-11=<wbr>0x000000000000000100000000
trusted.gfid=<wbr>0xe0c56bf78bfe46cabde1e46b92d3<wbr>3df3
trusted.gfid2path.<wbr>be3ba24c3ef95ff2=<wbr>0x63323366353834652d353566652d<wbr>343033382d393131622d3866373063<wbr>656334616136662f435f564f4c2d62<wbr>3030332d69313331342d63642d636d<wbr>2d63722e6d6435
[root@tpc-cent-glus2-081017 ~]# getfattr -d -e hex -m . /exp/b4/gv0/.glusterfs/e0/c5/<wbr>e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3
getfattr: Removing leading '/' from absolute path names
# file: exp/b4/gv0/.glusterfs/e0/c5/<wbr>e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3
security.selinux=<wbr>0x73797374656d5f753a6f626a6563<wbr>745f723a756e6c6162656c65645f74<wbr>3a733000
trusted.afr.dirty=<wbr>0x000000000000000000000000
trusted.afr.gv0-client-11=<wbr>0x000000000000000100000000
trusted.gfid=<wbr>0xe0c56bf78bfe46cabde1e46b92d3<wbr>3df3
trusted.gfid2path.<wbr>be3ba24c3ef95ff2=<wbr>0x63323366353834652d353566652d<wbr>343033382d393131622d3866373063<wbr>656334616136662f435f564f4c2d62<wbr>3030332d69313331342d63642d636d<wbr>2d63722e6d6435
[root@tpc-arbiter1-100617 ~]# getfattr -d -e hex -m . /exp/b4/gv0/.glusterfs/e0/c5/<wbr>e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3
getfattr: /exp/b4/gv0/.glusterfs/e0/c5/<wbr>e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3: No such file or directory
<blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex">
<blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex">
And the output of "gluster volume heal <volname> info split-brain"
</blockquote>
</blockquote>
[root@tpc-cent-glus1-081017 ~]# gluster volume heal gv0 info split-brain
Brick tpc-cent-glus1-081017:/exp/b1/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-cent-glus2-081017:/exp/b1/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-arbiter1-100617:/exp/b1/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-cent-glus1-081017:/exp/b2/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-cent-glus2-081017:/exp/b2/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-arbiter1-100617:/exp/b2/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-cent-glus1-081017:/exp/b3/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-cent-glus2-081017:/exp/b3/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-arbiter1-100617:/exp/b3/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-cent-glus1-081017:/exp/b4/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-cent-glus2-081017:/exp/b4/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
Brick tpc-arbiter1-100617:/exp/b4/<wbr>gv0
Status: Connected
Number of entries in split-brain: 0
-Matt
From: Karthik Subrahmanya [<a href="mailto:ksubrahm@redhat.com" target="_blank">mailto:ksubrahm@redhat.com</a>]
Sent: Tuesday, October 17, 2017 1:26 AM
To: Matt Waymack <<a href="mailto:mwaymack@nsgdv.com" target="_blank">mwaymack@nsgdv.com</a>>
Cc: gluster-users <<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>>
Subject: Re: [Gluster-users] gfid entries in volume heal info that do not heal
Hi Matt,
Run these commands on all the bricks of the replica pair to get the attrs set on the backend.
On the bricks of first replica set:
getfattr -d -e hex -m . <brick path>/.glusterfs/10/86/<wbr>108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2
On the fourth replica set:
getfattr -d -e hex -m . <brick path>/.glusterfs/e0/c5/<wbr>e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3
Also run the "gluster volume heal <volname>" once and send the shd log.
And the output of "gluster volume heal <volname> info split-brain"
Regards,
Karthik
On Mon, Oct 16, 2017 at 9:51 PM, Matt Waymack <<a href="mailto:mwaymack@nsgdv.com" target="_blank">mailto:mwaymack@nsgdv.com</a>> wrote:
OK, so here’s my output of the volume info and the heal info. I have not yet tracked down physical location of these files, any tips to finding them would be appreciated, but I’m definitely just wanting them gone. I forgot to mention earlier that the cluster is running 3.12 and was upgraded from 3.10; these files were likely stuck like this when it was on 3.10.
[root@tpc-cent-glus1-081017 ~]# gluster volume info gv0
Volume Name: gv0
Type: Distributed-Replicate
Volume ID: 8f07894d-e3ab-4a65-bda1-<wbr>9d9dd46db007
Status: Started
Snapshot Count: 0
Number of Bricks: 4 x (2 + 1) = 12
Transport-type: tcp
Bricks:
Brick1: tpc-cent-glus1-081017:/exp/b1/<wbr>gv0
Brick2: tpc-cent-glus2-081017:/exp/b1/<wbr>gv0
Brick3: tpc-arbiter1-100617:/exp/b1/<wbr>gv0 (arbiter)
Brick4: tpc-cent-glus1-081017:/exp/b2/<wbr>gv0
Brick5: tpc-cent-glus2-081017:/exp/b2/<wbr>gv0
Brick6: tpc-arbiter1-100617:/exp/b2/<wbr>gv0 (arbiter)
Brick7: tpc-cent-glus1-081017:/exp/b3/<wbr>gv0
Brick8: tpc-cent-glus2-081017:/exp/b3/<wbr>gv0
Brick9: tpc-arbiter1-100617:/exp/b3/<wbr>gv0 (arbiter)
Brick10: tpc-cent-glus1-081017:/exp/b4/<wbr>gv0
Brick11: tpc-cent-glus2-081017:/exp/b4/<wbr>gv0
Brick12: tpc-arbiter1-100617:/exp/b4/<wbr>gv0 (arbiter)
Options Reconfigured:
nfs.disable: on
transport.address-family: inet
[root@tpc-cent-glus1-081017 ~]# gluster volume heal gv0 info
Brick tpc-cent-glus1-081017:/exp/b1/<wbr>gv0
<gfid:108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2>
<gfid:6d5ade20-8996-4de2-95d5-<wbr>20ef98004742>
<gfid:bc6cdc3d-5c46-4597-a7eb-<wbr>282b21e9bdd5>
<gfid:3c2ff4d1-3662-4214-8f21-<wbr>f8f47dbdbf06>
<gfid:053e2fb1-bc89-476e-a529-<wbr>90dffa39963c>
<removed to save scrolling>
Status: Connected
Number of entries: 118
Brick tpc-cent-glus2-081017:/exp/b1/<wbr>gv0
<gfid:108694db-c039-4b7c-bd3d-<wbr>ad6a15d811a2>
<gfid:6d5ade20-8996-4de2-95d5-<wbr>20ef98004742>
<gfid:bc6cdc3d-5c46-4597-a7eb-<wbr>282b21e9bdd5>
<gfid:3c2ff4d1-3662-4214-8f21-<wbr>f8f47dbdbf06>
<gfid:053e2fb1-bc89-476e-a529-<wbr>90dffa39963c>
<removed to save scrolling>
Status: Connected
Number of entries: 118
Brick tpc-arbiter1-100617:/exp/b1/<wbr>gv0
Status: Connected
Number of entries: 0
Brick tpc-cent-glus1-081017:/exp/b2/<wbr>gv0
Status: Connected
Number of entries: 0
Brick tpc-cent-glus2-081017:/exp/b2/<wbr>gv0
Status: Connected
Number of entries: 0
Brick tpc-arbiter1-100617:/exp/b2/<wbr>gv0
Status: Connected
Number of entries: 0
Brick tpc-cent-glus1-081017:/exp/b3/<wbr>gv0
Status: Connected
Number of entries: 0
Brick tpc-cent-glus2-081017:/exp/b3/<wbr>gv0
Status: Connected
Number of entries: 0
Brick tpc-arbiter1-100617:/exp/b3/<wbr>gv0
Status: Connected
Number of entries: 0
Brick tpc-cent-glus1-081017:/exp/b4/<wbr>gv0
<gfid:e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3>
<gfid:6f0a0549-8669-46de-8823-<wbr>d6677fdca8e3>
<gfid:d0e2fb2a-21b5-4ea8-a578-<wbr>0801280b2530>
<gfid:48bff79c-7bc2-4dc5-8b7f-<wbr>4401b27fdf5a>
<gfid:5902593d-a059-4ec7-b18b-<wbr>7a2ab5c49a50>
<gfid:cb821178-4621-4fcf-90f3-<wbr>5b5c2ad7f756>
<gfid:6aea0805-8dd1-437c-b922-<wbr>52c9d11e488a>
<gfid:f4076a37-2e2f-4d7a-90dd-<wbr>0a3560a4bdff>
<gfid:51ff7386-a550-4971-957c-<wbr>b42c4d915e9f>
<gfid:4309f7b8-3a9d-4bc8-ba2b-<wbr>799f8a02611b>
<gfid:b76746ec-6d7d-4ea3-a001-<wbr>c96672a4d47e>
<gfid:f8de26e7-d17d-41e0-adcd-<wbr>e7d24ed74ac8>
<gfid:8e2c4540-e0b4-4006-bb5d-<wbr>aacd57f8f21b>
<gfid:183ebefb-b827-4cbc-b42b-<wbr>bfd136d5cabb>
<gfid:88d492fe-bfbd-4463-ba55-<wbr>0582d0ad671b>
<gfid:e3a6c068-d48b-44b5-9480-<wbr>245a69648a9b>
<gfid:4aab9c6a-22d2-469a-a688-<wbr>7b0a8784f4b1>
<gfid:c6d182f2-7e46-4502-a0d2-<wbr>b92824caa4de>
<gfid:eb546f93-e9d6-4a59-ac35-<wbr>6139b5c40919>
<gfid:6043e381-7edf-4569-bc37-<wbr>e27dd13549d2>
<gfid:52090dc7-7a3c-40f9-9c54-<wbr>3395f5158eab>
<gfid:ecceee46-4310-421e-b56e-<wbr>5fe46bd5263c>
<gfid:354aea57-4b40-47fc-8ede-<wbr>1d7e3b7501b4>
<gfid:d43284d4-86aa-42ff-98b8-<wbr>f6340b407d9d>
Status: Connected
Number of entries: 24
Brick tpc-cent-glus2-081017:/exp/b4/<wbr>gv0
<gfid:e0c56bf7-8bfe-46ca-bde1-<wbr>e46b92d33df3>
<gfid:6f0a0549-8669-46de-8823-<wbr>d6677fdca8e3>
<gfid:d0e2fb2a-21b5-4ea8-a578-<wbr>0801280b2530>
<gfid:48bff79c-7bc2-4dc5-8b7f-<wbr>4401b27fdf5a>
<gfid:5902593d-a059-4ec7-b18b-<wbr>7a2ab5c49a50>
<gfid:cb821178-4621-4fcf-90f3-<wbr>5b5c2ad7f756>
<gfid:6aea0805-8dd1-437c-b922-<wbr>52c9d11e488a>
<gfid:f4076a37-2e2f-4d7a-90dd-<wbr>0a3560a4bdff>
<gfid:51ff7386-a550-4971-957c-<wbr>b42c4d915e9f>
<gfid:4309f7b8-3a9d-4bc8-ba2b-<wbr>799f8a02611b>
<gfid:b76746ec-6d7d-4ea3-a001-<wbr>c96672a4d47e>
<gfid:f8de26e7-d17d-41e0-adcd-<wbr>e7d24ed74ac8>
<gfid:8e2c4540-e0b4-4006-bb5d-<wbr>aacd57f8f21b>
<gfid:183ebefb-b827-4cbc-b42b-<wbr>bfd136d5cabb>
<gfid:88d492fe-bfbd-4463-ba55-<wbr>0582d0ad671b>
<gfid:e3a6c068-d48b-44b5-9480-<wbr>245a69648a9b>
<gfid:4aab9c6a-22d2-469a-a688-<wbr>7b0a8784f4b1>
<gfid:c6d182f2-7e46-4502-a0d2-<wbr>b92824caa4de>
<gfid:eb546f93-e9d6-4a59-ac35-<wbr>6139b5c40919>
<gfid:6043e381-7edf-4569-bc37-<wbr>e27dd13549d2>
<gfid:52090dc7-7a3c-40f9-9c54-<wbr>3395f5158eab>
<gfid:ecceee46-4310-421e-b56e-<wbr>5fe46bd5263c>
<gfid:354aea57-4b40-47fc-8ede-<wbr>1d7e3b7501b4>
<gfid:d43284d4-86aa-42ff-98b8-<wbr>f6340b407d9d>
Status: Connected
Number of entries: 24
Brick tpc-arbiter1-100617:/exp/b4/<wbr>gv0
Status: Connected
Number of entries: 0
Thank you for your help!
From: Karthik Subrahmanya [<a href="mailto:mailto:ksubrahm@redhat.com" target="_blank">mailto:mailto:ksubrahm@<wbr>redhat.com</a>]
Sent: Monday, October 16, 2017 10:27 AM
To: Matt Waymack <<a href="mailto:mwaymack@nsgdv.com" target="_blank">mailto:mwaymack@nsgdv.com</a>>
Cc: gluster-users <<a href="mailto:Gluster-users@gluster.org" target="_blank">mailto:Gluster-users@gluster.<wbr>org</a>>
Subject: Re: [Gluster-users] gfid entries in volume heal info that do not heal
Hi Matt,
The files might be in split brain. Could you please send the outputs of these?
gluster volume info <volname>
gluster volume heal <volname> info
And also the getfattr output of the files which are in the heal info output from all the bricks of that replica pair.
getfattr -d -e hex -m . <file path on brick>
Thanks & Regards
Karthik
On 16-Oct-2017 8:16 PM, "Matt Waymack" <<a href="mailto:mwaymack@nsgdv.com" target="_blank">mailto:mwaymack@nsgdv.com</a>> wrote:
Hi all,
I have a volume where the output of volume heal info shows several gfid entries to be healed, but they’ve been there for weeks and have not healed. Any normal file that shows up on the heal info does get healed as expected, but these gfid entries do not. Is there any way to remove these orphaned entries from the volume so they are no longer stuck in the heal process?
Thank you!
______________________________<wbr>_________________
Gluster-users mailing list
<a href="mailto:Gluster-users@gluster.org" target="_blank">mailto:Gluster-users@gluster.<wbr>org</a>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a>
</pre></div></div><span class=""><pre>______________________________<wbr>_________________
Gluster-users mailing list
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a></pre></span></blockquote></div></blockquote></div><br></div>