Fedora Linux Support Community & Resources Center
  #1  
Old 22nd July 2012, 01:00 PM
chaud lapin Offline
Registered User
 
Join Date: Nov 2004
Posts: 44
linuxubuntufirefox
F17: NFS woes

Hi all,

There seem to be various posts about NFS problems under Fedora 17. I've just browsed them and not found the solution to my situation.

I have been using NFS shares for many years under Fedora. After I upgraded my desktop box from F14 to F17, my client running Mint 13 can no longer access the NFS shares. I am not using a firewall on the server.

Just now, I have followed to the letter the instructions given here to no avail: http://www.server-world.info/en/note?os=Fedora_17&p=nfs

My export file looks like this:
Code:
/media/disk1        192.168.2.0/24(rw,sync,no_root_squash,no_all_squash) 
/media/disk2        192.168.2.0/24(rw,sync,no_root_squash,no_all_squash) 
/media/disk3        192.168.2.0/24(rw,sync,no_root_squash,no_all_squash) 
/media/disk4        192.168.2.0/24(rw,sync,no_root_squash,no_all_squash) 
/media/disk5        192.168.2.0/24(rw,sync,no_root_squash,no_all_squash) 
/home/colin         192.168.2.0/24(rw,sync,no_root_squash,no_all_squash)
When I try to mount a share on the client, all I see is this:
Code:
mount.nfs: timeout set for Sun Jul 22 13:24:29 2012
mount.nfs: trying text-based options 'vers=4,addr=192.168.2.2,clientaddr=192.168.2.4'
Nothing further happens.

I have tried mounting a share locally on the server; this doesn't work either:
Code:
sudo mount -v -t nfs localhost:/media/disk5 test-nfs
mount.nfs: timeout set for Sun Jul 22 13:48:28 2012
mount.nfs: trying text-based options 'vers=4,addr=::1,clientaddr=::1'
Any ideas what is going wrong here?
Reply With Quote
  #2  
Old 22nd July 2012, 01:08 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: F17: NFS woes

Post

Code:
systemctl status nfs-server.service

and

Code:
iptables -L

Last edited by Yellowman; 22nd July 2012 at 01:10 PM.
Reply With Quote
  #3  
Old 22nd July 2012, 01:36 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,869
linuxfirefox
Re: F17: NFS woes

There have been a number of changes to the system.

1) /media is a tmpfs now. This means that any mountpoints there get lost on every reboot.

2) NFS depends on the network. Unfortunately, systemd + networkmanager don't by default allow NFS. systemd assumes the network is available as soon as networkmanager is started... and it takes networkmanager several seconds before it may be ready.

3) systemd doesn't synchronize things anymore. Everything is attempted to be processed at the same time.

#1 should cause mount failures (if it is the disk server).

The effect of #2 and #3 are that you have to enable a dummy service (NetworkManager-wait-online.service) to cause systemd to wait for NetworkManager to tell it that the network is ready. Usually this is client related but having the network unavailable may cause issues on the server when the exports are loaded (the network won't be available during the initialization).

The problem with #1 is that unless you recreate the mount points on every boot it will not be mounted.

For servers, you need to check that SELinux has NFS exports enabled, and that the firewall has NFS enabled on the server.
Reply With Quote
  #4  
Old 22nd July 2012, 03:47 PM
chaud lapin Offline
Registered User
 
Join Date: Nov 2004
Posts: 44
linuxubuntufirefox
Re: F17: NFS woes

Code:
# systemctl status nfs-server.service
nfs-server.service - NFS Server
	  Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled)
	  Active: active (exited) since Sun, 22 Jul 2012 13:34:09 +0200; 3h 9min ago
	 Process: 21095 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
	 Process: 21092 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
	 Process: 21116 ExecStartPost=/usr/lib/nfs-utils/scripts/nfs-server.postconfig (code=exited, status=0/SUCCESS)
	 Process: 21104 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT} (code=exited, status=0/SUCCESS)
	 Process: 21101 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
	 Process: 21098 ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-server.preconfig (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/nfs-server.service
Code:
# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Quote:
/media is a tmpfs now. This means that any mountpoints there get lost on every reboot.
Not following you entirely here, jpollard. I've added these /media mounts to fstab (on the server) and they come up when the system is rebooted.
Reply With Quote
  #5  
Old 22nd July 2012, 04:01 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: F17: NFS woes

Try ( any mount points in /media are destroyed on reboot as /media is meant for temporary mounts only), use /mnt instead!!!

Code:
su
mkdir /mnt/disk{1,2,3,4,5}
sed -i -e 's,media,mnt,g' /etc/fstab /etc/exports
systemctl enable nfs-server.service
reboot

Last edited by Yellowman; 22nd July 2012 at 04:08 PM.
Reply With Quote
  #6  
Old 22nd July 2012, 05:06 PM
chaud lapin Offline
Registered User
 
Join Date: Nov 2004
Posts: 44
linuxchrome
Re: F17: NFS woes

Thanks Yellowman. Moving my mounted drives to /mnt and exporting from there solved everything.

One small detail: on the desktop box (the NFS server), the mounted drives are no longer appearing on my Gnome3 (actually Cinnamon) desktop. There is a setting under Settings/Desktop: "Show mounted volumes on the desktop" which is (still) selected, but I don' t see the drive icons. Any thoughts?
Reply With Quote
Reply

Tags
f17, nfs, woes

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
More DVD woes leonardevens Hardware & Laptops 1 29th December 2009 01:09 AM
MP3 woes Swordfish Using Fedora 9 22nd February 2006 11:29 PM
Yum Woes Twey Installation, Upgrades and Live Media 2 3rd August 2005 04:53 AM
NTP woes Taft Using Fedora 0 26th May 2005 08:41 PM


Current GMT-time: 22:08 (Saturday, 25-10-2014)

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
Ghijduwon Photos on Instagram - Barberton - Abu Ghurayb Travel Photos on Instagram