> But I have a question, it is possible to mount a volume at /gluster-data > for example??? >No, the way AutoFS works it needs a directory just for itself, so you can't do that. I think the simplest would be to use /mnt/autofs like us, and then do a symbolic link : ln -s /mnt/autofs/gluster-data /gluster-data That way you'd end up with pretty much what you want. -- Kevin Lemonnier PGP Fingerprint : 89A5 2283 04A0 E6E9 0111 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: Digital signature URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20161021/96bd974e/attachment.sig>
Ville-Pekka Vainio
2016-Oct-21 16:17 UTC
[Gluster-users] gluster volume not mounted on boot
Hi all, On a system using systemd, you should also be able to use x-systemd.automount. Just add 'noauto,x-systemd.automount? to your fstab line and systemd should mount the gluster volume for you when it?s accessed. The ?noauto? option means that autofs won?t touch the mount and systemd will have control over it. -Ville-Pekka