LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-09-2010, 12:18 PM   #1
marv
LQ Newbie
 
Registered: Jun 2008
Location: UK
Posts: 5

Rep: Reputation: 0
debian lenny nfs RPC Error


I have a server running debian lenny on which im trying to set up nfs exports.

My problem is that every time I try to mount the nfs share from a client machine (another debian lenny box) I get

Code:
debian:/# mount -t nfs 192.168.86.200:/testmount /test
mount.nfs: mount to NFS server '192.168.86.200' failed: RPC Error: Program not registered
The line in /etc/exports is:

Code:
/testmount     192.168.86.0/255.255.255.0(rw)
exportfs -v gives:

Code:
/testmount 192.168.86.0/255.255.255.0(rw,wdelay,root_squash,no_subtree_check)

I have searched everywhere I can think of to try and find a solution to this problem but with no luck.

All the posts I have found talk about ensuring that portmap is installed, which it is, and starting the services in the right order (starting portmap first, then nfs server), which I have done.

I don't fully understand portmap, all I understand is that it maps rpc ports to unix ports. How does a daemon register with portmap? Should it just do it automatically?

On the server, the output of rpcinfo -p is:

Code:
   program vers proto   port
    100000    2   tcp    111  portmapper
    100011    1   udp    809  rquotad
    100011    2   udp    809  rquotad
    100011    1   tcp    810  rquotad
    100011    2   tcp    810  rquotad
    100000    2   udp    111  portmapper
    100024    1   udp  43432  status
    100024    1   tcp  43318  status
Is there anything else that could be configured incorectly to stop the nfs server from registering with portmap?

Thanks.
 
Old 05-09-2010, 12:28 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
It does it automatically. Restart portmap, then start nfs-server (or nfsd or whatever it's named). Your rpcinfo (and the error message) state that the NFS server is not running.
 
Old 05-09-2010, 12:49 PM   #3
marv
LQ Newbie
 
Registered: Jun 2008
Location: UK
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the reply.

I have done this a few times today, just tried it again though...

stopped portmap, nfs-kernel-server, nfs-common

then started portmap, no errors

then started nfs-kernel-server, no errors:
Code:
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd.
then started nfs-common, no errors:
Code:
Starting NFS common utilities: statd idmapd.
However, nfs does not show up in a process list which im assuming it should if it is running, even though it didn't show an error.
 
Old 05-09-2010, 01:43 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ok, nfs-kernel-server is indeed the server init script. What kernel version are you running? You should have a few [nfsd] processes running on the server. What does `/sbin/showmount -e serverip` say, both on the server and on the client? Do you have a firewall running on either?
 
Old 05-11-2010, 07:20 AM   #5
marv
LQ Newbie
 
Registered: Jun 2008
Location: UK
Posts: 5

Original Poster
Rep: Reputation: 0
I have now discovered that the problem is that the kernel does currently not support nfs.

The Debian install is provided by a dedicated hosting company who have obviously removed support for it. They had also commented out a section of the /etc/init.d/nfs-kernel-server script which checked for kernel support.

When I uncommented it, the script returns an error, as it should.

Thanks for your help anyway!
 
  


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
NFS: failed: RPC Error: Program not registered dbrazeau Linux - Networking 2 03-25-2011 03:35 PM
NFS RPC error msg granny Linux - Networking 2 12-13-2007 05:28 AM
NFS RPC: Port mapper failure - RPC: Unable to receive KEJP Linux - Networking 6 12-18-2006 02:14 AM
NFS - RPC Error ashlesha Linux - Software 2 11-13-2006 12:16 PM
error while nfs mounting: RPC -connection time out paul darciel Linux - Networking 1 06-30-2006 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 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