<div dir="ltr"><div dir="ltr">Hi Ahemad,<div><br></div><div>Glad to hear that your problem is resolved. Thanks Strahil and Hubert for your suggestions.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 17, 2020 at 12:29 PM ahemad shaik <<a href="mailto:ahemad_shaik@yahoo.com">ahemad_shaik@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><div></div>
<div dir="ltr">Hi </div><div dir="ltr"><br></div><div dir="ltr">I tried starting and enabling the glusterfsd service suggested by Hubert and Strahil, I see that works when one of the gluster volume is not available and client still able to access the mount point.</div><div dir="ltr"><br></div><div dir="ltr">Thanks so much Strahil , Hubert and Karthik on your suggestion and for the time.</div><div dir="ltr"><br></div><div dir="ltr">can you please help on making data consistent in all nodes when we have some 5 hours of down time and one of the server . how to achieve data consistency in all 3 nodes.</div></div></div></blockquote><div>When the node/brick which was down comes back up, gluster self heal daemon (glustershd) will automatically do the syncing of the data to the down brick and make it consistent with the good copies. You can alternatively run the index heal command "gluster volume heal <vol-name>" to trigger the heal manually and you can see the entries needing heal and the progress of heal by running "gluster volume heal <vol-name> info".</div><div><br></div><div>HTH,</div><div>Karthik</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px"><div dir="ltr"><br></div><div dir="ltr">Any documentation on that end will be helpful.</div><div dir="ltr"><br></div><div dir="ltr">Thanks,</div><div dir="ltr">Ahemad</div><div><br></div>
</div><div id="gmail-m_4988459089738744826yahoo_quoted_3071354869">
<div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div>
On Wednesday, 17 June, 2020, 12:03:06 pm IST, Karthik Subrahmanya <<a href="mailto:ksubrahm@redhat.com" target="_blank">ksubrahm@redhat.com</a>> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="gmail-m_4988459089738744826yiv7945434010"><div><div dir="ltr">Hi Ahemad,<div><br clear="none"></div><div>Sorry for a lot of back and forth on this. But we might need a few more details to find the actual cause here.</div><div>What version of gluster you are running on server and client nodes?</div><div>Also provide the statedump [1] of the bricks and the client process when the hang is seen.</div><div><br clear="none"></div><div>[1] <a rel="nofollow" shape="rect" href="https://docs.gluster.org/en/latest/Troubleshooting/statedump/" target="_blank">https://docs.gluster.org/en/latest/Troubleshooting/statedump/</a></div><div><br clear="none"></div><div>Regards,</div><div>Karthik</div></div><br clear="none"><div><div dir="ltr">On Wed, Jun 17, 2020 at 9:25 AM <a rel="nofollow" shape="rect" href="mailto:ahemad_shaik@yahoo.com" target="_blank">ahemad_shaik@yahoo.com</a> <<a rel="nofollow" shape="rect" href="mailto:ahemad_shaik@yahoo.com" target="_blank">ahemad_shaik@yahoo.com</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932ymail_android_signature">I have a 3 replica gluster volume created in 3 nodes and when one node is down due to some issue and the clients not able access volume. This was the issue. I have fixed the server and it is back. There was downtime at client. I just want to avoid the downtime since it is 3 replica.</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365416567"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365417784">I am testing the high availability now by making one of the brick server rebooting or shut down manually. I just want to make volume accessible always by client. That is the reason we went for replica volume.</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592330049527"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592330049663">So I just would like to know how to make the client volume high available even some VM or node which is having gluster volume goes down unexpectedly had down time of 10 hours.</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365467069"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365467633"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365491832"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365492056">Glusterfsd service is used to stop which is disabled in my cluster and I see one more service running gluserd. </div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365535299"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365535942">Will starting glusterfsd service in all 3 replica nodes will help in achieving what I am trying.</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365598356"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365598651">Hope I am clear.</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365603574"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365603744">Thanks,</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365606313">Ahemad</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365588010"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365588536"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592330082194"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592330082391">Thanks,</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592365359700">Ahemad</div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592330256754"><br clear="none"></div><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yMail_cursorElementTracker_1592330257147"><br clear="none"></div> <br clear="none"> <blockquote style="margin:0px 0px 20px"> <div style="font-family:Roboto,sans-serif;color:rgb(109,0,246)"> <div>On Tue, Jun 16, 2020 at 23:12, Strahil Nikolov</div><div><<a rel="nofollow" shape="rect" href="mailto:hunter86_bg@yahoo.com" target="_blank">hunter86_bg@yahoo.com</a>> wrote:</div> </div> <div style="padding:10px 0px 0px 20px;margin:10px 0px 0px;border-left:1px solid rgb(109,0,246)"> In my cluster , the service is enabled and running.<br clear="none"><br clear="none">What actually is your problem ?<br clear="none">When a gluster brick process dies unexpectedly - all fuse clients will be waiting for the timeout .<br clear="none">The service glusterfsd is ensuring that during system shutdown , the brick procesees will be shutdown in such way that all native clients won't 'hang' and wait for the timeout, but will directly choose another brick.<br clear="none"><br clear="none">The same happens when you manually run the kill script - all gluster processes shutdown and all clients are redirected to another brick.<br clear="none"><br clear="none">Keep in mind that fuse mounts will also be killed both by the script and the glusterfsd service.<br clear="none"><br clear="none">Best Regards,<br clear="none">Strahil Nikolov<br clear="none"><div id="gmail-m_4988459089738744826yiv7945434010gmail-m_4992302681320781932yqtfd40624"><br clear="none">На 16 юни 2020 г. 19:48:32 GMT+03:00, ahemad shaik <<a rel="nofollow" shape="rect" href="mailto:ahemad_shaik@yahoo.com" target="_blank">ahemad_shaik@yahoo.com</a>> написа:<br clear="none">> Hi Strahil,<br clear="none">>I have the gluster setup on centos 7 cluster.I see glusterfsd service<br clear="none">>and it is in inactive state.<br clear="none">>systemctl status glusterfsd.service● glusterfsd.service - GlusterFS<br clear="none">>brick processes (stopping only) Loaded: loaded<br clear="none">>(/usr/lib/systemd/system/glusterfsd.service; disabled; vendor preset:<br clear="none">>disabled) Active: inactive (dead)<br clear="none">><br clear="none">>so you mean starting this service in all the nodes where gluster<br clear="none">>volumes are created, will solve the issue ?<br clear="none">><br clear="none">>Thanks,Ahemad<br clear="none">><br clear="none">><br clear="none">>On Tuesday, 16 June, 2020, 10:12:22 pm IST, Strahil Nikolov<br clear="none">><<a rel="nofollow" shape="rect" href="mailto:hunter86_bg@yahoo.com" target="_blank">hunter86_bg@yahoo.com</a>> wrote: <br clear="none">> <br clear="none">> Hi ahemad,<br clear="none">><br clear="none">>the script kills all gluster processes, so the clients won't wait <br clear="none">>for the timeout before switching to another node in the TSP.<br clear="none">><br clear="none">>In CentOS/RHEL, there is a systemd service called<br clear="none">>'glusterfsd.service' that is taking care on shutdown to kill all<br clear="none">>processes, 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<br clear="none">>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<br clear="none">>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 Nikolov<br clear="none">><br clear="none">>На 16 юни 2020 г. 18:41:59 GMT+03:00, ahemad shaik<br clear="none">><<a rel="nofollow" shape="rect" href="mailto:ahemad_shaik@yahoo.com" target="_blank">ahemad_shaik@yahoo.com</a>> написа:<br clear="none">>> Hi, <br clear="none">>>I see there is a script file in below mentioned path in all nodes<br clear="none">>using<br clear="none">>>which gluster volume<br clear="none">>>created./usr/share/glusterfs/scripts/stop-all-gluster-processes.sh<br clear="none">>>I need to create a system service and when ever there is some server<br clear="none">>>down, we need to call this script or we need to have it run always it<br clear="none">>>will take care when some node is down to make sure that client will<br clear="none">>not<br clear="none">>>have any issues in accessing mount point ?<br clear="none">>>can you please share any documentation on how to use this.That will be<br clear="none">>>great help.<br clear="none">>>Thanks,Ahemad<br clear="none">>><br clear="none">>><br clear="none">>><br clear="none">>><br clear="none">>>On Tuesday, 16 June, 2020, 08:59:31 pm IST, Strahil Nikolov<br clear="none">>><<a rel="nofollow" shape="rect" href="mailto:hunter86_bg@yahoo.com" target="_blank">hunter86_bg@yahoo.com</a>> wrote: <br clear="none">>> <br clear="none">>> Hi Ahemad,<br clear="none">>><br clear="none">>>You can simplify it by creating a systemd service that will call <br clear="none">>>the script.<br clear="none">>><br clear="none">>>It was already mentioned in a previous thread (with example), so <br clear="none">>>you can just use it.<br clear="none">>><br clear="none">>>Best Regards,<br clear="none">>>Strahil Nikolov<br clear="none">>><br clear="none">>>На 16 юни 2020 г. 16:02:07 GMT+03:00, Hu Bert <<a rel="nofollow" shape="rect" href="mailto:revirii@googlemail.com" target="_blank">revirii@googlemail.com</a>><br clear="none">>>написа:<br clear="none">>>>Hi,<br clear="none">>>><br clear="none">>>>if you simply reboot or shutdown one of the gluster nodes, there<br clear="none">>might<br clear="none">>>>be a (short or medium) unavailability of the volume on the nodes. To<br clear="none">>>>avoid this there's script:<br clear="none">>>><br clear="none">>>>/usr/share/glusterfs/scripts/stop-all-gluster-processes.sh (path may<br clear="none">>>>be different depending on distribution)<br clear="none">>>><br clear="none">>>>If i remember correctly: this notifies the clients that this node is<br clear="none">>>>going to be unavailable (please correct me if the details are wrong).<br clear="none">>>>If i do reboots of one gluster node, i always call this script and<br clear="none">>>>never have seen unavailability issues on the clients.<br clear="none">>>><br clear="none">>>><br clear="none">>>>Regards,<br clear="none">>>>Hubert<br clear="none">>>><br clear="none">>>>Am Mo., 15. Juni 2020 um 19:36 Uhr schrieb ahemad shaik<br clear="none">>>><<a rel="nofollow" shape="rect" href="mailto:ahemad_shaik@yahoo.com" target="_blank">ahemad_shaik@yahoo.com</a>>:<br clear="none">>>>><br clear="none">>>>> Hi There,<br clear="none">>>>><br clear="none">>>>> I have created 3 replica gluster volume with 3 bricks from 3 nodes.<br clear="none">>>>><br clear="none">>>>> "gluster volume create glustervol replica 3 transport tcp<br clear="none">>>node1:/data<br clear="none">>>>node2:/data node3:/data force"<br clear="none">>>>><br clear="none">>>>> mounted on client node using below command.<br clear="none">>>>><br clear="none">>>>> "mount -t glusterfs node4:/glustervol /mnt/"<br clear="none">>>>><br clear="none">>>>> when any of the node (either node1,node2 or node3) goes down,<br clear="none">>>gluster<br clear="none">>>>mount/volume (/mnt) not accessible at client (node4).<br clear="none">>>>><br clear="none">>>>> purpose of replicated volume is high availability but not able to<br clear="none">>>>achieve it.<br clear="none">>>>><br clear="none">>>>> Is it a bug or i am missing anything.<br clear="none">>>>><br clear="none">>>>><br clear="none">>>>> Any suggestions will be great help!!!<br clear="none">>>>><br clear="none">>>>> kindly suggest.<br clear="none">>>>><br clear="none">>>>> Thanks,<br clear="none">>>>> Ahemad<br clear="none">>>>><br clear="none">>>>> ________<br clear="none">>>>><br clear="none">>>>><br clear="none">>>>><br clear="none">>>>> Community Meeting Calendar:<br clear="none">>>>><br clear="none">>>>> Schedule -<br clear="none">>>>> Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br clear="none">>>>> Bridge: <a rel="nofollow" shape="rect" href="https://bluejeans.com/441850968" target="_blank">https://bluejeans.com/441850968</a><br clear="none">>>>><br clear="none">>>>> Gluster-users mailing list<br clear="none">>>>> <a rel="nofollow" shape="rect" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br clear="none">>>>> <a rel="nofollow" shape="rect" href="https://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a><div id="gmail-m_4988459089738744826yiv7945434010yqtfd98199"><br clear="none">>>>________<br clear="none">>>><br clear="none">>>><br clear="none">>>><br clear="none">>>>Community Meeting Calendar:<br clear="none">>>><br clear="none">>>>Schedule -<br clear="none">>>>Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br clear="none">>>>Bridge: <a rel="nofollow" shape="rect" href="https://bluejeans.com/441850968" target="_blank">https://bluejeans.com/441850968</a><br clear="none">>>><br clear="none">>>>Gluster-users mailing list<br clear="none">>>><a rel="nofollow" shape="rect" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br clear="none">>>><a rel="nofollow" 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 id="gmail-m_4988459089738744826yiv7945434010yqtfd28591"> </div></div><div id="gmail-m_4988459089738744826yiv7945434010yqtfd73183"> </div></blockquote><div id="gmail-m_4988459089738744826yiv7945434010yqtfd93579">________<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
Community Meeting Calendar:<br clear="none">
<br clear="none">
Schedule -<br clear="none">
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br clear="none">
Bridge: <a rel="nofollow" shape="rect" href="https://bluejeans.com/441850968" target="_blank">https://bluejeans.com/441850968</a><br clear="none">
<br clear="none">
Gluster-users mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br clear="none">
<a rel="nofollow" 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">
</div></blockquote></div></div></div></div>
</div>
</div></div></blockquote></div></div>