Fedora Linux Support Community & Resources Center
  #1  
Old 11th November 2011, 11:20 PM
lensman3 Offline
Registered User
 
Join Date: Dec 2009
Location: Centennial, Colorado USA
Posts: 128
windows_7chrome
NFS and FC16 and systemd

Appears to be a slight race condition with NFS starting and a machine that uses DHCP. NFS hangs because the network is not hooked up. Evenually nfs times out and the boot finishes.

Mount of the nfs volume is being done through fstab. (Worked fine in FC15).

I have in the past used a static IP and now the network manager won't let me change it because the tab is grayed out.

Any ideas?
Reply With Quote
  #2  
Old 12th November 2011, 12:51 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: NFS and FC16 and systemd

Are you using network manager?

If so, try telling systemd to wait on network manager to come up and settle before starting the other services.

Code:
systemctl enable NetworkManager-wait-online.service
Reply With Quote
  #3  
Old 13th November 2011, 05:19 AM
lensman3 Offline
Registered User
 
Join Date: Dec 2009
Location: Centennial, Colorado USA
Posts: 128
linuxchrome
Re: NFS and FC16 and systemd

Yes. I'm running network manager. I edited my /etc/sysconfig/network-scripts/ifcfg-p21p1 (in my case) so that it had:

IPADDR0=192.168.200.10
PREFIX0=24
GATEWAY0=192.168.200.1
DNS1=192.168.200.1
DOMAIN=bp (YES bp, since bp is illegal and a properly configured router will drop bp)

and commented out the PEERDNS and PEERFOUTES which I think are getting set by DHCP.

So I'll see if this works. A restart of /etc/init.d/network did give me the correct static IP.

I also implmented your suggest of systemctl and noticed that the symbolic link was created.

---------- Post added at 10:19 PM ---------- Previous post was at 10:09 PM ----------

That seemed to work. At about 20 seconds the network devices was started and about 30 seconds into the boot, the network had in static IP "installed" and at 40 seconds nfs was started. There were several messages during the boot the nfs was being deferred.

Seems to me in the nfs install, the systemctl command you suggested should be automatically installed. This would at least ensure that the network is ready when NFS is activated.

Last edited by lensman3; 13th November 2011 at 05:44 AM. Reason: More information, spelling
Reply With Quote
  #4  
Old 13th November 2011, 06:01 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: NFS and FC16 and systemd

It's been a problem with systemd and network manager for quite awhile now. I'm not sure which one is actually at fault, though.

And it's not just nfs that is affected. It's just about all network mounts, cifs as well as nfs.

Basically enabling the NetworkManager-wait-online.service is a kludge at best, but it's been the only way I could consistently get my nfs mounts to work with network manager (You still have to make sure that network manager is setup to enable your connection on boot and is available for all users so that it brings it up at boot time instead of waiting for a user to log in).

Oh, and I assume that you have already figured out that the nfs server has changed in F16? You now need to enable nfs-server.service
Reply With Quote
  #5  
Old 15th March 2012, 01:58 AM
dragon1976 Offline
Registered User
 
Join Date: Jun 2011
Location: Plano,Tx
Posts: 10
linuxfirefox
Post Re: NFS and FC16 and systemd

NFS in my experience is the most dependable file sharing for automounting folders & directories. When begining Fedora 16, it was quite a challenge until I discovered that NFS ,like many other cifs now depend on systemd........which is a great system once you become familiar with it . The 3.0 kernel sure has changed the rules for administrators & hobbiest alike. I found your page quite helpful. My question is can NFS be provided on a domain name service in order to share directories online?
Reply With Quote
Reply

Tags
fstab, nfs, systemd

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
FC16 randomly restarting yoshimitsuspeed Hardware & Laptops 28 31st January 2012 06:55 PM
Cannot install vmware 8 in FC16 websurfer Using Fedora 6 15th November 2011 07:45 AM
Here are FC16 torrent files..... pinenut Using Fedora 1 8th November 2011 03:09 PM
audio problems FC16 pabloguevara F16 Development 11 2nd November 2011 09:16 PM
[SOLVED] 2.6.39-1.fc16.x86_64 + Virtual Box nikita F16 Development 2 29th May 2011 06:05 PM


Current GMT-time: 13:50 (Sunday, 19-05-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