<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I tried both, but still the same :-(. Any other solution?</p>
<p>Stefan<br>
</p>
<br>
<div class="moz-cite-prefix">Am 26.07.18 um 16:21 schrieb Vlad
Kopylov:<br>
</div>
<blockquote type="cite"
cite="mid:CACeDKtdNTkBebnDsTLsa8+-2XMqLJosXK2M0sBiaAb+b0R35rw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>or maybe something like fetch-attempts=5<br>
</div>
<div><br>
</div>
<div>vm1:/v /var/volumes/vol-1 glusterfs
defaults,_netdev,negative-timeout=10,attribute-timeout=30,fopen-keep-cache,direct-io-mode=enable,fetch-attempts=5
0 0</div>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jul 26, 2018 at 6:36 AM, Anoop
C S <span dir="ltr"><<a
href="mailto:anoopcs@autistici.org" target="_blank"
moz-do-not-send="true">anoopcs@autistici.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">On Thu, 2018-07-26 at 12:23 +0200, Stefan Kania
wrote:<br>
> Hello,<br>
> <br>
> I have the following problem:<br>
> If I reboot a node in a gluster-cluster on a Debian-
or Ubuntu-System<br>
> the fuse-mount is not working if I just put the
mount-options into the<br>
> /etc/fstab. For this reason I wrote a systemd-script
as followed:<br>
> -----------------<br>
> [Unit]<br>
> Description = Data dir<br>
> After=network.target glusterfs-server.service<br>
> Required=network-online.target<br>
> [Mount]<br>
> What=c1:/gv1<br>
> Where=/glusterfs<br>
> Type=glusterfs<br>
> Options=defaults,acl<br>
> [Install]<br>
> WantedBy=multi-user.target<br>
> -----------------<br>
> Somtimes the the volume will be mounted and sometime
not. I can't figure<br>
> out why it's sometime not mounting the volume. If I
execute the script<br>
> after a reboot the volume is mounting, so the script
is working only the<br>
> conditions during the boot-process are the problem (I
think). Can<br>
> someone give me a hint where to change things in my
script?<br>
<br>
</span>Instead of this custom script, does it help if you
put the following option to /etc/fstab?<br>
<br>
x-systemd.requires=<service name><br>
<br>
See <a
href="http://man7.org/linux/man-pages/man5/systemd.mount.5.html#FSTAB"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://man7.org/linux/man-<wbr>pages/man5/systemd.mount.5.<wbr>html#FSTAB</a>
for more details.<br>
<span class=""><br>
> It dosn't matter which gluster-version or which
OS-Version I use it's<br>
> always the same.<br>
> <br>
> Stefan<br>
> <br>
> <br>
</span>> ______________________________<wbr>_________________<br>
> Gluster-users mailing list<br>
> <a href="mailto:Gluster-users@gluster.org"
moz-do-not-send="true">Gluster-users@gluster.org</a><br>
> <a
href="https://lists.gluster.org/mailman/listinfo/gluster-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
<br>
______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org"
moz-do-not-send="true">Gluster-users@gluster.org</a><br>
<a
href="https://lists.gluster.org/mailman/listinfo/gluster-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>