?
Solved

nfs mount times

Posted on 2006-10-27
8
Medium Priority
?
368 Views
Last Modified: 2013-12-16
I'm mounting a remote path via NFS but it is taking a really long time to mount each time.  I have changed the rsize and wsize but it always takes 1:45 to mount the path.  Is there anything I can do to make it faster?

server:/nightly.0/user /home/user/nightly.0/ nfs ro,hard,rsize=3276,wsize=32768,timeo=1,intr 0 0

time mount /home/user/nightly.0/

real    1m45.018s
user    0m0.000s
sys     0m0.012s

cat /etc/redhat-release
CentOS release 4.4 (Final)
0
Comment
Question by:bryanlloydharris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 10

Assisted Solution

by:ssvl
ssvl earned 1000 total points
ID: 17825365
what about ping reply

is you use the server name ip address

if name check the /etc/hosts and /etc/resolv.conf file
0
 
LVL 3

Author Comment

by:bryanlloydharris
ID: 17826807
I added to /etc/hosts and it's still slow.  Is that what you meant?
0
 
LVL 3

Author Comment

by:bryanlloydharris
ID: 17826835
Here are the ping times.

icmp_seq=0 ttl=63 time=0.431 ms
icmp_seq=1 ttl=63 time=0.590 ms
icmp_seq=2 ttl=63 time=0.415 ms
icmp_seq=3 ttl=63 time=0.341 ms
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
LVL 3

Author Comment

by:bryanlloydharris
ID: 17827828
Is there anything else I should put to make it clear of my intentions with the remote mounting?
0
 
LVL 14

Accepted Solution

by:
ygoutham earned 1000 total points
ID: 17832024
bryan

when you try a reverse mount (the other way around than what you are currently trying), does it happen fast enuf for you???

try enabling vsftpd or some other transfer mechanism to see if the machine to machine copy times are integral.  

the idea is to see if the CAT5 cable is at fault or not. once we ensure that it is working satisfactorily, then try restarting the sshd service and nfs service (to remove any stale sockets that might be hanging around).  if it is an ext3 to ext3 mount then it should not be taking so much time.  

just my thoughts.

0
 
LVL 3

Author Comment

by:bryanlloydharris
ID: 17835923
I have actually solved the problem in a way which I don't understand.  Would anybody please let me know why it is working quickly now?

I noticed that nfsd was only running on the server, not the client.  When I tried to start nfs, I noticed it took a long time.  So then I thought to put the following line in /etc/exports to make the computer automatically start nfsd upon bootup.

/tmp 127.0.0.1(ro)

I don't really use this, but I put it there(along with some lines in /etc/hosts.allow and /etc/hosts.deny for the server computer) and now nfsd starts upon bootup of the computer.

Now when I mount an nfs partition from the server onto a directory of the client it works in about 0.04 seconds.
0
 
LVL 14

Expert Comment

by:ygoutham
ID: 17839871
nfs mount is not contingent upon nfs service running in the client machine.  try undoing the /tmp part and see if the problem persists.  it might be related to something else and do not jump to conclusions without having identified the problem. check if the nfs times are getting stretched when you stop nfs service in the client as a precaution so that we isolate that to be the problem.

goutham
0
 
LVL 3

Author Comment

by:bryanlloydharris
ID: 17870708
I think I have figured it out now, thanks for all the help!
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question