<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I should add that there are additional errors as well in the brick logs. I've posted them to a gist at
<a id="LPlnk951970" href="https://gist.github.com/brandentimm/576432ddabd70184d257">
https://gist.github.com/brandentimm/576432ddabd70184d257</a></p>
<p><br>
</p>
<div style="color: rgb(49, 55, 57);" dir="ltr">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> gluster-users-bounces@gluster.org &lt;gluster-users-bounces@gluster.org&gt; on behalf of Branden Timm &lt;btimm@wisc.edu&gt;<br>
<b>Sent:</b> Thursday, June 4, 2015 1:31 PM<br>
<b>To:</b> Atin Mukherjee<br>
<b>Cc:</b> gluster-users@gluster.org<br>
<b>Subject:</b> Re: [Gluster-users] One host won't rebalance</font>
<div>&nbsp;</div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I have stopped and restarted the rebalance several times, with no difference in results. I have restarted all gluster services several times, and completely rebooted the affected system.</p>
<p><br>
</p>
<p>Yes, gluster volume status does show an active rebalance task for volume bigdata2.</p>
<p><br>
</p>
<p>I just noticed something else in the brick logs. I am seeing tons of message similar to these two:</p>
<p><br>
</p>
<p>[2015-06-04 16:22:26.179797] E [posix-helpers.c:938:posix_handle_pair] 0-bigdata2-posix: /&lt;redacted path&gt;: key:glusterfs-internal-fop flags: 1 length:4 error:Operation not supported<br>
[2015-06-04 16:22:26.179874] E [posix.c:2325:posix_create] 0-bigdata2-posix: setting xattrs on /&lt;path&nbsp;redacted&gt; failed (Operation not supported)<br>
</p>
<p><br>
</p>
<p>Note that both messages were referring to the same file. I have confirmed that xattr support is on in the underlying system. Additionally, these messages are NOT appearing on the other cluster members that seem to be unaffected by whatever is going on.</p>
<p><br>
</p>
<p>I found this bug which seems to be similar, but it was theoretically closed for the 3.6.1 release:
<a id="LPlnk220460" href="https://bugzilla.redhat.com/show_bug.cgi?id=1098794">https://bugzilla.redhat.com/show_bug.cgi?id=1098794</a></p>
<p><br>
</p>
<p>Thanks again for your help.</p>
<p><br>
</p>
<div style="color:rgb(49,55,57)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Atin Mukherjee &lt;atin.mukherjee83@gmail.com&gt;<br>
<b>Sent:</b> Thursday, June 4, 2015 1:25 PM<br>
<b>To:</b> Branden Timm<br>
<b>Cc:</b> Shyamsundar Ranganathan; Susant Palai; gluster-users@gluster.org; Atin Mukherjee; Nithya Balachandran<br>
<b>Subject:</b> Re: [Gluster-users] One host won't rebalance</font>
<div>&nbsp;</div>
</div>
<div>
<p dir="ltr"></p>
<p dir="ltr">Sent from Samsung Galaxy S4<br>
On 4 Jun 2015 22:18, &quot;Branden Timm&quot; &lt;<a href="mailto:btimm@wisc.edu">btimm@wisc.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Atin, thank you for the response.&nbsp; Indeed I have investigated the locks on that file, and it is a glusterfs process with an exclusive read/write lock on the entire file:<br>
&gt;<br>
&gt; lsof /var/lib/glusterd/vols/bigdata2/rebalance/3b5025d4-3230-4914-ad0d-32f78587c4db.pid<br>
&gt; COMMAND&nbsp; &nbsp; &nbsp;PID USER&nbsp; &nbsp;FD&nbsp; &nbsp;TYPE DEVICE SIZE/OFF&nbsp; &nbsp; &nbsp;NODE NAME<br>
&gt; glusterfs 12776 root&nbsp; &nbsp; 6uW&nbsp; REG&nbsp; 253,1&nbsp; &nbsp; &nbsp; &nbsp; 6 15730814 /var/lib/glusterd/vols/bigdata2/rebalance/3b5025d4-3230-4914-ad0d-32f78587c4db.pid<br>
&gt;<br>
&gt; That process was invoked with the following options:<br>
&gt;<br>
&gt; ps -ef | grep 12776<br>
&gt; root&nbsp; &nbsp; &nbsp;12776&nbsp; &nbsp; &nbsp;1&nbsp; 0 Jun03 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:03 /usr/sbin/glusterfs -s localhost --volfile-id rebalance/bigdata2 --xlator-option *dht.use-readdirp=yes --xlator-option *dht.lookup-unhashed=yes --xlator-option *dht.assert-no-child-down=yes --xlator-option *replicate*.data-self-heal=off
 --xlator-option *replicate*.metadata-self-heal=off --xlator-option *replicate*.entry-self-heal=off --xlator-option *replicate*.readdir-failover=off --xlator-option *dht.readdir-optimize=on --xlator-option *dht.rebalance-cmd=1 --xlator-option *dht.node-uuid=3b5025d4-3230-4914-ad0d-32f78587c4db
 --socket-file /var/run/gluster/gluster-rebalance-2cd214fa-6fa4-49d0-93f6-de2c510d4dd4.sock --pid-file /var/lib/glusterd/vols/bigdata2/rebalance/3b5025d4-3230-4914-ad0d-32f78587c4db.pid -l /var/log/glusterfs/bigdata2-rebalance.log<br>
This means there is already a rebalance process alive. Could you help me with following:<br>
1. What does bigdata2-rebalance.log says? Don't you see a shutting down log somewhere?<br>
2. Does output of gluster volume status consider bigdata2 is in rebalancing?</p>
<p dir="ltr">As a work around can you kill this process and start a fresh rebalance process?<br>
&gt;<br>
&gt; Not sure if this information is helpful, but thanks for your reply.<br>
&gt;<br>
&gt; ________________________________________<br>
&gt; From: Atin Mukherjee &lt;<a href="mailto:amukherj@redhat.com">amukherj@redhat.com</a>&gt;<br>
&gt; Sent: Thursday, June 4, 2015 9:24 AM<br>
&gt; To: Branden Timm; <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a>; Nithya Balachandran; Susant Palai; Shyamsundar Ranganathan<br>
&gt; Subject: Re: [Gluster-users] One host won't rebalance<br>
&gt;<br>
&gt; On 06/04/2015 06:30 PM, Branden Timm wrote:<br>
&gt; &gt; I'm really hoping somebody can at least point me in the right direction on how to diagnose this. This morning, roughly 24 hours after initiating the rebalance, one host of three in the cluster still hasn't done anything:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;&nbsp; Node&nbsp; &nbsp; &nbsp; &nbsp;Rebalanced-files&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; size&nbsp; &nbsp; &nbsp; &nbsp;scanned&nbsp; &nbsp; &nbsp; failures&nbsp; &nbsp; &nbsp; &nbsp;skipped&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;status&nbsp; &nbsp;run time in secs<br>
&gt; &gt;&nbsp; ---------&nbsp; &nbsp; &nbsp; -----------&nbsp; &nbsp;-----------&nbsp; &nbsp;-----------&nbsp; &nbsp;-----------&nbsp; &nbsp;-----------&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;------------&nbsp; &nbsp; &nbsp;--------------<br>
&gt; &gt;&nbsp; localhost&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2543&nbsp; &nbsp; &nbsp; &nbsp; 14.2TB&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;11162&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in progress&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;60946.00<br>
&gt; &gt;&nbsp; gluster-8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1358&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6.7TB&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9298&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in progress&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;60946.00<br>
&gt; &gt;&nbsp; gluster-6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0Bytes&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in progress&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.00<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; The only error showing up in the rebalance log is this:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; [2015-06-03 19:59:58.314100] E [MSGID: 100018] [glusterfsd.c:1677:glusterfs_pidfile_update] 0-glusterfsd: pidfile /var/lib/glusterd/vols/bigdata2/rebalance/3b5025d4-3230-4914-ad0d-32f78587c4db.pid lock failed [Resource temporarily unavailable]<br>
&gt; This looks like acquiring posix file lock failed and seems like<br>
&gt; rebalance is *actually not* running. I would leave it to dht folks to<br>
&gt; comment on it.<br>
&gt;<br>
&gt; ~Atin<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Any help would be greatly appreciated!<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ________________________________<br>
&gt; &gt; From: <a href="mailto:gluster-users-bounces@gluster.org">gluster-users-bounces@gluster.org</a> &lt;<a href="mailto:gluster-users-bounces@gluster.org">gluster-users-bounces@gluster.org</a>&gt; on behalf of Branden Timm &lt;<a href="mailto:btimm@wisc.edu">btimm@wisc.edu</a>&gt;<br>
&gt; &gt; Sent: Wednesday, June 3, 2015 11:52 AM<br>
&gt; &gt; To: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
&gt; &gt; Subject: [Gluster-users] One host won't rebalance<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Greetings Gluster Users,<br>
&gt; &gt;<br>
&gt; &gt; I started a rebalance operation on my distributed volume today (CentOS 6.6/GlusterFS 3.6.3), and one of the three hosts comprising the cluster is just sitting at 0.00 for 'run time in secs', and shows 0 files scanned, failed, or skipped.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I've reviewed the rebalance log for the affected server, and I'm seeing these messages:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; [2015-06-03 15:34:32.703692] I [MSGID: 100030] [glusterfsd.c:2018:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.6.3 (args: /usr/sbin/glusterfs -s localhost --volfile-id rebalance/bigdata2 --xlator-option *dht.use-readdirp=yes
 --xlator-option *dht.lookup-unhashed=yes --xlator-option *dht.assert-no-child-down=yes --xlator-option *replicate*.data-self-heal=off --xlator-option *replicate*.metadata-self-heal=off --xlator-option *replicate*.entry-self-heal=off --xlator-option *replicate*.readdir-failover=off
 --xlator-option *dht.readdir-optimize=on --xlator-option *dht.rebalance-cmd=1 --xlator-option *dht.node-uuid=3b5025d4-3230-4914-ad0d-32f78587c4db --socket-file /var/run/gluster/gluster-rebalance-2cd214fa-6fa4-49d0-93f6-de2c510d4dd4.sock --pid-file /var/lib/glusterd/vols/bigdata2/rebalance/3b5025d4-3230-4914-ad0d-32f78587c4db.pid
 -l /var/log/glusterfs/bigdata2-rebalance.log)<br>
&gt; &gt; [2015-06-03 15:34:32.704217] E [MSGID: 100018] [glusterfsd.c:1677:glusterfs_pidfile_update] 0-glusterfsd: pidfile /var/lib/glusterd/vols/bigdata2/rebalance/3b5025d4-3230-4914-ad0d-32f78587c4db.pid lock failed [Resource temporarily unavailable]<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I initially investigated the first warning, readv on <a href="http://127.0.0.1:24007">
127.0.0.1:24007</a> failed. netstat shows that ip/port belonging to a glusterd process. Beyond that I wasn't able to tell why there would be a problem.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Next, I checked out what was up with the lock file that reported resource temprarily unavailable. The file is present and contains the pid of a running glusterd process:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; root&nbsp; &nbsp; &nbsp;12776&nbsp; &nbsp; &nbsp;1&nbsp; 0 10:18 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/sbin/glusterfs -s localhost --volfile-id rebalance/bigdata2 --xlator-option *dht.use-readdirp=yes --xlator-option *dht.lookup-unhashed=yes --xlator-option *dht.assert-no-child-down=yes --xlator-option
 *replicate*.data-self-heal=off --xlator-option *replicate*.metadata-self-heal=off --xlator-option *replicate*.entry-self-heal=off --xlator-option *replicate*.readdir-failover=off --xlator-option *dht.readdir-optimize=on --xlator-option *dht.rebalance-cmd=1
 --xlator-option *dht.node-uuid=3b5025d4-3230-4914-ad0d-32f78587c4db --socket-file /var/run/gluster/gluster-rebalance-2cd214fa-6fa4-49d0-93f6-de2c510d4dd4.sock --pid-file /var/lib/glusterd/vols/bigdata2/rebalance/3b5025d4-3230-4914-ad0d-32f78587c4db.pid -l
 /var/log/glusterfs/bigdata2-rebalance.log<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Finally, one other thing I saw from running 'gluster volume status &lt;volname&gt; clients' is that the affected server is the only one of the three that lists a
<a href="http://127.0.0.1">127.0.0.1</a>:&lt;port&gt; client for each of it's bricks. I don't know why there would be a client coming from loopback on the server, but it seems strange. Additionally, it makes me wonder if the fact that I have auth.allow set to a single
 subnet (that doesn't include 127.0.0.1) is causing this problem for some reason, or if loopback is implicitly allowed to connect.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Any tips or suggestions would be much appreciated. Thanks!<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Gluster-users mailing list<br>
&gt; &gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; --<br>
&gt; ~Atin<br>
&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>