Re: [Gluster-users] gluster volume not mounted on boot

2016-10-22 Thread Lindsay Mathieson
On 22/10/2016 3:03 AM, Ville-Pekka Vainio wrote: Just based on a Google search, I’d say yes. https://wiki.archlinux.org/index.php/samba#As_mount_entry We use the FUSE mounts and with those it works well. Thanks, looks rather better than my current setup -- Lindsay Mathieson

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-21 Thread Ville-Pekka Vainio
> On 21 Oct 2016, at 19.52, > wrote: > > Will that work for samba mounts? (cifs) Just based on a Google search, I’d say yes. https://wiki.archlinux.org/index.php/samba#As_mount_entry We use the FUSE mounts and with those it works

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-21 Thread lindsay.mathieson
Will that work for samba mounts? (cifs) Sent from my Windows 10 phone From: Ville-Pekka Vainio Sent: Saturday, 22 October 2016 2:26 To: gluster-users@gluster.org Subject: Re: [Gluster-users] gluster volume not mounted on boot Hi all, On a system using systemd, you should also be able to use x

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-21 Thread lindsay.mathieson
___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-21 Thread Ville-Pekka Vainio
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

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-21 Thread Kevin Lemonnier
> 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

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-21 Thread Josep Manel Andrés
Hi Kevin, Thank you for your help, I manage to set it up! But I have a question, it is possible to mount a volume at /gluster-data for example??? I cannot do: opsld04:~ # cat /etc/auto.master # # Sample auto.master file # This is a 'master' automounter map and it has the following format:

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-20 Thread Kevin Lemonnier
On Thu, Oct 20, 2016 at 10:47:49AM +0200, Josep Manel Andrés wrote: > Thanks Kevin, > > hahah, you are right, it works for me now, but it may not work in the > future when running tomcat on it, tomcat may need files from gluster > before it is mounted. > Yep, took us a while to find a

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-20 Thread Josep Manel Andrés
Thanks Kevin, hahah, you are right, it works for me now, but it may not work in the future when running tomcat on it, tomcat may need files from gluster before it is mounted. So, I will go for AutoFS. Thanks a lot guys! ;) On 20/10/16 10:44, Kevin Lemonnier wrote: On Thu, Oct 20, 2016 at

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-20 Thread Kevin Lemonnier
On Thu, Oct 20, 2016 at 10:38:52AM +0200, Josep Manel Andrés wrote: > Right, Client and server are at the same box. Doesn't really understand > what autofs does exactly ... but, isn't it the same to use: > > sleep 10 && mount /gluster > > on rc.local ? > More or less, yes. AutoFS mounts the

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-20 Thread Josep Manel Andrés
Right, Client and server are at the same box. Doesn't really understand what autofs does exactly ... but, isn't it the same to use: sleep 10 && mount /gluster on rc.local ? Cheers! On 20/10/16 09:09, Kevin Lemonnier wrote: On Wed, Oct 19, 2016 at 06:17:07PM +0200, Josep Manel Andrés wrote:

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-20 Thread Kevin Lemonnier
On Wed, Oct 19, 2016 at 06:17:07PM +0200, Josep Manel Andrés wrote: > Hi , > I am trying to mount a volume during boot time, here are the logs from Is your client also your server ? If yes, the problem is that gluster hasn't started yet when fstab is processed, we use autofs as a workaround.

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-20 Thread Josep Manel Andrés
opsld04:/etc/tls/certs # cat /etc/fstab UUID=9ad7cc4f-cafd-49fc-b0b0-4e68e118db46 swap swap defaults 0 0 UUID=3307f813-d80b-49fa-a5f2-bc7b6b6ebdbc /ext4 acl,user_xattr1 1 UUID=6E03-6160 /boot/efivfat

Re: [Gluster-users] gluster volume not mounted on boot

2016-10-19 Thread Lindsay Mathieson
On 20/10/2016 2:17 AM, Josep Manel Andrés wrote: Hi , I am trying to mount a volume during boot time, here are the logs from boot.log, everything seems ok: Can we see - your fstab entry for the gluster mount - the client log (/var/log/gluster/-.log) -- Lindsay Mathieson

[Gluster-users] gluster volume not mounted on boot

2016-10-19 Thread Josep Manel Andrés
Hi , I am trying to mount a volume during boot time, here are the logs from boot.log, everything seems ok: [ OK ] Started GlusterFS, a clustered file-system server. [ OK ] Reached target Network is Online. Starting Login and scanning of iSCSI devices... Mounting