 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

4th June 2012, 07:41 PM
|
|
Registered User
|
|
Join Date: Apr 2009
Posts: 183

|
|
|
Boot delays when doing NFS mounts
I have this problem with F15,F16, and F17:
In /etc/fstab, I have an nfs mount defined. I even included the "bg" option so it would do retry the mount in background if it fails.
Problem is that it hangs for about 90 seconds doing the mount only when booting up. If I remove the mount from fstab, boot (without delay), login, then manually do the nfs mount, it happens without any delay.
Any ideas?
TIA
ken
|

4th June 2012, 07:46 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,647

|
|
|
Re: Boot delays when doing NFS mounts
Whats the fstab line to mount is looking like?
|

5th June 2012, 01:27 AM
|
|
Registered User
|
|
Join Date: Apr 2009
Posts: 183

|
|
|
Re: Boot delays when doing NFS mounts
Quote:
Originally Posted by sea
Whats the fstab line to mount is looking like?
|
Code:
porky:/nas /mnt/nas nfs bg,relatime,nodiratime 0 0
This works fine in F14 (and before). Also, after the delay, the mount is there and working. I can umount it, then mount it again with no delay.
ken
|

5th June 2012, 08:49 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974

|
|
|
Re: Boot delays when doing NFS mounts
Here's mine:
PHP Code:
# Network export
server:/script /mnt/script nfs _netdev,auto 0 0
There is no delay mounting this folder.
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

5th June 2012, 12:50 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,647

|
|
|
Re: Boot delays when doing NFS mounts
Mine's looking like:
Code:
//ocean/Linux /mnt/Linux cifs credentials=/etc/samba/smb.cred 0 0
But for some reason i dont have any delays if my NAS is powered off..
|

6th June 2012, 04:18 AM
|
|
Registered User
|
|
Join Date: Apr 2009
Posts: 183

|
|
|
Re: Boot delays when doing NFS mounts
I don't think my problem is with the mount parameters. I have been using the same fstab lines for a long time on F14 and before. And I just discovered that I cannot export a mount from my F15/F16/F17 installs. If I try to connect to one, I get "Connection refused"
What I did notice, though, is that for F15/F16/ F17 port 2049 (for nfs) is not open. It is open for F14.I have selinux disabled, as well as the firewall. So nothing should be blocking it.
Also, on F14, there are several "nfsd" processes running. For the later versions, there are none.
Has something changed with nfs for these later versions of Fedora?
This is really getting frustrating! Please help!
ken
|

10th June 2012, 07:19 PM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346

|
|
|
Re: Boot delays when doing NFS mounts
Day' - does the export mount correclty - eventually ?
On F14 it seems you could live with port 2049 and no rpcbind on the server for an NSFv4 mount. Somewhere along the line it started requiring the gssapi and name mapper daemon processes and this (I think) this requires the rpcbind service or alternatively timeouts.
There were definitely some systemd snafus in the nfs startup in F16, and probably F15. My f14/f14 server/client arrangement was rock solid. I could hibernate or restart the net connection on the client and when restored the export was mounted. Despite a pm-suspend bug I submitted and was fixed, I never got that sort of reliable mount with f14/f16 NFSv4 (with a nod to 4.1). When I switched to f17 server and client a few weeks ago I saw some of that same unreliability remained. Th eNFS shares wouldn't remain mounted.
I'm fairly certain that the systemd dependencies ignore your 'bg' option when mounting NFS, and hang waiting for network configuration to complete. You can verify with
systemd-analyze plot > /tmp/foo ; filefox /tmp/foo
Or you can dig through the /lib/systemd files, but IIRC the main mount module is a binary.
However I switched to glusterfs and gave up on NFS. Back in F14 the older version of gluster requires manually creating a rather complex config file. The newer versions have a 'gluster' command that hides all the complexity. gluster only supports 1-to-1 uid, gid mapping, eliminates all the ancient rpc/rpcbind/gss SunMS complexity, overhead & cruft. Gluster has a lot of cluster sharing ,multi-peer, data duplication features that I don't use. It is rock-solid reliable on F17, and I tested on F16 w/o problems.
So if you need NFS for compatibility, then you'll have to deal with NFS, but if you are just sharing files between modern Linux distro's then I can recommend gluster. Performance is better than NFS, much faster on large file I/O and and still a clear winner for small files.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Last edited by stevea; 10th June 2012 at 07:24 PM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
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
|
|
|
Current GMT-time: 16:44 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|