Solved

nfs mount times

Posted on 2006-10-27
8
348 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
  • 5
  • 2
8 Comments
 
LVL 10

Assisted Solution

by:ssvl
ssvl earned 250 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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 250 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

808 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