[Gluster-users] glusterfs volume not mounted at boot time (RedHat 8.4)

Dario Lesca d.lesca at solinos.it
Sat Aug 28 07:44:17 UTC 2021


Il giorno ven, 27/08/2021 alle 23.34 +0300, Alex K ha scritto:
> On Fri, Aug 27, 2021, 18:25 Dario Lesca <d.lesca at solinos.it> wrote:
> > Thanks Andreas,
> > I will follow your suggestion to check the order of services via
> > systemd
> > For now, I can't substitute RedHat (I use Rocky Linux, not RedHat)
> >  with Debian or Ubuntu.
> 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.

Thanks, I will try this way and let you know.

Many thanks
Dario


> > 
> > Many thanks
> > Dario
> > 
> > Il giorno ven, 27/08/2021 alle 15.19 +0000, a.schwibbe at gmx.net ha
> > scritto:
> > > Hey Dario,
> > > 
> > > 
> > > I also have libvirtd running. No problems on Ubuntu dists,
> > > everything is started/mounted in correct order, but can't
> > > recommend on RedHat.
> > > I'd look at chkconfig man-page, you could edit boot order of your
> > > services if necessary.
> > > 
> > > 
> > > Andreas
> > > 
> > > 
> > > "Dario Lesca" d.lesca at solinos.it – 27. August 2021 17:12
> > > > Thanks Andreas.
> > > > 
> > > > I have try to remove only the "noauto" in my fstab line but
> > > > none is change.
> > > > 
> > > > Then I have follow you suggest and I try to leave only
> > > > "defaults,_netdev"
> > > > In this case the volume after reboot is mounted.
> > > > Good!
> > > > 
> > > > 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".
> > > > This is why I added those x-systemd directives
> > > > 
> > > > There is some solution to this issue?
> > > > 
> > > > Many thanks
> > > > Dario
> > > > 
> > > > 
> > > > 
> > > > Il giorno ven, 27/08/2021 alle 14.53 +0000,
> > > > a.schwibbe at gmx.net ha scritto:
> > > > > Dario,
> > > > > 
> > > > > 
> > > > > Your fstab line includes mount option "noauto" so it won't
> > > > > automatically mount on boot!?
> > > > > 
> > > > > Try to remove noauto, reboot.
> > > > > 
> > > > > I usually only mount local gluster mount point with
> > > > > defaults,_netdev
> > > > > 
> > > > > 
> > > > > 
> > > > > Cheers
> > > > > 
> > > > > 
> > > > > Andreas
> > > > > 
> > > > > 
> > > > > 
> > > > > "Dario Lesca" d.lesca at solinos.it– 27. August 2021 16:38
> > > > > 
> > > > > > Hello everybody.
> > > > > > 
> > > > > > 
> > > > > > I have setup a glusterfs volume without problem, all work
> > > > > > fine.
> > > > > > 
> > > > > > But if I reboot a node, when the node start the volume is
> > > > > > not mounted.
> > > > > > 
> > > > > > If I access to the node via SSH and run "mount /virt-gfs/"
> > > > > > the volume
> > > > > > 
> > > > > > is mounted correctly.
> > > > > > 
> > > > > > 
> > > > > > This is the /etc/fstab entry:
> > > > > > 
> > > > > > 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
> > > > > > 
> > > > > > 
> > > > > > For testing, I have also set SElinux to "permissive" but
> > > > > > none is
> > > > > > 
> > > > > > change.
> > > > > > 
> > > > > > 
> > > > > > Someone can help me?
> > > > > > 
> > > > > > 
> > > > > > If you need some other info, let me know
> > > > > > 
> > > > > > 
> > > > > > Many thanks
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > ________
> > 
> > 
> > 
> > Community Meeting Calendar:
> > 
> > Schedule -
> > Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
> > Bridge: https://meet.google.com/cpu-eiue-hvk
> > Gluster-users mailing list
> > Gluster-users at gluster.org
> > https://lists.gluster.org/mailman/listinfo/gluster-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20210828/d98a99c1/attachment.html>


More information about the Gluster-users mailing list