LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-11-2013, 01:20 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
autofs - slooooow opening of subdirectory links when server off-line


Based on advise I received in one of the LinuxQuestions forums a while back I configured autofs on my CentOS 6 workstation in place of a couple of scripts to mount and unmount 5 nfs exported directories on my server. The autofs process seems to work reasonably well with three exceptions. Here are my configuration files:

/etc/auto.master
Quote:
+auto.master
/t10 /etc/auto.misc
and /etc/auto.misc
Quote:
data0 -fstype=nfs taylor10:/data0
data1 -fstype=nfs taylor10:/data1
data2 -fstype=nfs taylor10:/data2
data3 -fstype=nfs taylor10:/data3
data4 -fstype=nfs taylor10:/data4
The first issue... If I open /t10 on the workstation in Nautilus or gnome-commander it appears to be empty. The nfs mount points do not show up until I access them in some other manner such as cd/t10/data0 in a terminal - this will cause data0 to display or I can click on a bookmark in Nautilus to one of the nfs mount points or invoke a program which contains a link to one of the mount points.

And the second issue... when the server is shut down - its normal state as I use it basically for backup storage - I find a long delay when I click on a location launcher which opens a directory on the workstation (unrelated to any of the nfs locations) in Nautilus. The delay is only 2 - 3 seconds but as the response is normally just about instantaneous it seems like a long time.

Finally, and I just discovered this, if I have accessed the nfs locations in Nautilus and I then close Nautilus and shut down the server - Nautilus will not run again for about 30 - 40 seconds. It starts to launch and then dies. I kept trying and it eventually runs again.

Any advise appreciated.

TIA,

Ken

p.s. Is the "+auto.master" in auto.master correct? or should it be +auto.misc? I have no idea why that is in the config file. I must have copied it from some examples I had seen or perhaps it was in the default file when I installed autofs.
 
Old 11-11-2013, 02:18 PM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 7,147

Rep: Reputation: 5303Reputation: 5303Reputation: 5303Reputation: 5303Reputation: 5303Reputation: 5303Reputation: 5303Reputation: 5303Reputation: 5303Reputation: 5303Reputation: 5303
I've never understood why the sample auto.master contains that "+auto.master" line: '+' is used to include another file, and why would you ever include auto.master in itself? I removed it from my auto.master and have had no ill effects.

If you want the mountpoints to show up even when they're not in use then you want to use a 'direct map' rather than the 'indirect map' you're currently using. i.e.

/etc/auto.master:
Code:
/- /etc/auto.t10
/etc/auto.t10:
Code:
/t10/data0 -fstype=nfs taylor10:/data0
/t10/data1 -fstype=nfs taylor10:/data1
/t10/data2 -fstype=nfs taylor10:/data2
/t10/data3 -fstype=nfs taylor10:/data3
/t10/data4 -fstype=nfs taylor10:/data4
Don't use auto.misc for /t10, give it its own file as above, and leave auto.misc to handle things mounted on /misc, it's tidier that way.


I can't offer any advice on the nautilus stuff as I'm pretty much a cli jockey, but hopefully that's given you somewhere to start.

Last edited by GazL; 11-11-2013 at 02:34 PM. Reason: typo
 
Old 11-11-2013, 03:32 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks GazL,

That seems to help on a couple of fronts. I have a launcher to open the subdirectory where I keep my LibreOffice files and another on to a bunch of scripts. Both now open with lightning like speed - as they did before I setup autofs. If I click on /t10 in Nautilus I see the 5 mount points and I can open them with no delay or protest from Nautilus. They are of course empty when the server is off-line. They also show up in gnome-commander and I can enter the subdirectories without gnome-commander going off into space.

I just brought up the server and the mount points appear populated in Nautilus and gnome-commander as well Problem solved.

Thanks again,

Ken
 
Old 11-15-2013, 09:39 AM   #4
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Well I spoke (posted) too soon. While the speed of opening folders issue is resolved, AFTER connecting to the server and then shutting down the server gnome goes totally to crap. Folders (not associated with the nfs mounts) will not open AT ALL. gedit will not launch, other things freeze up etc. I did a shutdown/restart and rather than perform this evolution the system simply logged me out. I know that because I did not observer the machine rebooting. This seemed to clear some things up but still not a satisfactory solution.

I would note that before using autofs I had created the directory structure /t10/data0; /t10/data1 etc. so that the necessary directories were available to mount the remote nfs directories. Thinking that this might be causing conflict with autofs I remove the /t10 tree. If anything this made matters worse. The nfs mount points did appear when the server was up but when it was down gnome was hosed.

Bottom line I have canned autofs and gone back to my old mount and unmount scripts.

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening links in thunderbird gianh Linux - Software 3 11-11-2004 11:06 AM
Opening links in Opera soujrnr Linux - Software 6 06-28-2004 04:24 PM
Server running very Slooooow? ejennings_98 Linux - Newbie 4 02-24-2004 03:44 PM
Opening links with gaim Minderbinder Linux - Software 2 02-13-2004 07:04 AM
Mozilla opening links compu73rg33k Linux - Software 4 02-11-2004 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:52 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