[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Seriously confused by autofs



This seems like one of those things that should be easy as can be, but I’m not getting anywhere… so with the assumption that I’m just digging myself in deeper and over thinking it, I’d like to pose the problem here and ask for help.

 

 

The issue, I have several windows and a solaris box mounted from my linux server, but due to network outages, power outages, stupid users turning their servers off on occasion, etc… the mounts occasionally go dead. As it stands, my solution to this is to go into the linux server, umount and then mount the mount point. Then everything is good again, until the next thing comes up.

 

The solution I’ve been led towards, autofs

 

Ok… going to boil this down to one machine and one share (I’ll do a windows one)…

 

As it stands, in my /etc/fstab I have

 

//machine/share /mnt/backups smbfs credentials=/etc/fstabpwds/credfile,rw,user,gid=sambawrites,fmask=0774,dmask=0774 0 0

 

Ok, now I’ve done an apt-get install autofs, and it went fine. I know have two new files I believe I’m supposed to worry about. /etc/auto.master & /etc/auto.misc

 

So my auto.master looks like

 

/misc /etc/auto.misc –timeout=60  #I know I don’t want this kind of timeout for my particular issues, but right now I just wanna get it working at all

 

Then in my /etc/auto.misc I have

Backups –fstype=smbfs,login=<login>,passwd=<pwd> machine:/share

 

 

Now I know this is drastically wrong for a host of different reasons… but I’m stumped on the fix.

 

The things I think are goofy…

I should be using /etc/auto.mnt I think? With /mnt /etc/auto.mnt in the my auto.master… but then can I define multiple points under /mnt when I start adding others?

I don’t know at all if this machine:/share is the right syntax, it seems to be what I find in the tutorials online, but most of them use automount for local devices

I’d also like to use a credential file in the auto.misc, but that’s another problem… like I say, right now I just want it to work.

Am I supposed to remove my entry in the /etc/fstab?

Where should I book looking for this mounted directory now? I was still checking /mnt/backups, but I have a feeling it’s /misc/backups or some such now?

 

Thanks for any help, even if that help is just a point towards a good manual which addresses mounting samba shares instead of just mounting a cd or a floppy.


Reply to: