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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-26-2008, 11:02 AM
|
#1
|
Member
Registered: Jan 2007
Distribution: Debian, Ubuntu
Posts: 53
Rep:
|
NFS mount
I have a NFS server thats mounts up a share, in Lenny kernel 2.6.26-1-686
i mount up the NFS share in fstab
192.168.0.11:/mnt/NFS /NFS nfs defaults 0 0
when i log on the share is not mounted, i have to manually mount it, why?
When i use Open Suse 11 then mount works. Thanks in advance.
|
|
|
11-26-2008, 04:10 PM
|
#2
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
Do you get any errors or warnings in your boot messages?
|
|
|
11-26-2008, 04:30 PM
|
#3
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Are you sure that networking has started properly by the time fstab is trying to mount this drive?
|
|
|
11-26-2008, 09:13 PM
|
#4
|
Member
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624
Rep:
|
Generally NFS is too finicky to mount with the default mount options. I suggest changing the line in fstab to something like this:
192.168.0.11:/mnt/NFS /NFS nfs _netdev,nfsvers=3,tcp,bg,intr,rsize=32768,wsize=32768 0 0
I suggest running some sort of performance benchmark (copy a large file over to the mountpoint) and compare it to different configurations. In particular, if your NFS server happens to be a Linux box, the following options may work faster, but if you have a gigabit network, you may want to keep the rsize and wsize at 32768. Again, try experimenting to see what works best...
192.168.0.11:/mnt/NFS /NFS nfs _netdev,nfsvers=3,udp,bg,intr,rsize=8192,wsize=8192 0 0
For more info, check out the nfs man page: man nfs.
In particular note that the _netdev parameter will make sure that the NFS filesystems will only get mounted after the network adapters have all been initialized successfully. Note that underscore in front of "netdev", that is normal.
Last edited by sewer_monkey; 11-26-2008 at 09:15 PM.
Reason: Fixed wsize syntax
|
|
|
11-04-2010, 07:55 AM
|
#5
|
LQ Newbie
Registered: Feb 2010
Posts: 29
Rep:
|
hi,
I have VMs running on Citrix Xenserver 5.6.0.
Problem is that NFS VM might come up later than those VMs that use/mount NFS.
Does _netdev option help in this situation?
|
|
|
All times are GMT -5. The time now is 07:21 PM.
|
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
|
|