| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-27-2012, 06:56 PM
|
#1
|
|
Member
Registered: Sep 2002
Location: NY
Distribution: openSuSe
Posts: 154
Rep:
|
Specify NFS Mount Timeout
Hello,
I'm executing a script that mounts NFS using "mount -o nolock -t nfs" but if the remote server is not present or there is no network connection, the mount waits for about 5 minutes before it times out.
I was wondering if there is a way to specify the timeout value of the mount command, say if unable to mount NFS within 10 seconds, just stop? I tried using the "retry", "timeo" "soft" without any difference.
Thanks!
|
|
|
|
11-28-2012, 12:48 AM
|
#2
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 79
Rep: 
|
Quote:
Originally Posted by niteshadw
Hello,
I'm executing a script that mounts NFS using "mount -o nolock -t nfs" but if the remote server is not present or there is no network connection, the mount waits for about 5 minutes before it times out.
I was wondering if there is a way to specify the timeout value of the mount command, say if unable to mount NFS within 10 seconds, just stop? I tried using the "retry", "timeo" "soft" without any difference.
Thanks!
|
Hi
just follow this steps
Devicename : Mountpoint : Filesystem :rw,hard,intr,rsize=8192,wsize=8192,timeo=10 : 0 : 0
For example
example.com 192.168.1.0:/nfs nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=10 0 0
Regards
Bala
|
|
|
|
11-28-2012, 11:28 AM
|
#3
|
|
Member
Registered: Sep 2002
Location: NY
Distribution: openSuSe
Posts: 154
Original Poster
Rep:
|
Quote:
Originally Posted by bala.linuxtech
Hi
just follow this steps
Devicename : Mountpoint : Filesystem :rw,hard,intr,rsize=8192,wsize=8192,timeo=10 : 0 : 0
For example
example.com 192.168.1.0:/nfs nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=10 0 0
Regards
Bala
|
Thank you very much for the reply. I was wondering if this is possible within the mount command? The code is executed in ramdisk during startup.
I attempted:
mount -o nolock,hard,timeo=10 -t nfs 192.168.1.0:/nfs /mnt/nfs
Thank you once again!
|
|
|
|
11-28-2012, 11:00 PM
|
#4
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 79
Rep: 
|
Quote:
Originally Posted by niteshadw
Thank you very much for the reply. I was wondering if this is possible within the mount command? The code is executed in ramdisk during startup.
I attempted:
mount -o nolock,hard,timeo=10 -t nfs 192.168.1.0:/nfs /mnt/nfs
Thank you once again!
|
Always Welcome ...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:15 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|