LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2017, 09:01 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,081

Rep: Reputation: 165Reputation: 165
autofs - delay when accessing the /nfs directory


I am running autofs-5.0.7-56.el7.x86_64 on CentOS 7.3 (Mate desktop). I have a VMWare guest of the same OS running on the CentOS 7 host. The guest VM has the following line in /etc/auto.master
Code:
/nfs  /etc/auto.nfs -browse
and /etc/auto.nfs contains
Code:
archive -rw  taylor20:/archive
backup -rw  taylor20:/backup
data -rw  taylor20:/data
quitelarge -rw taylor20:/quitelarge

data09.1 -rw taylor09:/media/data09.1a
data09.2 -rw taylor09:/media/data09.2a

data14.1 -rw taylor14:/media/data14.1a
data14.2 -rw taylor14:/media/data14.2a

data18.1 -rw taylor18:/media/data18.1a
data18.2 -rw taylor18:/media/data18.2a
taylor20 is the host machine and has 4 file systems exported. The other 3 machines listed are servers on my network each with two file systems exported. The servers are for data archive and are ONLY powered on when I need to access them to save or retrieve data. That is why I am using autofs rather than hard mounts in /etc/fstab. Here is the issue...

If I open the /nfs directory with Caja (Nautilus) on the VM it opens almost instantly. When I open one of the exported file systems on the host it opens in a few seconds. If I then backup to the /nfs directory it may take as long as 30 seconds before the Caja screen refreshes. After that I can switch between auto-mounted file systems on the host and the /nfs directory very quickly. I suspect that the delay is related to autofs interrogating the "dead" mounts to the servers which are off-line.

My question is... can I configure autofs to less diligent about looking for something which is not there? Or do I just have to live with the delays? This is a lot better than I had before using scripts to mount and umount the server file systems. I would often forget to run the umount script before powering down a server. This would cause all sorts of hangups as mount and nfs tried unsuccessfully to access the missing file systems.

TIA,

Ken
 
Old 03-16-2017, 12:37 PM   #2
jperea
LQ Newbie
 
Registered: Nov 2013
Posts: 8

Rep: Reputation: Disabled
Hi

I'm not sure, but perhaps you can add the --timeout switch to your remote mounts, something like

data09.1 -rw taylor09:/media/data09.1a --timeout 60

--

Jaime
 
Old 03-16-2017, 01:45 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,081

Original Poster
Rep: Reputation: 165Reputation: 165
Thanks Jamie,

I will give that a try.

There are also a WHOLE lot of settings in /etc/atuofs.conf which I suspect are global. However, there is not a lot of documentation other than some sometimes cryptic comments in that file.

Autofs is great WHEN it works. When it doesn't... It can gum up everything and take several minutes to reboot the machine. I will let you know what happens with these changes - if I can figure out how to test. The problem usually only presents itself when I am not expecting it

Thanks again,

Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are NFS and autofs? resetreset Linux - Software 2 01-24-2011 08:00 PM
[SOLVED] autoFS / NFS Quandry merana Solaris / OpenSolaris 2 11-22-2010 06:27 AM
LXer: Accessing Windows Or Samba Shares Using AutoFS LXer Syndicated Linux News 0 12-14-2006 04:03 PM
autofs for NFS jkmartha Linux - Software 1 06-17-2005 10:14 AM
autofs by nfs convenientstore Linux - Networking 1 10-16-2004 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration