LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-26-2008, 11:02 AM   #1
sigma_50
Member
 
Registered: Jan 2007
Distribution: Debian, Ubuntu
Posts: 53

Rep: Reputation: 15
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.
 
Old 11-26-2008, 04:10 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Do you get any errors or warnings in your boot messages?
 
Old 11-26-2008, 04:30 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you sure that networking has started properly by the time fstab is trying to mount this drive?
 
Old 11-26-2008, 09:13 PM   #4
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
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
 
Old 11-04-2010, 07:55 AM   #5
fishjohn
LQ Newbie
 
Registered: Feb 2010
Posts: 29

Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
[SOLVED] mount.nfs: mount to NFS server 'rpcbind' failed w1k0 Slackware 4 03-30-2010 03:45 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Give more mount time in /etc/fstab for an nfs mount zambega Linux - Newbie 1 08-13-2008 02:28 PM
mount: mount to NFS server '192.168.0.3' failed: System Error: Connection refused. fakie_flip Linux - Server 1 04-10-2008 12:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:21 PM.

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