Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[Solved] NFS error: mount: RPC: Timed out

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

[Solved] NFS error: mount: RPC: Timed out

  • Quote

Post by dnamroud » Tue Nov 15, 2005 2:09 pm

Hello,

I am trying to mount a NFS ..
here the step that I did:

kernel i made sure that this option are compiled
File Systems --->
Network File Systems --->
<*> NFS file system support
[*] Provide NFSv3 client support
[ ] Provide NFSv4 client support (EXPERIMENTAL)
[ ] Allow direct I/O on NFS files (EXPERIMENTAL)
<*> NFS server support
[*] Provide NFSv3 server support
[ ] Provide NFS server over TCP support (EXPERIMENTAL)
< > Secure RPC: Kerberos V mechanism (EXPERIMENTAL)
< > SMB file system support (to mount Windows shares etc.)
< > CIFS support (advanced network filesystem for Samba, Window and o...)
< > NCP file system support (to mount NetWare volumes)
< > Coda file system support (advanced network fs)
< > Andrew File System support (AFS) (Experimental)
I emerged nfs-utils on my server

I modified /etc/exports file
# /etc/exports: NFS file systems being exported. See exports(5).
/mnt/users/shared X.Y.W.Z(sync,rw) X.Y.T.R(sync,rw)
I started nfs service:
/etc/init.d/nfs start
rc-update add nfs default
Client Side:
/etc/init.d/portmap start
Trying tomount the NFS directory
mount X.Y.W.Z:/mnt/users/shared /mnt/shared or this one mount -t nfs X.Y.W.Z:/mnt/users/shared /mnt/shared

I got the following message: mount: RPC: Timed out
I made sure to have added the following line into my hosts.allow: ALL:X.Y.

I found the following topic wich had the same error, but wasn't enough to fix my problem:
http://forums.gentoo.org/viewtopic-t-62 ... timed.html

Any help is appreciated.
Thank you
Dany
Last edited by dnamroud on Wed Nov 16, 2005 1:44 am, edited 1 time in total.
Top
tuxmin
l33t
l33t
User avatar
Posts: 838
Joined: Sat Apr 24, 2004 9:25 am
Location: Heidelberg

  • Quote

Post by tuxmin » Tue Nov 15, 2005 3:44 pm

First, you should start nfs on the client as well. NFS can run with portmap only, but it's a good idea to have mountd and lockd running as well.
For the RPC timeout: id you take a look at the server logs? Did they reveal anything? Show us your /ect/exports from the server.


Alex!!!
ALT-F4
Top
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

  • Quote

Post by dnamroud » Tue Nov 15, 2005 4:14 pm

Hi
Thank you for your reply,

You are right
I emerged nfs-utils and started the service and here what I got:
/etc/init.d/nfs start
* Mounting nfsd filesystem in /proc ... [ ok ]
* Mounting RPC pipefs ... [ ok ]
* Starting idmapd ...
rpc.idmapd: Skipping configuration file "/etc/idmapd.conf": No such file or directory [ ok ]
* Starting NFS statd ... [ ok ]
* Starting NFS daemon ... [ ok ]
* Starting NFS mountd ...
trying to mount my directory but still getting the same message:

This is my /etc/exports (server side)
# /etc/exports: NFS file systems being exported. See exports(5).
/mnt/users/shared X.Y.W.Z(sync,rw) X.Y.T.R(sync,rw)
This is the last servers log:
Nov 15 10:19:41 portvein rc-scripts: WARNING: "nfs" has already been started.
Nov 15 10:19:45 portvein rpc.mountd: Caught signal 15, un-registering and exiting.
Nov 15 10:19:45 portvein kernel: nfsd: last server has exited
Nov 15 10:19:45 portvein kernel: nfsd: unexporting all filesystems
Top
tuxmin
l33t
l33t
User avatar
Posts: 838
Joined: Sat Apr 24, 2004 9:25 am
Location: Heidelberg

  • Quote

Post by tuxmin » Tue Nov 15, 2005 4:26 pm

This looks as if your nfsd gets killed upon client request, hence the RPC timeout!? Not very promising...
What kernel is this? Are you using any masked nfs-utils?


Alex!!!
ALT-F4
Top
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

  • Quote

Post by dnamroud » Tue Nov 15, 2005 4:45 pm

I am really lost because i am not seeing any new log after trying to mount my directory... I believe the previous log is not related to the client request...

What kernel is this?
2.6.11-gentoo-r1

Are you using any masked nfs-utils?
No

thank you

Dany
Top
tuxmin
l33t
l33t
User avatar
Posts: 838
Joined: Sat Apr 24, 2004 9:25 am
Location: Heidelberg

  • Quote

Post by tuxmin » Tue Nov 15, 2005 5:25 pm

1. make sure at least statd, mountd and portmap are running on your server
2. Find the appropriate log file. There *must* be something or you provide the wrong DNS name or IP address on the client side


Alex!!!
ALT-F4
Top
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

  • Quote

Post by dnamroud » Tue Nov 15, 2005 5:37 pm

probalby Ifound the problem, it's related to a firewall...

when i flushed my iptables the previous message disappears, but I got another error: Permission denied!!!!


Thank you Alain
Dany
Top
tuxmin
l33t
l33t
User avatar
Posts: 838
Joined: Sat Apr 24, 2004 9:25 am
Location: Heidelberg

  • Quote

Post by tuxmin » Tue Nov 15, 2005 5:52 pm

In that case most probably your IPs/DNS names in /etc/exports don't match your client...
Remove any entries you probably made in /etc/hosts.[allow|deny]


Alex!!!
ALT-F4
Top
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

  • Quote

Post by dnamroud » Tue Nov 15, 2005 6:18 pm

I did verify my IP client in /etc/exports, it is the right one...

thank you
Dany
Top
tuxmin
l33t
l33t
User avatar
Posts: 838
Joined: Sat Apr 24, 2004 9:25 am
Location: Heidelberg

  • Quote

Post by tuxmin » Tue Nov 15, 2005 6:42 pm

There must be some error in your exports. Could you please paste the complete output from your logfile...
Try an entry with the IP of the client only. Comment out all other lines and reload nfs.


Alex!!!
ALT-F4
Top
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

  • Quote

Post by dnamroud » Tue Nov 15, 2005 7:03 pm

You are right Alain..

Thank you for your help..
still wondering how can i pass over my firewall to access the nfs!!!

Dany
Top
drax_
n00b
n00b
User avatar
Posts: 32
Joined: Fri Mar 18, 2005 12:17 am
Location: France
Contact:
Contact drax_
Website

  • Quote

Post by drax_ » Tue Nov 15, 2005 7:43 pm

still wondering how can i pass over my firewall to access the nfs!!!
You cant since ports a chosen a runtime by nfsd. You can force ports, and ranges, but you'll still be exposed to hassle.
But more simply, I wouldn't let nfs behind your firewall (assuming it's an inernet firewall). NFS is not a particularly secure protocol, and is certainly not made to be open on the internet. Use internally, and with care.
Mail: drax@sweon.net
UIN: 123093451 - AIM: drax8080 - Jabber: swe@jabber.org
--=======================================================--
Unix Systems and Network Administrator - www.sweon.net
Top
tuxmin
l33t
l33t
User avatar
Posts: 838
Joined: Sat Apr 24, 2004 9:25 am
Location: Heidelberg

  • Quote

Post by tuxmin » Tue Nov 15, 2005 8:43 pm

I second this...
NFS V4 is meant to overcome (most of) these limits -- but's the code is still rather experimental.

Alex!!!
ALT-F4
Top
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

  • Quote

Post by dnamroud » Wed Nov 16, 2005 1:43 am

thank you for your help and your replies...

my problem is solved...

Dany
Top
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

  • Quote

Post by dnamroud » Wed Nov 16, 2005 1:45 am

I found this document too:
http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS
Top
TheWitePony
Apprentice
Apprentice
User avatar
Posts: 211
Joined: Wed Feb 04, 2004 10:30 pm

  • Quote

Post by TheWitePony » Wed Jan 11, 2006 9:42 pm

dnamroud wrote:thank you for your help and your replies...

my problem is solved...

Dany
Could you explain how you resolved your problem? I seem to be having the same issues. My server is behind a router and my client is outside the local network. I keep getting this when I try to mount:

Code: Select all

mount: RPC: Timed out
As far as I can tell everything is setup right, I think it may be an issue with forwarding the right ports on my router.
Top
dnamroud
Guru
Guru
Posts: 346
Joined: Wed Jun 01, 2005 4:35 pm
Location: Canada
Contact:
Contact dnamroud
Website

  • Quote

Post by dnamroud » Thu Jan 12, 2006 1:45 am

Hi,

If you are getting this:
mount: RPC: Timed out
There is a big chance that your nfs server is behind a firewall...

In case you have a firewall try to follow the following instructions (nfs server side)
http://gentoo-wiki.com/HOWTO_Share_Dire ... er_Side.29
Did you look at it before?

Hope it helps

Dany
Top
Post Reply

17 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic