<html><head></head><body><div>Il giorno ven, 27/08/2021 alle 23.34 +0300, Alex K ha scritto:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto"><div>On Fri, Aug 27, 2021, 18:25 Dario Lesca <<a href="mailto:d.lesca@solinos.it">d.lesca@solinos.it</a>> wrote:<br><div class="gmail_quote"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><div>Thanks Andreas,</div><div>I will follow your suggestion to check the order of services via systemd</div><div><span></span></div><div>For now, I can't substitute RedHat (I use Rocky Linux, not RedHat) with Debian or Ubuntu.</div></div></blockquote></div></div><div dir="auto">I would go with the systemd route for better control of the dependencies. You can create a custom systemd service which will mount the glysterfs volume only if glusterd and libvirt is started. I have had also very good results with pacemaker/crosync in case of cluster setups.</div></div></blockquote><div><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Cantarell; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;">Thanks, I will try this way and let you know.</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Cantarell; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Cantarell; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;">Many thanks</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Cantarell; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;">Dario</div><div><br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><div><br></div><div>Many thanks</div><div>Dario</div><div><br></div><div>Il giorno ven, 27/08/2021 alle 15.19 +0000, <a href="mailto:a.schwibbe@gmx.net" target="_blank" rel="noreferrer">a.schwibbe@gmx.net</a> ha scritto:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hey Dario,<br></div><div><br></div><div><br></div><div>I also have libvirtd running. No problems on Ubuntu dists, everything is started/mounted in correct order, but can't recommend on RedHat.<br></div><div>I'd look at chkconfig man-page, you could edit boot order of your services if necessary.<br></div><div><br></div><div><br></div><div>Andreas<br></div><div><br></div><div><br></div><div>"Dario Lesca" <a href="mailto:d.lesca@solinos.it" target="_blank" rel="noreferrer">d.lesca@solinos.it</a> – 27. August 2021 17:12<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Thanks Andreas.<br></div><div><br></div><div>I have try to remove only the "noauto" in my fstab line but none is change.<br></div><div><br></div><div>Then I have follow you suggest and I try to leave only "defaults,_netdev"<br></div><div>In this case the volume after reboot is mounted.<br></div><div>Good!<br></div><div><br></div><div>But my problem is that this volume must mount before libvirtd start, or maybe it is better to say, libvirtd must start after "glusterd is start and volume is mount".<br></div><div>This is why I added those x-systemd directives<br></div><div><br></div><div>There is some solution to this issue?<br></div><div><br></div><div>Many thanks<br></div><div>Dario<br></div><div><br></div><div><br></div><div><br></div><div>Il giorno ven, 27/08/2021 alle 14.53 +0000, <a href="mailto:a.schwibbe@gmx.net" target="_blank" rel="noreferrer">a.schwibbe@gmx.net</a> ha scritto:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Dario,<br></div><div><br></div><div><br></div><div>Your fstab line includes mount option "noauto" so it won't automatically mount on boot!?<br></div><div><br></div><div>Try to remove noauto, reboot.<br></div><div><br></div><div>I usually only mount local gluster mount point with defaults,_netdev<br></div><div><br></div><div><br></div><div><br></div><div>Cheers<br></div><div><br></div><div><br></div><div>Andreas<br></div><div><br></div><div><br></div><div><br></div><div>"Dario Lesca" <a href="mailto:d.lesca@solinos.it" target="_blank" rel="noreferrer">d.lesca@solinos.it</a>– 27. August 2021 16:38<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hello everybody.<br></div><div><br></div><div><br></div><div>I have setup a glusterfs volume without problem, all work fine.<br></div><div><br></div><div>But if I reboot a node, when the node start the volume is not mounted.<br></div><div><br></div><div>If I access to the node via SSH and run "mount /virt-gfs/" the volume<br></div><div><br></div><div>is mounted correctly.<br></div><div><br></div><div><br></div><div>This is the /etc/fstab entry:<br></div><div><br></div><div>virt2.local:/gfsvol1 /virt-gfs glusterfs defaults,_netdev,noauto,x-systemd.automount,x-systemd.device-timeout=120,x-systemd.requires=glusterd.service,x-systemd.before=libvirtd.service 0 0<br></div><div><br></div><div><br></div><div>For testing, I have also set SElinux to "permissive" but none is<br></div><div><br></div><div>change.<br></div><div><br></div><div><br></div><div>Someone can help me?<br></div><div><br></div><div><br></div><div>If you need some other info, let me know<br></div><div><br></div><div><br></div><div>Many thanks<br></div><div><br></div><div><br></div><div><br></div><div><br></div></blockquote></blockquote></blockquote></blockquote></div><div>________<br></div><div><br></div><div><br></div><div><br>Community Meeting Calendar:<br></div><div><br>Schedule -<br>Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br>Bridge: <a href="https://meet.google.com/cpu-eiue-hvk" rel="noreferrer noreferrer" target="_blank">https://meet.google.com/cpu-eiue-hvk</a><br>Gluster-users mailing list<br></div><div><a href="mailto:Gluster-users@gluster.org" target="_blank" rel="noreferrer">Gluster-users@gluster.org</a><br></div><div><a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a><br></div></blockquote></div></div></div></blockquote></body></html>