<div dir="ltr"><div>Please use the systemtap script(<a href="https://paste.fedoraproject.org/paste/EGDa0ErwX0LV3y-gBYpfNA">https://paste.fedoraproject.org/paste/EGDa0ErwX0LV3y-gBYpfNA</a>) to check which process is invoking remove xattr calls.<br>It prints the pid, tid and arguments of all removexattr calls. <br></div>I have checked for these fops at the protocol/client and posix translators.<br><div><br>To run the script .. <br></div><div>1) install systemtap and dependencies.<br>2) install glusterfs-debuginfo<br></div><div>3) change the path of the translator in the systemtap script to appropriate values for your system <br></div><div>(change "/usr/lib64/glusterfs/3.12dev/xlator/protocol/client.so" and "/usr/lib64/glusterfs/3.12dev/xlator/storage/posix.so")<br></div><div>4) run the script as follows <br></div><div>#stap -v fop_trace.stp<br><br>The o/p would look like these .. additionally arguments will also be
dumped if glusterfs-debuginfo is also installed (i had not done it
here.)<br>pid-958: 0 glusterfsd(3893):->posix_setxattr <br>pid-958: 47 glusterfsd(3893):<-posix_setxattr <br>pid-966: 0 glusterfsd(5033):->posix_setxattr <br>pid-966: 57 glusterfsd(5033):<-posix_setxattr <br>pid-1423: 0 glusterfs(1431):->client_setxattr <br>pid-1423: 37 glusterfs(1431):<-client_setxattr <br>pid-1423: 0 glusterfs(1431):->client_setxattr <br>pid-1423: 41 glusterfs(1431):<-client_setxattr <br><br></div><div>Regards,<br></div><div>Sanoj<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 10, 2017 at 2:56 PM, Sanoj Unnikrishnan <span dir="ltr"><<a href="mailto:sunnikri@redhat.com" target="_blank">sunnikri@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>@ pranith , yes . we can get the pid on all removexattr call and also print the backtrace of the glusterfsd process when trigerring removing xattr.<br></div>I will write the script and reply back.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 8, 2017 at 7:06 AM, Pranith Kumar Karampuri <span dir="ltr"><<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Ram,<br></div> As per the code, self-heal was the only candidate which *can* do it. Could you check logs of self-heal daemon and the mount to check if there are any metadata heals on root?<br><br><br></div>+Sanoj<br><br></div>Sanoj,<br></div> Is there any systemtap script we can use to detect which process is removing these xattrs?<br></div><div class="gmail_extra"><div><div class="m_-6958572705042465487h5"><br><div class="gmail_quote">On Sat, Jul 8, 2017 at 2:58 AM, Ankireddypalle Reddy <span dir="ltr"><<a href="mailto:areddy@commvault.com" target="_blank">areddy@commvault.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div class="m_-6958572705042465487m_7808153704959452878m_-8846442532414902980WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">We lost the attributes on all the bricks on servers glusterfs2 and glusterfs3 again.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[root@glusterfs2 Log_Files]# gluster volume info<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Volume Name: StoragePool<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Type: Distributed-Disperse<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Volume ID: 149e976f-4e21-451c-bf0f-f56912<wbr>08531f<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Status: Started<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Number of Bricks: 20 x (2 + 1) = 60<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Transport-type: tcp<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Bricks:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick1: glusterfs1sds:/ws/disk1/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick2: glusterfs2sds:/ws/disk1/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick3: glusterfs3sds:/ws/disk1/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick4: glusterfs1sds:/ws/disk2/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick5: glusterfs2sds:/ws/disk2/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick6: glusterfs3sds:/ws/disk2/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick7: glusterfs1sds:/ws/disk3/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick8: glusterfs2sds:/ws/disk3/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick9: glusterfs3sds:/ws/disk3/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick10: glusterfs1sds:/ws/disk4/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick11: glusterfs2sds:/ws/disk4/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick12: glusterfs3sds:/ws/disk4/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick13: glusterfs1sds:/ws/disk5/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick14: glusterfs2sds:/ws/disk5/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick15: glusterfs3sds:/ws/disk5/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick16: glusterfs1sds:/ws/disk6/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick17: glusterfs2sds:/ws/disk6/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick18: glusterfs3sds:/ws/disk6/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick19: glusterfs1sds:/ws/disk7/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick20: glusterfs2sds:/ws/disk7/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick21: glusterfs3sds:/ws/disk7/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick22: glusterfs1sds:/ws/disk8/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick23: glusterfs2sds:/ws/disk8/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick24: glusterfs3sds:/ws/disk8/ws_bri<wbr>ck<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick25: glusterfs4sds.commvault.com:/w<wbr>s/disk1/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick26: glusterfs5sds.commvault.com:/w<wbr>s/disk1/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick27: glusterfs6sds.commvault.com:/w<wbr>s/disk1/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick28: glusterfs4sds.commvault.com:/w<wbr>s/disk10/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick29: glusterfs5sds.commvault.com:/w<wbr>s/disk10/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick30: glusterfs6sds.commvault.com:/w<wbr>s/disk10/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick31: glusterfs4sds.commvault.com:/w<wbr>s/disk11/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick32: glusterfs5sds.commvault.com:/w<wbr>s/disk11/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick33: glusterfs6sds.commvault.com:/w<wbr>s/disk11/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick34: glusterfs4sds.commvault.com:/w<wbr>s/disk12/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick35: glusterfs5sds.commvault.com:/w<wbr>s/disk12/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick36: glusterfs6sds.commvault.com:/w<wbr>s/disk12/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick37: glusterfs4sds.commvault.com:/w<wbr>s/disk2/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick38: glusterfs5sds.commvault.com:/w<wbr>s/disk2/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick39: glusterfs6sds.commvault.com:/w<wbr>s/disk2/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick40: glusterfs4sds.commvault.com:/w<wbr>s/disk3/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick41: glusterfs5sds.commvault.com:/w<wbr>s/disk3/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick42: glusterfs6sds.commvault.com:/w<wbr>s/disk3/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick43: glusterfs4sds.commvault.com:/w<wbr>s/disk4/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick44: glusterfs5sds.commvault.com:/w<wbr>s/disk4/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick45: glusterfs6sds.commvault.com:/w<wbr>s/disk4/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick46: glusterfs4sds.commvault.com:/w<wbr>s/disk5/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick47: glusterfs5sds.commvault.com:/w<wbr>s/disk5/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick48: glusterfs6sds.commvault.com:/w<wbr>s/disk5/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick49: glusterfs4sds.commvault.com:/w<wbr>s/disk6/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick50: glusterfs5sds.commvault.com:/w<wbr>s/disk6/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick51: glusterfs6sds.commvault.com:/w<wbr>s/disk6/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick52: glusterfs4sds.commvault.com:/w<wbr>s/disk7/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick53: glusterfs5sds.commvault.com:/w<wbr>s/disk7/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick54: glusterfs6sds.commvault.com:/w<wbr>s/disk7/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick55: glusterfs4sds.commvault.com:/w<wbr>s/disk8/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick56: glusterfs5sds.commvault.com:/w<wbr>s/disk8/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick57: glusterfs6sds.commvault.com:/w<wbr>s/disk8/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick58: glusterfs4sds.commvault.com:/w<wbr>s/disk9/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick59: glusterfs5sds.commvault.com:/w<wbr>s/disk9/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Brick60: glusterfs6sds.commvault.com:/w<wbr>s/disk9/ws_brick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Options Reconfigured:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">performance.readdir-ahead: on<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">diagnostics.client-log-level: INFO<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">auth.allow: glusterfs1sds,glusterfs2sds,gl<wbr>usterfs3sds,<a href="http://glusterfs4sds.commvault.com" target="_blank">glusterfs4sds.comm<wbr>vault.com</a>,<a href="http://glusterfs5sds.commvault.com" target="_blank">glusterfs5sds.commva<wbr>ult.com</a>,<a href="http://glusterfs6sds.commvault.com" target="_blank">glusterfs6sds.commvaul<wbr>t.com</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks and Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ram<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Pranith Kumar Karampuri [mailto:<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>]
<br>
<b>Sent:</b> Friday, July 07, 2017 12:15 PM</span></p><div><div class="m_-6958572705042465487m_7808153704959452878h5"><br>
<b>To:</b> Ankireddypalle Reddy<br>
<b>Cc:</b> Gluster Devel (<a href="mailto:gluster-devel@gluster.org" target="_blank">gluster-devel@gluster.org</a>); <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a><br>
<b>Subject:</b> Re: [Gluster-devel] gfid and volume-id extended attributes lost<u></u><u></u></div></div><p></p><div><div class="m_-6958572705042465487m_7808153704959452878h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Jul 7, 2017 at 9:25 PM, Ankireddypalle Reddy <<a href="mailto:areddy@commvault.com" target="_blank">areddy@commvault.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">3.7.19</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">These are the only callers for removexattr and only _posix_remove_xattr has the potential to do removexattr as posix_removexattr already makes sure that it is not gfid/volume-id. And surprise surprise _posix_remove_xattr
happens only from healing code of afr/ec. And this can only happen if the source brick doesn't have gfid, which doesn't seem to match with the situation you explained.
<br>
<br>
# line filename / context / line<br>
1 1234 xlators/mgmt/glusterd/src/glus<wbr>terd-quota.c <<glusterd_remove_quota_limit><wbr>><br>
ret = sys_lremovexattr (abspath, QUOTA_LIMIT_KEY);<br>
2 1243 xlators/mgmt/glusterd/src/glus<wbr>terd-quota.c <<glusterd_remove_quota_limit><wbr>><br>
ret = sys_lremovexattr (abspath, QUOTA_LIMIT_OBJECTS_KEY);<br>
3 6102 xlators/mgmt/glusterd/src/glus<wbr>terd-utils.c <<glusterd_check_and_set_brick<wbr>_xattr>><br>
sys_lremovexattr (path, "trusted.glusterfs.test");<br>
4 80 xlators/storage/posix/src/posi<wbr>x-handle.h <<REMOVE_PGFID_XATTR>><br>
op_ret = sys_lremovexattr (path, key); \<br>
5 5026 xlators/storage/posix/src/posi<wbr>x.c <<_posix_remove_xattr>><br>
op_ret = sys_lremovexattr (filler->real_path, key);<br>
6 5101 xlators/storage/posix/src/posi<wbr>x.c <<posix_removexattr>><br>
op_ret = sys_lremovexattr (real_path, name);<br>
7 6811 xlators/storage/posix/src/posi<wbr>x.c <<init>><br>
sys_lremovexattr (dir_data->data, "trusted.glusterfs.test");<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">So there are only two possibilities:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">1) Source directory in ec/afr doesn't have gfid<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">2) Something else removed these xattrs.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">What is your volume info? May be that will give more clues.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> PS: sys_fremovexattr is called only from posix_fremovexattr(), so that doesn't seem to be the culprit as it also have checks to guard against gfid/volume-id removal.<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks and Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ram</span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Pranith Kumar Karampuri [mailto:<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>]
<br>
<b>Sent:</b> Friday, July 07, 2017 11:54 AM</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>To:</b> Ankireddypalle Reddy<br>
<b>Cc:</b> Gluster Devel (<a href="mailto:gluster-devel@gluster.org" target="_blank">gluster-devel@gluster.org</a>);
<a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a><br>
<b>Subject:</b> Re: [Gluster-devel] gfid and volume-id extended attributes lost<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Fri, Jul 7, 2017 at 9:20 PM, Ankireddypalle Reddy <<a href="mailto:areddy@commvault.com" target="_blank">areddy@commvault.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Pranith,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> Thanks for looking in to the issue. The bricks were mounted after the reboot. One
more thing that I noticed was when the attributes were manually set when glusterd was up then on starting the volume the attributes were again lost. Had to stop glusterd set attributes and then start glusterd. After that the volume start succeeded.</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Which version is this?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204,204,204)">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks and Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ram</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Pranith Kumar Karampuri [mailto:<a href="mailto:pkarampu@redhat.com" target="_blank">pkarampu@redhat.com</a>]
<br>
<b>Sent:</b> Friday, July 07, 2017 11:46 AM<br>
<b>To:</b> Ankireddypalle Reddy<br>
<b>Cc:</b> Gluster Devel (<a href="mailto:gluster-devel@gluster.org" target="_blank">gluster-devel@gluster.org</a>);
<a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a><br>
<b>Subject:</b> Re: [Gluster-devel] gfid and volume-id extended attributes lost</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Did anything special happen on these two bricks? It can't happen in the I/O path:<br>
posix_removexattr() has:<br>
0 if (!strcmp (GFID_XATTR_KEY, name)) { <wbr> <wbr> <wbr> <wbr>
<br>
1 gf_msg (this->name, GF_LOG_WARNING, 0, P_MSG_XATTR_NOT_REMOVED,
<br>
2 "Remove xattr called on gfid for file %s", real_path);
<br>
3 op_ret = -1; <wbr>
<br>
4 goto out; <wbr>
<br>
5 } <wbr> <wbr>
<br>
6 if (!strcmp (GF_XATTR_VOL_ID_KEY, name)) { <wbr>
<br>
7 gf_msg (this->name, GF_LOG_WARNING, 0, P_MSG_XATTR_NOT_REMOVED,
<br>
8 "Remove xattr called on volume-id for file %s",
<br>
9 real_path); <wbr>
<br>
10 op_ret = -1; <wbr>
<br>
11 goto out; <wbr>
<br>
12 } <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I just found that op_errno is not set correctly, but it can't happen in the I/O path, so self-heal/rebalance are off the hook.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I also grepped for any removexattr of trusted.gfid from glusterd and didn't find any.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">So one thing that used to happen was that sometimes when machines reboot, the brick mounts wouldn't happen and this would lead to absence of both trusted.gfid and volume-id. So
at the moment this is my wild guess.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Fri, Jul 7, 2017 at 8:39 PM, Ankireddypalle Reddy <<a href="mailto:areddy@commvault.com" target="_blank">areddy@commvault.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> We faced an issue in the production today. We had to stop the volume and reboot all the servers in the cluster. Once the servers rebooted starting of the volume failed because
the following extended attributes were not present on all the bricks on 2 servers.
<u></u><u></u></p>
<p class="m_-6958572705042465487m_7808153704959452878m_-8846442532414902980gmail-m8154062416900934605m-5097610773020260100m5471498391887908807msolistparagraph">
1)<span style="font-size:7.0pt"> </span>trusted.gfid<u></u><u></u></p>
<p class="m_-6958572705042465487m_7808153704959452878m_-8846442532414902980gmail-m8154062416900934605m-5097610773020260100m5471498391887908807msolistparagraph">
2)<span style="font-size:7.0pt"> </span>trusted.glusterfs.volume-id<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.25in">
<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.25in">
We had to manually set these extended attributes to start the volume. Are there any such known issues.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks and Regards,<u></u><u></u></p>
<p class="MsoNormal">Ram
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">***************************Leg<wbr>al Disclaimer********************<wbr>*******<u></u><u></u></p>
<div>
<p class="MsoNormal">"This communication may contain confidential and privileged material for the<u></u><u></u></p>
<div>
<p class="MsoNormal">sole use of the intended recipient. Any unauthorized review, use or distribution<u></u><u></u></p>
<div>
<p class="MsoNormal">by others is strictly prohibited. If you have received the message by mistake,<u></u><u></u></p>
<div>
<p class="MsoNormal">please advise the sender by reply email and delete the message. Thank you."<u></u><u></u></p>
<div>
<p class="MsoNormal">******************************<wbr>******************************<wbr>**********<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-devel</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Pranith<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal">***************************Leg<wbr>al Disclaimer********************<wbr>*******<u></u><u></u></p>
<div>
<p class="MsoNormal">"This communication may contain confidential and privileged material for the<u></u><u></u></p>
<div>
<p class="MsoNormal">sole use of the intended recipient. Any unauthorized review, use or distribution<u></u><u></u></p>
<div>
<p class="MsoNormal">by others is strictly prohibited. If you have received the message by mistake,<u></u><u></u></p>
<div>
<p class="MsoNormal">please advise the sender by reply email and delete the message. Thank you."<u></u><u></u></p>
<div>
<p class="MsoNormal">******************************<wbr>******************************<wbr>**********<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Pranith<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal">***************************Leg<wbr>al Disclaimer********************<wbr>*******<u></u><u></u></p>
<div>
<p class="MsoNormal">"This communication may contain confidential and privileged material for the<u></u><u></u></p>
<div>
<p class="MsoNormal">sole use of the intended recipient. Any unauthorized review, use or distribution<u></u><u></u></p>
<div>
<p class="MsoNormal">by others is strictly prohibited. If you have received the message by mistake,<u></u><u></u></p>
<div>
<p class="MsoNormal">please advise the sender by reply email and delete the message. Thank you."<u></u><u></u></p>
<div>
<p class="MsoNormal">******************************<wbr>******************************<wbr>**********<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Pranith<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div></div></div><div><div class="m_-6958572705042465487m_7808153704959452878h5">
<div>***************************Leg<wbr>al Disclaimer********************<wbr>*******<div>"This communication may contain confidential and privileged material for the<div>sole use of the intended recipient. Any unauthorized review, use or distribution<div>by others is strictly prohibited. If you have received the message by mistake,<div>please advise the sender by reply email and delete the message. Thank you."<div>******************************<wbr>******************************<wbr>**********</div>
</div></div></div></div></div></div></div></div></blockquote></div><br><br clear="all"><br></div></div><span class="m_-6958572705042465487HOEnZb"><font color="#888888">-- <br><div class="m_-6958572705042465487m_7808153704959452878gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>