LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-17-2008, 10:49 PM   #1
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,241

Rep: Reputation: 196Reputation: 196
mount.nfs: mount to NFS server 'rpcbind' failed


It isn't a question but an answer. I had a problem and I resolved it after some researches. I publish the report about it in hope it will be useful for the other users.

I use three machines: home1, home2, and home3. System configuration on all those machines is virtually the same. First and second machines I used for several years with different versions of Slackware -- third machine is new one and I just try to configure Slackware on it.

When I tried to use NFS I stated the following...

I could ping from any machine to any machine but I had some problems with NFS.

On home1 I could mount home2 directories but I couldn't mount home3 directories.

On home2 I could mount home1 directories but I couldn't mount home3 directories.

On home3 I could mount home1 directories but I couldn't mount home2 directories.

In three cases in which I couldn't mount directory mount command displayed the same message:

mount.nfs: mount to NFS server 'rpcbind' failed: RPC Error: Program not registered
mount.nfs: internal error

I started my researches...

Each successful mount and unmount was reported in /var/log/messages on the client side by something like:

mountd[2689]: authenticated mount request from 192.168.1.x:796 for / (/)
mountd[2689]: authenticated unmount request from 192.168.1.x:641 for / (/)

When I failed to mount home2 directories on home3 machine /var/log/syslog on the server side reported:

kernel: nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
portmap[2894]: connect from 192.168.1.3 to getport(mountd): request from unauthorized host
portmap[2895]: connect from 192.168.1.3 to getport(nfs): request from unauthorized host
portmap[2895]: connect from 192.168.1.3 to getport(nfs): request from unauthorized host

When I failed to mount home3 directories on home1 and on home2 none machine reported nothing.

In such situation I decided to check everything from scratch...

After a dozen or so minutes I stated the reasons of that problems were relatively simple.

On home3 rc.nfsd hadn't permission to be executed for some reason.

# chmod u+x /etc/rc.d/rc.nfsd

# /etc/rc.d/rc.nfsd start

...and I can mount home3 directories.

On home2 server home3 client wasn't registered in hosts.allow.

# echo "ALL: ALL@192.168.1.3 : ALLOW" >> /etc/hosts.allow

# cat /etc/hosts.deny

ALL: ALL@ALL

# cat /etc/hosts.allow

ALL: ALL@127.0.0.1 : ALLOW
ALL: ALL@192.168.1.1 : ALLOW
ALL: ALL@192.168.1.2 : ALLOW
ALL: ALL@192.168.1.3 : ALLOW

...and I can mount home2 directories using home3 machine.

It's all.

Have a nice day...

Last edited by w1k0; 10-18-2008 at 07:26 AM.
 
Old 10-18-2008, 01:40 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Good on yah!
 
Old 11-09-2008, 12:40 PM   #3
f14f21
Member
 
Registered: Sep 2008
Distribution: rhel
Posts: 42

Rep: Reputation: 6
that's nice of you to give us solution
thank u
 
Old 02-11-2010, 07:44 AM   #4
olego
Member
 
Registered: Sep 2008
Location: Kaliningrad, Russia
Distribution: Slackware
Posts: 35

Rep: Reputation: 1
Thank You for correct solution! I encountered this problem today and I wonder why I should care about /etc/hosts.allow if I already set allowed hosts in the /etc/exports ?
 
Old 03-30-2010, 04:45 PM   #5
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,241

Original Poster
Rep: Reputation: 196Reputation: 196
Using /etc/hosts.deny and /etc/hosts.allow you configure your tcpwrappers. For more information see here. Using /etc/exports you configure your Network File System. For more information see here.

I'm glad I helped you to solve your problem.

I’m sorry for a long delay in the answer but usually I don’t monitor my old threads.
 
  


Reply

Tags
client, mount, nfs, server


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
mount: mount to NFS server '192.168.0.3' failed: System Error: Connection refused. fakie_flip Linux - Server 1 04-10-2008 01:28 AM
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 8 09-22-2006 04:34 AM
mount to NFS server '192.168.12.43' failed: server is down. hemant kumar tiwari General 1 06-07-2006 10:09 AM
mount to NFS server 'ip addr' failed: server is down. timvand Linux - Networking 1 04-22-2005 03:03 PM
mount to NFS server '192.168.1.13' failed: server is down rblampain Linux - Networking 2 01-14-2005 02:19 AM


All times are GMT -5. The time now is 09:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration