LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06: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, 06: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, 07: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, 07:55 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 08: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, 08: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, 12: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, 04: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, 07: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 07:03 AM.
 
Old 07-11-2012, 08: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, 09: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, 01:14 AM   #12
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
Great!
 
  


Reply



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 09: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 10:22 AM
nfs server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 02:08 PM
LXer: Run your NFS server in the user address space with NFS-GANESHA LXer Syndicated Linux News 0 11-27-2008 04:40 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 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
Open Source Consulting | Domain Registration