How to mount a local GlusterFS volume at boot (fstab/systemd fix)
When running a GlusterFS cluster, you may want to use the volume(s) on the servers themselves.
During the boot process, GlusterFS will take a bit of time to start. systemd-mount
, which handles the mount points from /etc/fstab
, will run before the glusterfs-server
service finishes to start.
The mount will fail so you will end up without your mounted volume after a reboot.
After doing to some research to fix this issue, I stumbled upon this Ubuntu bug report from 2011 (!). At the time, systemd wasn’t the init system, but in 2016 someone posted a pretty good solution for systemd systems.