LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2012, 07:32 AM   #1
rpm081966
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Rep: Reputation: Disabled
NFS


I'm trying to mount a filesystem from an nfs server RH (nfs-utils-0.3.3-5) on a client running Ubuntu 12.04 server.

Using command:

sudo mount -Vt nfs server.xxx.yyy.zz:/mnt/home/homes /mnt/home/homes

I get the error:

mount.nfs: Connection timed out

When I use the -V argument it responds quickly with:

mount from util-linux 2.20.1 (with libblkid and selinux support)

The /etc/fstab has the line for the filesystem in question:

server.xxx.yyy.zz:/mnt/home/homes /mnt/home/homes nfs

What should I look for? Any help appreciated.
 
Old 07-06-2012, 07:46 AM   #2
anshuman84
Member
 
Registered: May 2008
Location: Bangalore
Posts: 31

Rep: Reputation: 6
Quote:
Originally Posted by rpm081966 View Post
I'm trying to mount a filesystem from an nfs server RH (nfs-utils-0.3.3-5) on a client running Ubuntu 12.04 server.

Using command:

sudo mount -Vt nfs server.xxx.yyy.zz:/mnt/home/homes /mnt/home/homes

I get the error:

mount.nfs: Connection timed out

When I use the -V argument it responds quickly with:

mount from util-linux 2.20.1 (with libblkid and selinux support)

The /etc/fstab has the line for the filesystem in question:

server.xxx.yyy.zz:/mnt/home/homes /mnt/home/homes nfs

What should I look for? Any help appreciated.
The PC you are trying to mount NFS and the target should be in one tree of IP. Ex 192.168.1.xx and 92.168.1.xx
Both the IPs shd be Static.
Check the link of network while doing NFS , is it going down ???
 
Old 07-06-2012, 08:07 AM   #3
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
Please make sure that following service are running on server side: rpcbind, nfslock and nfs. And on client side: rpcbind, rpcidmapd, nfslock and netfs. Then try to mount.
 
Old 07-06-2012, 08:55 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
What do your /etc/hosts.allow, /etc/hosts.deny, and /etc/exports files on the server look like?
Anything in /var/log/messages on the server about the attempted connection?
 
Old 07-06-2012, 09:25 AM   #5
rpm081966
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks....

The network is fine.

Quote:
Originally Posted by uk.engr View Post
Please make sure that following service are running on server side: rpcbind, nfslock and nfs. And on client side: rpcbind, rpcidmapd, nfslock and netfs. Then try to mount.
on server side: rpcbind, nfslock and nfs = all ok
on client side: rpcbind = rpcbind -w, rpcidmapd = ok , nfslock and netfs not running but nfsiod is running.


Quote:
Originally Posted by suicidaleggroll View Post
What do your /etc/hosts.allow, /etc/hosts.deny, and /etc/exports files on the server look like?
Anything in /var/log/messages on the server about the attempted connection?

/etc/hosts.allow and /etc/hosts.deny are empty. /etc/exports is correctly configured on the nfs server which is working with other clients. /var/log/messages has no reference to the mount request.
 
Old 07-06-2012, 09:52 AM   #6
rpm081966
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
How do I start nfslock and netfs on the client?
 
Old 07-07-2012, 01:04 AM   #7
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
Quote:
How do I start nfslock and netfs on the client?
/etc/init.d/nfslock start
/etc/init.d/netfs start
 
Old 07-09-2012, 05:53 AM   #8
rpm081966
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uk.engr View Post
/etc/init.d/nfslock start
/etc/init.d/netfs start
I'm afraid that neither of those files exist but I have installed nfs-common. Are they required?
 
Old 07-09-2012, 08:01 AM   #9
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
Try to install nfs as "yum install nfs*", * means should install all dependencies or desire files. I hope it will install nfslock and netfs it self becuase I installed nfs in this way so I had these files. One more thing disable your firewall as vim /etc/selinux/config and set SELINUX=disabled. This may also resist you to mount nfs share on both side server and client.
Please refer the following link:

http://www.server-world.info/en/note?os=Fedora_14&p=nfs

Last edited by uk.engr; 07-09-2012 at 08:03 AM.
 
Old 07-11-2012, 09:10 AM   #10
rpm081966
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uk.engr View Post
Try to install nfs as "yum install nfs*", * means should install all dependencies or desire files. I hope it will install nfslock and netfs it self becuase I installed nfs in this way so I had these files. One more thing disable your firewall as vim /etc/selinux/config and set SELINUX=disabled. This may also resist you to mount nfs share on both side server and client.
Please refer the following link:

http://www.server-world.info/en/note?os=Fedora_14&p=nfs
Thanks. I'm afraid I still don't have a resolution. I can mount from this server to other machines on the network but not from other machines to this one. I get a 'connection timed out' message. The problem seems to be a Ubuntu specific issue so the Fedora notes aren't throwing any light on it.
 
Old 07-12-2012, 10:24 AM   #11
rpm081966
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
It worked when I did this:

sudo mount -o proto=udp server:/mnt/homedirs /mnt/homedirs
 
Old 07-13-2012, 02:14 AM   #12
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
Great!
 
  


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
Ubuntu Server - 10.04.03 - NFS export with Kerberos (MIT) - NFS Won't Start tekkon7 Linux - Server 2 11-07-2011 10:53 AM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 11:22 AM
nfs server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 03:08 PM
LXer: Run your NFS server in the user address space with NFS-GANESHA LXer Syndicated Linux News 0 11-27-2008 05:40 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM


All times are GMT -5. The time now is 08:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration