<html><head></head><body><div class="ydp4b3a25f5yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi Strahil,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I have the gluster setup on centos 7 cluster.I see glusterfsd service and it is in inactive state.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div>systemctl status glusterfsd.service</div><div>● glusterfsd.service - GlusterFS brick processes (stopping only)</div><div>&nbsp; &nbsp;Loaded: loaded (/usr/lib/systemd/system/glusterfsd.service; disabled; vendor preset: disabled)</div><div>&nbsp; &nbsp;Active: inactive (dead)</div><div><br></div></div><br></div><div dir="ltr" data-setdir="false">so you mean starting this service in all the nodes where gluster volumes are created, will solve the issue ?<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks,</div><div dir="ltr" data-setdir="false">Ahemad</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div><br></div>
        
        </div><div id="yahoo_quoted_2474528784" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Tuesday, 16 June, 2020, 10:12:22 pm IST, Strahil Nikolov &lt;hunter86_bg@yahoo.com&gt; wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">Hi ahemad,<br clear="none"><br clear="none">the&nbsp; script&nbsp; kills&nbsp; all gluster&nbsp; processes,&nbsp; so the clients won't wait&nbsp; for the timeout before&nbsp; switching to another node in the TSP.<br clear="none"><br clear="none">In CentOS/RHEL,&nbsp; there&nbsp; is a&nbsp; systemd&nbsp; service called 'glusterfsd.service' that&nbsp; is taking care on shutdown to kill all processes,&nbsp; so clients won't hung.<br clear="none"><br clear="none">systemctl cat glusterfsd.service --no-pager<br clear="none"># /usr/lib/systemd/system/glusterfsd.service<br clear="none">[Unit]<br clear="none">Description=GlusterFS brick processes (stopping only)<br clear="none">After=network.target glusterd.service<br clear="none"><br clear="none">[Service]<br clear="none">Type=oneshot<br clear="none"># glusterd starts the glusterfsd processed on-demand<br clear="none"># /bin/true will mark this service as started, RemainAfterExit keeps it active<br clear="none">ExecStart=/bin/true<br clear="none">RemainAfterExit=yes<br clear="none"># if there are no glusterfsd processes, a stop/reload should not give an error<br clear="none">ExecStop=/bin/sh -c "/bin/killall --wait glusterfsd || /bin/true"<br clear="none">ExecReload=/bin/sh -c "/bin/killall -HUP glusterfsd || /bin/true"<br clear="none"><br clear="none">[Install]<br clear="none">WantedBy=multi-user.target<br clear="none"><br clear="none">Best Regards,<br clear="none">Strahil&nbsp; Nikolov<br clear="none"><div class="yqt3576088527" id="yqtfd16109"><br clear="none">На 16 юни 2020 г. 18:41:59 GMT+03:00, ahemad shaik &lt;<a shape="rect" ymailto="mailto:ahemad_shaik@yahoo.com" href="mailto:ahemad_shaik@yahoo.com">ahemad_shaik@yahoo.com</a>&gt; написа:<br clear="none">&gt; Hi,&nbsp;<br clear="none">&gt;I see there is a script file in below mentioned path in all nodes using<br clear="none">&gt;which gluster volume<br clear="none">&gt;created./usr/share/glusterfs/scripts/stop-all-gluster-processes.sh<br clear="none">&gt;I need to create a system service and when ever there is some server<br clear="none">&gt;down, we need to call this script or we need to have it run always it<br clear="none">&gt;will take care when some node is down to make sure that client will not<br clear="none">&gt;have any issues in accessing mount point ?<br clear="none">&gt;can you please share any documentation on how to use this.That will be<br clear="none">&gt;great help.<br clear="none">&gt;Thanks,Ahemad<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt;<br clear="none">&gt;On Tuesday, 16 June, 2020, 08:59:31 pm IST, Strahil Nikolov<br clear="none">&gt;&lt;<a shape="rect" ymailto="mailto:hunter86_bg@yahoo.com" href="mailto:hunter86_bg@yahoo.com">hunter86_bg@yahoo.com</a>&gt; wrote:&nbsp; <br clear="none">&gt; <br clear="none">&gt; Hi Ahemad,<br clear="none">&gt;<br clear="none">&gt;You can simplify it&nbsp; by creating a systemd service that&nbsp; will&nbsp; call&nbsp;<br clear="none">&gt;the script.<br clear="none">&gt;<br clear="none">&gt;It was&nbsp; already mentioned&nbsp; in a previous thread&nbsp; (with example),&nbsp; so&nbsp;<br clear="none">&gt;you can just use&nbsp; it.<br clear="none">&gt;<br clear="none">&gt;Best Regards,<br clear="none">&gt;Strahil&nbsp; Nikolov<br clear="none">&gt;<br clear="none">&gt;На 16 юни 2020 г. 16:02:07 GMT+03:00, Hu Bert &lt;<a shape="rect" ymailto="mailto:revirii@googlemail.com" href="mailto:revirii@googlemail.com">revirii@googlemail.com</a>&gt;<br clear="none">&gt;написа:<br clear="none">&gt;&gt;Hi,<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;if you simply reboot or shutdown one of the gluster nodes, there might<br clear="none">&gt;&gt;be a (short or medium) unavailability of the volume on the nodes. To<br clear="none">&gt;&gt;avoid this there's script:<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;/usr/share/glusterfs/scripts/stop-all-gluster-processes.sh (path may<br clear="none">&gt;&gt;be different depending on distribution)<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;If i remember correctly: this notifies the clients that this node is<br clear="none">&gt;&gt;going to be unavailable (please correct me if the details are wrong).<br clear="none">&gt;&gt;If i do reboots of one gluster node, i always call this script and<br clear="none">&gt;&gt;never have seen unavailability issues on the clients.<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;Regards,<br clear="none">&gt;&gt;Hubert<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;Am Mo., 15. Juni 2020 um 19:36 Uhr schrieb ahemad shaik<br clear="none">&gt;&gt;&lt;<a shape="rect" ymailto="mailto:ahemad_shaik@yahoo.com" href="mailto:ahemad_shaik@yahoo.com">ahemad_shaik@yahoo.com</a>&gt;:<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; Hi There,<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; I have created 3 replica gluster volume with 3 bricks from 3 nodes.<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; "gluster volume create glustervol replica 3 transport tcp<br clear="none">&gt;node1:/data<br clear="none">&gt;&gt;node2:/data node3:/data force"<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; mounted on client node using below command.<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; "mount -t glusterfs node4:/glustervol&nbsp; &nbsp; /mnt/"<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; when any of the node (either node1,node2 or node3) goes down,<br clear="none">&gt;gluster<br clear="none">&gt;&gt;mount/volume (/mnt) not accessible at client (node4).<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; purpose of replicated volume is high availability but not able to<br clear="none">&gt;&gt;achieve it.<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; Is it a bug or i am missing anything.<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; Any suggestions will be great help!!!<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; kindly suggest.<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; Thanks,<br clear="none">&gt;&gt;&gt; Ahemad<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; ________<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; Community Meeting Calendar:<br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; Schedule -<br clear="none">&gt;&gt;&gt; Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br clear="none">&gt;&gt;&gt; Bridge: <a shape="rect" href="https://bluejeans.com/441850968" target="_blank">https://bluejeans.com/441850968</a><br clear="none">&gt;&gt;&gt;<br clear="none">&gt;&gt;&gt; Gluster-users mailing list<br clear="none">&gt;&gt;&gt; <a shape="rect" ymailto="mailto:Gluster-users@gluster.org" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br clear="none">&gt;&gt;&gt; <a shape="rect" href="https://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a><br clear="none">&gt;&gt;________<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;Community Meeting Calendar:<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;Schedule -<br clear="none">&gt;&gt;Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br clear="none">&gt;&gt;Bridge: <a shape="rect" href="https://bluejeans.com/441850968" target="_blank">https://bluejeans.com/441850968</a><br clear="none">&gt;&gt;<br clear="none">&gt;&gt;Gluster-users mailing list<br clear="none">&gt;&gt;<a shape="rect" ymailto="mailto:Gluster-users@gluster.org" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br clear="none">&gt;&gt;<a shape="rect" href="https://lists.gluster.org/mailman/listinfo/gluster-users " target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users </a> </div></div></div>
            </div>
        </div></body></html>