Re: [Gluster-users] systemd-script

2018-07-28 Thread Ramon Selga
maybe you could find "defaults,_netdev,noauto,x-systemd.automount " useful... 
good luck!


El 28/07/18 a les 10:11, Stefan Kania ha escrit:


I tried both, but still the same :-(. Any other solution?

Stefan


Am 26.07.18 um 16:21 schrieb Vlad Kopylov:

or maybe something like fetch-attempts=5

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



On Thu, Jul 26, 2018 at 6:36 AM, Anoop C S > wrote:


On Thu, 2018-07-26 at 12:23 +0200, Stefan Kania wrote:
> Hello,
>
> I have the following problem:
> If I reboot a node in a gluster-cluster on a Debian- or Ubuntu-System
> the fuse-mount is not working if I just put the mount-options into the
> /etc/fstab. For this reason I wrote a systemd-script as followed:
> -
> [Unit]
> Description = Data dir
> After=network.target glusterfs-server.service
> Required=network-online.target
> [Mount]
> What=c1:/gv1
> Where=/glusterfs
> Type=glusterfs
> Options=defaults,acl
> [Install]
> WantedBy=multi-user.target
> -
> Somtimes the the volume will be mounted and sometime not. I can't figure
> out why it's sometime not mounting the volume. If I execute the script
> after a reboot the volume is mounting, so the script is working only the
> conditions during the boot-process are the problem (I think). Can
> someone give me a hint where to change things in my script?

Instead of this custom script, does it help if you put the following
option to /etc/fstab?

x-systemd.requires=

See http://man7.org/linux/man-pages/man5/systemd.mount.5.html#FSTAB
 for
more details.

> It dosn't matter which gluster-version or which OS-Version I use it's
> always the same.
>
> Stefan
>
>
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org 
> https://lists.gluster.org/mailman/listinfo/gluster-users


___
Gluster-users mailing list
Gluster-users@gluster.org 
https://lists.gluster.org/mailman/listinfo/gluster-users







___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] systemd-script

2018-07-28 Thread Stefan Kania
I tried both, but still the same :-(. Any other solution?

Stefan


Am 26.07.18 um 16:21 schrieb Vlad Kopylov:
> or maybe something like fetch-attempts=5
>
> 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
>
>
> On Thu, Jul 26, 2018 at 6:36 AM, Anoop C S  > wrote:
>
> On Thu, 2018-07-26 at 12:23 +0200, Stefan Kania wrote:
> > Hello,
> >
> > I have the following problem:
> > If I reboot a node in a gluster-cluster on a Debian- or
> Ubuntu-System
> > the fuse-mount is not working if I just put the mount-options
> into the
> > /etc/fstab. For this reason I wrote a systemd-script as followed:
> > -
> > [Unit]
> > Description = Data dir
> > After=network.target glusterfs-server.service
> > Required=network-online.target
> > [Mount]
> > What=c1:/gv1
> > Where=/glusterfs
> > Type=glusterfs
> > Options=defaults,acl
> > [Install]
> > WantedBy=multi-user.target
> > -
> > Somtimes the the volume will be mounted and sometime not. I
> can't figure
> > out why it's sometime not mounting the volume. If I execute the
> script
> > after a reboot the volume is mounting, so the script is working
> only the
> > conditions during the boot-process are the problem (I think). Can
> > someone give me a hint where to change things in my script?
>
> Instead of this custom script, does it help if you put the
> following option to /etc/fstab?
>
> x-systemd.requires=
>
> See
> http://man7.org/linux/man-pages/man5/systemd.mount.5.html#FSTAB
> 
> for more details.
>
> > It dosn't matter which gluster-version or which OS-Version I use
> it's
> > always the same.
> >
> > Stefan
> >
> >
> > ___
> > Gluster-users mailing list
> > Gluster-users@gluster.org 
> > https://lists.gluster.org/mailman/listinfo/gluster-users
> 
>
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org 
> https://lists.gluster.org/mailman/listinfo/gluster-users
> 
>
>



signature.asc
Description: OpenPGP digital signature
___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] systemd-script

