Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th June 2012, 07:41 PM
daytooner Offline
Registered User
 
Join Date: Apr 2009
Posts: 183
linuxfedorafirefox
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
Reply With Quote
  #2  
Old 4th June 2012, 07:46 PM
sea's Avatar
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,647
linuxfirefox
Re: Boot delays when doing NFS mounts

Whats the fstab line to mount is looking like?
__________________
Notebook: Samsung NC210/NC110 CPU: Intel 2*1600 Mhz RAM: 1024 MB DDR2 OS: Fedora 19 DE: Awesome
Laptop: Toshiba Satellite L670 CPU: Intel(r) 2*1872 Mhz RAM: 3072 MB DDR3 OS: Fedora 17 DE: Awesome
Fedora Manual (RTFM) | The Linux Documentation Project | Script-Tools
Reply With Quote
  #3  
Old 5th June 2012, 01:27 AM
daytooner Offline
Registered User
 
Join Date: Apr 2009
Posts: 183
linuxfedorafirefox
Re: Boot delays when doing NFS mounts

Quote:
Originally Posted by sea View Post
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
Reply With Quote
  #4  
Old 5th June 2012, 08:49 AM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxfirefox
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
Reply With Quote
  #5  
Old 5th June 2012, 12:50 PM
sea's Avatar
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,647
linuxfedorafirefox
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..
__________________
Notebook: Samsung NC210/NC110 CPU: Intel 2*1600 Mhz RAM: 1024 MB DDR2 OS: Fedora 19 DE: Awesome
Laptop: Toshiba Satellite L670 CPU: Intel(r) 2*1872 Mhz RAM: 3072 MB DDR3 OS: Fedora 17 DE: Awesome
Fedora Manual (RTFM) | The Linux Documentation Project | Script-Tools
Reply With Quote
  #6  
Old 6th June 2012, 04:18 AM
daytooner Offline
Registered User
 
Join Date: Apr 2009
Posts: 183
linuxfedorafirefox
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
Reply With Quote
  #7  
Old 10th June 2012, 07:19 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
linuxfirefox
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.
Reply With Quote
Reply

Tags
boot, delays, mounts, nfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] short delays kalzoubi Using Fedora 0 20th October 2011 08:39 PM
Pre-boot mounts script uniqum Servers & Networking 1 11th March 2011 01:08 AM
FC8 boot delays with wlan0 markavenius Using Fedora 6 13th November 2007 08:20 AM
problems mounting nfs mounts on boot nix4me Servers & Networking 2 9th November 2007 03:14 AM
nothing mounts on boot nor auto mounts earobinson111 Using Fedora 7 16th December 2004 09:04 PM


Current GMT-time: 16:44 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat