LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2014, 05:34 AM   #1
darwall
LQ Newbie
 
Registered: Mar 2008
Location: Habo, Sweden
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
NFS dont automatically mount in Fedora 20


Hi all!
I have a problem after upgrading from Feora 19 to Fedora 20.
I have a home-network with a centos 6.4 server and NFS sharing on the /home folder and a few Fedora clients with LXDE desktop enviroment,
I am currently upgrading clients from fedora 19 to fedora 20, but have discovered that the NFS mount is not working automatically.
it simply doesnt mount anymore.
I have to type mount -a in the terminal and then it works.
The next time I start up the computer I have to type mount -a again.
I have upgraded two clients to Fedora 20 so far and itś the same problem with both.
One a computer has still Fedora 19, there is no problem. It mounts automatically.

I would be greatful if anyone have an idea

Sven from Sweden

Last edited by darwall; 04-25-2014 at 10:35 AM.
 
Old 04-26-2014, 09:38 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
Have you checked the startup log, eg: /var/log/messages?

My guess is the machine is attempting to mount the NFS before it brings up its own network. The mount errors out since it can't access the NFS server, and then it continues without it.
 
Old 04-27-2014, 12:20 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
how do you currently have the NFS share mounting on the F20 systems? sounds like the filesystem is coming alive before the network is. thus your shared connection is failing.

you might looking into moving the mount out of fstab and into autofs for now.
 
Old 04-30-2014, 05:38 PM   #4
darwall
LQ Newbie
 
Registered: Mar 2008
Location: Habo, Sweden
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
Have you checked the startup log, eg: /var/log/messages?

My guess is the machine is attempting to mount the NFS before it brings up its own network. The mount errors out since it can't access the NFS server, and then it continues without it.
Hi and thanks for your reply.
There is no /var/log/messages in Fedora 20
(but there is in Fedora 19 )
I think you're right. He runs fstab before he has had time to connect with the NFS-server.
I would need to arrange some delay before mounting the NFS-server.
But I do not know how to do it. Maybe I could use the sleep command somehow?
I would really appreciate a good tip.
Sven from Sweden
 
Old 04-30-2014, 05:52 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
I'm not familiar enough with F20 to suggest a solid fix, but one alternative would be to write a startup script in init.d that simply runs "mount -a" to bring up any NFS mounts that failed on the first go-around.
 
Old 04-30-2014, 08:16 PM   #6
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Did you try adding _netdev in /etc/fstab?
 
Old 05-01-2014, 07:35 AM   #7
darwall
LQ Newbie
 
Registered: Mar 2008
Location: Habo, Sweden
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by custangro View Post
Did you try adding _netdev in /etc/fstab?
Hello custangro!
I'm not familiar with _netdev ?
Can you give me an example how to use it?
Here below is my fstab
My servername is cos6 ( centos 6 )
Thanks
Sven from Sweden

/dev/mapper/fedora-root / ext4 defaults 1 1
UUID=ebbe2127-7750-4790-9963-324ae54c9949 /boot ext4 defaults 1 2
/dev/mapper/fedora-home /home ext4 defaults 1 2
/dev/mapper/fedora-swap swap swap defaults 0 0
cos6:/home /home nfs4 rsize=8192,wsize=8192,timeo=14,intr 0 0
 
Old 05-01-2014, 02:15 PM   #8
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Something like this

Code:
cos6:/home /home nfs4 _netdev,rsize=8192,wsize=8192,timeo=14,intr 0 0
From the mount man page

Quote:
_netdev
The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).

Last edited by custangro; 05-01-2014 at 02:17 PM.
 
  


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
Can't nfs mount from Fedora 16 NFS server. wdli Fedora 18 03-13-2012 02:59 PM
nfs mount not happening automatically pwabrahams Linux - Networking 4 07-10-2008 01:00 PM
nfs client does not mount server-shares automatically on boot rsp Debian 2 07-29-2007 08:26 AM
how can mount automatically Home dicrectory for fedora core 5 masudur_iiu Linux - Newbie 3 08-25-2006 05:19 PM
automatically mount NFS shares turbo_acura Linux - Networking 1 10-28-2004 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:31 AM.

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