Hi all. I have 3 nodes glusterfs servers and multiple client and as I am a bit newbie on this not sure how to setup correctly the clients. 1. The clients mounts the glusterfs in fstab but when I reboot them they don't mount it automatically 2. Not sure what to exactly put in the fastab as right now someone had <node1>:/vol1 /volume1 glusterfs default,netdev 0 0 But what happened when NODE1 is unavailable? Clients are centos 7.5 so the servers Thanks -- *Alfredo* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20181015/5b8f0ef7/attachment.html>
You may have a typo, "_netdev" you are missing "_". Give that a try. Diego On Mon, Oct 15, 2018, 15:33 Alfredo De Luca <alfredo.deluca at gmail.com> wrote:> Hi all. > I have 3 nodes glusterfs servers and multiple client and as I am a bit > newbie on this not sure how to setup correctly the clients. > 1. The clients mounts the glusterfs in fstab but when I reboot them they > don't mount it automatically > 2. Not sure what to exactly put in the fastab as right now someone had > <node1>:/vol1 /volume1 glusterfs default,netdev 0 0 > > But what happened when NODE1 is unavailable? > > Clients are centos 7.5 so the servers > > Thanks > > -- > *Alfredo* > > _______________________________________________ > 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/20181015/c68a2f02/attachment.html>
Hi Diego...sorry it's a typo here on the email... but I ve put _netdev in the fstab. Thanks On Mon, Oct 15, 2018 at 9:33 PM Alfredo De Luca <alfredo.deluca at gmail.com> wrote:> Hi all. > I have 3 nodes glusterfs servers and multiple client and as I am a bit > newbie on this not sure how to setup correctly the clients. > 1. The clients mounts the glusterfs in fstab but when I reboot them they > don't mount it automatically > 2. Not sure what to exactly put in the fastab as right now someone had > <node1>:/vol1 /volume1 glusterfs default,netdev 0 0 > > But what happened when NODE1 is unavailable? > > Clients are centos 7.5 so the servers > > Thanks > > -- > *Alfredo* > >-- *Alfredo* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20181015/01197d9e/attachment.html>
15.10.2018 23:33, Alfredo De Luca ?????:> Hi all. > I have 3 nodes glusterfs servers and multiple client and as I am a bit > newbie on this not sure how to setup correctly the clients. > 1. The clients mounts the glusterfs in fstab but when I reboot them > they don't? mount it automatically > 2. Not sure what to exactly put in the fastab as right now someone had > <node1>:/vol1 /volume1 glusterfs default,netdev 0 0 >Dunno, we run gluster on the same nodes as VM, so we put localhost in domain definitions. In your situation I'd use something like VRRP ( keepalived , for instance).> But what happened when NODE1 is unavailable? > > Clients are centos 7.5 so the servers > > Thanks > > -- > /*Alfredo*/ > > > > _______________________________________________ > 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/20181016/88bf97b7/attachment.html>
I wrote my own systemd-script: ------------------ [Unit] Description = Data dir After=network.target glusterfs-server.service Required=network-online.target [Mount] What=knoten-1:/gv1 Where=/glusterfs Type=glusterfs Options=defaults,acl [Install] WantedBy=multi-user.target ------------------ This script must be in /etc/systemd/system and the name must be <mountpoint>.mount Am 15.10.18 um 21:33 schrieb Alfredo De Luca:> Hi all.? > I have 3 nodes glusterfs servers and multiple client and as I am a bit > newbie on this not sure how to setup correctly the clients. > 1. The clients mounts the glusterfs in fstab but when I reboot them they > don't? mount it automatically > 2. Not sure what to exactly put in the fastab as right now someone had > <node1>:/vol1 /volume1 glusterfs default,netdev 0 0 > > But what happened when NODE1 is unavailable?The Client will only get a list of all hosts in the cluster in if one node is down the client will take another node.> > Clients are centos 7.5 so the servers > > Thanks > > -- > /*Alfredo*/ > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > https://lists.gluster.org/mailman/listinfo/gluster-users >-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: OpenPGP digital signature URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20181016/b05f4bc0/attachment.sig>