2018-07-26 Thread Vlad Kopylov
or maybe something like fetch-attempts=5

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


On Thu, Jul 26, 2018 at 6:36 AM, Anoop C S  wrote:

> On Thu, 2018-07-26 at 12:23 +0200, Stefan Kania wrote:
> > Hello,
> >
> > I have the following problem:
> > If I reboot a node in a gluster-cluster on a Debian- or Ubuntu-System
> > the fuse-mount is not working if I just put the mount-options into the
> > /etc/fstab. For this reason I wrote a systemd-script as followed:
> > -
> > [Unit]
> > Description = Data dir
> > After=network.target glusterfs-server.service
> > Required=network-online.target
> > [Mount]
> > What=c1:/gv1
> > Where=/glusterfs
> > Type=glusterfs
> > Options=defaults,acl
> > [Install]
> > WantedBy=multi-user.target
> > -
> > Somtimes the the volume will be mounted and sometime not. I can't figure
> > out why it's sometime not mounting the volume. If I execute the script
> > after a reboot the volume is mounting, so the script is working only the
> > conditions during the boot-process are the problem (I think). Can
> > someone give me a hint where to change things in my script?
>
> Instead of this custom script, does it help if you put the following
> option to /etc/fstab?
>
> x-systemd.requires=
>
> See http://man7.org/linux/man-pages/man5/systemd.mount.5.html#FSTAB for
> more details.
>
> > It dosn't matter which gluster-version or which OS-Version I use it's
> > always the same.
> >
> > Stefan
> >
> >
> > ___
> > Gluster-users mailing list
> > Gluster-users@gluster.org
> > https://lists.gluster.org/mailman/listinfo/gluster-users
>
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org
> https://lists.gluster.org/mailman/listinfo/gluster-users
>
___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] systemd-script

2018-07-26 Thread Anoop C S
On Thu, 2018-07-26 at 12:23 +0200, Stefan Kania wrote:
> Hello,
> 
> I have the following problem:
> If I reboot a node in a gluster-cluster on a Debian- or Ubuntu-System
> the fuse-mount is not working if I just put the mount-options into the
> /etc/fstab. For this reason I wrote a systemd-script as followed:
> -
> [Unit]
> Description = Data dir
> After=network.target glusterfs-server.service
> Required=network-online.target
> [Mount]
> What=c1:/gv1
> Where=/glusterfs
> Type=glusterfs
> Options=defaults,acl
> [Install]
> WantedBy=multi-user.target
> -
> Somtimes the the volume will be mounted and sometime not. I can't figure
> out why it's sometime not mounting the volume. If I execute the script
> after a reboot the volume is mounting, so the script is working only the
> conditions during the boot-process are the problem (I think). Can
> someone give me a hint where to change things in my script?

Instead of this custom script, does it help if you put the following option to 
/etc/fstab?

x-systemd.requires=

See http://man7.org/linux/man-pages/man5/systemd.mount.5.html#FSTAB for more 
details.

> It dosn't matter which gluster-version or which OS-Version I use it's
> always the same.
> 
> Stefan
> 
> 
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org
> https://lists.gluster.org/mailman/listinfo/gluster-users

___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users


[Gluster-users] systemd-script

2018-07-26 Thread Stefan Kania
Hello,

I have the following problem:
If I reboot a node in a gluster-cluster on a Debian- or Ubuntu-System
the fuse-mount is not working if I just put the mount-options into the
/etc/fstab. For this reason I wrote a systemd-script as followed:
-
[Unit]
Description = Data dir
After=network.target glusterfs-server.service
Required=network-online.target
[Mount]
What=c1:/gv1
Where=/glusterfs
Type=glusterfs
Options=defaults,acl
[Install]
WantedBy=multi-user.target
-
Somtimes the the volume will be mounted and sometime not. I can't figure
out why it's sometime not mounting the volume. If I execute the script
after a reboot the volume is mounting, so the script is working only the
conditions during the boot-process are the problem (I think). Can
someone give me a hint where to change things in my script?

It dosn't matter which gluster-version or which OS-Version I use it's
always the same.

Stefan




signature.asc
Description: OpenPGP digital signature
___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users