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>
On Tue, Oct 16, 2018 at 02:45:49PM +0200, Stefan Kania wrote:> Am 15.10.18 um 21:33 schrieb Alfredo De Luca: > > 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.You have to connect to the volume first before you can get that list from the server. What happens if, when you make the initial connection, you try to connect to a node that's down? I would certainly expect it to fail, since the client doesn't have that list yet, so it has no idea what other nodes it might attempt to connect to. I primarily use gluster for VM disk images, so, in my case, I list all the gluster nodes in the VM definition and, if the first one isn't reachable, then it tries the second and so on until it finds one that's available to connect to. What's the fstab equivalent? -- Dave Sherohman