LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-22-2017, 01:44 PM   #1
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, MacOS X
Posts: 158

Rep: Reputation: 29
Unhappy TERRIBLE NFS lags with RHEL 7 client


I have a bunch of RHEL6 & 5 machines auto mounting shares from a couple of CentOS 6.9 servers. Everything works fine with them.

Upgraded my first client to RHEL 7.4 and there are terrible lags with the automounts. Whenever I first cd into an automount, there's a lag of about 30 - 40 seconds before it finally mounts and the shell comes back. Thereafter, moving around within the mount is fine.

With these mounts active, 'df -h' or 'mount' commands lag about 10 seconds the first time they are issued too, then respond instantly thereafter.

It's like RHEL 7 has some new kind of negotiation going on that I can't pin down.

Anyone have any ideas? in case it helps, here's the output of the mount command when the automounts are active:

Code:
$ mount
<snip>
server1:/path_to/folder on /path_to/local_mountpoint type nfs4 (rw,relatime,vers=4.0,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.232,local_lock=none,addr=192.168.1.205)

server2:/path_to/folder on /path_to/outher_mountpoint  type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.232,local_lock=none,addr=192.168.1.187)
 
Old 08-23-2017, 06:11 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,153

Rep: Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265
Check DNS. It could be due to A or AAAA lookups.
 
Old 08-23-2017, 11:26 AM   #3
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, MacOS X
Posts: 158

Original Poster
Rep: Reputation: 29
Sorry I didn't mention it, but this is on an internal network and the machines are defined in /etc/hosts .
 
Old 08-23-2017, 12:04 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,718

Rep: Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973Reputation: 7973
Quote:
Originally Posted by Vanyel View Post
Sorry I didn't mention it, but this is on an internal network and the machines are defined in /etc/hosts .
From the RHEL 7 Documentation:
Quote:
Originally Posted by RHEL Docs
The NFS protocol version used in Red Hat Enterprise Linux 7 is identified by the mount options nfsvers or vers. By default, mount will use NFSv4 with mount -t nfs. If the server does not support NFSv4, the client will automatically step down to a version supported by the server. If the nfsvers/vers option is used to pass a particular version not supported by the server, the mount will fail. The file system type nfs4 is also available for legacy reasons; this is equivalent to running mount -t nfs -o nfsvers=4 host:/remote/export /local/directory.
(bold for emphasis added). If you're upgrading, this 'stepping-down' may be the cause. Since RHEl7 uses NFS4 by default, and your other systems don't/aren't...could be it. Have you opened a support case with Red Hat yet??

https://access.redhat.com/documentat...entconfig.html
 
1 members found this post helpful.
Old 08-23-2017, 01:43 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
first HOW did you "upgrade" rhel6 to 7 ?

the only real way - a NEW install ?

ALSO BE AWARE!!!! rhel 7 uses "systemd "!!! rhel6 used systemV

Quote:
t's like RHEL 7 has some new kind of negotiation going on that I can't pin down.
it DOSE systemD

this WILL change things in the auto connect

contact redhat and or read the admin guide for systemd on the redhat site
 
Old 08-23-2017, 04:27 PM   #6
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, MacOS X
Posts: 158

Original Poster
Rep: Reputation: 29
My "upgrade" was a complete wipe and re-install and re-copying user data, re-entering settings where needed.
 
Old 08-23-2017, 04:54 PM   #7
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, MacOS X
Posts: 158

Original Poster
Rep: Reputation: 29
Smile Success!

YES! TB0ne was on the right track. After a little googling to figure out just the right syntax, in my /etc/auto.direct file I added the boldfaced
Code:
-fstype=nfs,rw,nfsvers=3
to the auto mount def lines and now they use NFS3 and they're instantaneous again!
 
2 members found this post helpful.
  


Reply

Tags
automount, nfs, rhel7



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
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
Synergy+ lags on Mint client. yarvin Linux Mint 0 04-05-2010 09:59 PM
Can't connect from slackware nfs client to rhel nfs server llattan Linux - Server 2 04-21-2009 09:49 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
Terrible samba performance (acting as a client) muah Linux - Networking 3 05-13-2004 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:28 AM.

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