|
Home > Archive > Red Hat Configuration > January 2004 > NFS Fedora Core 1 & RH 7.2
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
NFS Fedora Core 1 & RH 7.2
|
|
|
| I have a RH 7.2 (2.4.7-10) client at 192.168.0.2 on which I am trying
to mount an NFS share (/shared) from Fedora Core 1
(2.4.22-1.2115.nptl) server at 192.168.0.5.
On the server:
/etc/hosts.allow contains:
rpc.mountd: 192.168.0.2
rpc.nfsd: 192.168.0.2
rpc.rquotad: 192.168.0.2
/etc/hosts.deny contains:
ALL: ALL
/etc/exports contains:
/shared 192.168.0.2(rw)
service nfs status give me:
rpc.mountd (pid 1148) is running...
nfsd (pid 1140 1139 1138 1137 1136 1135 1134 1133) is running...
rpc.rquotad (pid 1129) is running...
rpcinfo -p gives me:
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
391002 2 tcp 32769 sgi_fam
100011 1 udp 882 rquotad
100011 2 udp 882 rquotad
100011 1 tcp 885 rquotad
100011 2 tcp 885 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 32771 nlockmgr
100021 3 udp 32771 nlockmgr
100021 4 udp 32771 nlockmgr
100021 1 tcp 32771 nlockmgr
100021 3 tcp 32771 nlockmgr
100021 4 tcp 32771 nlockmgr
100005 1 udp 900 mountd
100005 1 tcp 903 mountd
100005 2 udp 900 mountd
100005 2 tcp 903 mountd
100005 3 udp 900 mountd
100005 3 tcp 903 mountd
exportfs gives me:
/shared 192.168.0.2
/var/lib/nfs/xtab, however, is empty.
On the client:
mount 192.168.0.5:/shared some/mountpoint gives me:
mount: RPC: Unable to receive; errno = Connection refused
Mount command is issued as root, mountpoint exists and is owned by
root.
As far as I can see everything is set up correctly, but the server
refuses to allow the client to connect. Anyone got any ideas as to
why? All help appreciated.
| |
| Jacob Heider 2004-01-23, 7:26 pm |
| On Fri, 21 Nov 2003 15:26:11 +0000, Ric wrote:
quote:
> I have a RH 7.2 (2.4.7-10) client at 192.168.0.2 on which I am trying to
> mount an NFS share (/shared) from Fedora Core 1 (2.4.22-1.2115.nptl)
> server at 192.168.0.5.
>
> On the server:
>
> /etc/hosts.allow contains:
> rpc.mountd: 192.168.0.2
> rpc.nfsd: 192.168.0.2
> rpc.rquotad: 192.168.0.2
>
> /etc/hosts.deny contains:
> ALL: ALL
>
> /etc/exports contains:
> /shared 192.168.0.2(rw)
>
> service nfs status give me:
> rpc.mountd (pid 1148) is running...
> nfsd (pid 1140 1139 1138 1137 1136 1135 1134 1133) is running...
> rpc.rquotad (pid 1129) is running...
>
> rpcinfo -p gives me:
> program vers proto port
> 100000 2 tcp 111 portmapper
> 100000 2 udp 111 portmapper
> 100024 1 udp 32768 status
> 100024 1 tcp 32768 status
> 391002 2 tcp 32769 sgi_fam
> 100011 1 udp 882 rquotad
> 100011 2 udp 882 rquotad
> 100011 1 tcp 885 rquotad
> 100011 2 tcp 885 rquotad
> 100003 2 udp 2049 nfs
> 100003 3 udp 2049 nfs
> 100003 2 tcp 2049 nfs
> 100003 3 tcp 2049 nfs
> 100021 1 udp 32771 nlockmgr
> 100021 3 udp 32771 nlockmgr
> 100021 4 udp 32771 nlockmgr
> 100021 1 tcp 32771 nlockmgr
> 100021 3 tcp 32771 nlockmgr
> 100021 4 tcp 32771 nlockmgr
> 100005 1 udp 900 mountd
> 100005 1 tcp 903 mountd
> 100005 2 udp 900 mountd
> 100005 2 tcp 903 mountd
> 100005 3 udp 900 mountd
> 100005 3 tcp 903 mountd
>
> exportfs gives me:
> /shared 192.168.0.2
>
> /var/lib/nfs/xtab, however, is empty.
>
> On the client:
> mount 192.168.0.5:/shared some/mountpoint gives me:
>
> mount: RPC: Unable to receive; errno = Connection refused
>
> Mount command is issued as root, mountpoint exists and is owned by root.
>
> As far as I can see everything is set up correctly, but the server refuses
> to allow the client to connect. Anyone got any ideas as to why? All help
> appreciated.
iptables? What does "showmount -e <server>" show from both machines?
Jacob
| |
|
| On the client:
/usr/sbin/showmount -e 192.168.0.5
gives me:
mount clntudp_create: RPC: Program not registered
I have to run the command with the full path otherwise I get a command
not found message. Seems like there is something wrong on the client.
Is there an NFS client that I have to install? I have nfs-utils
0.3.1-13 installed on the client, but I have not done any
configuration on the client. I am not aware of anything that I need to
do on the client to use NFS.
On the server:
showmout -e
gives me:
/shared 192.168.0.2
As regards iptables, I am not sure what I need to check. Can you give
me more information?
Thanks
On Sat, 22 Nov 2003 05:08:30 GMT, Jacob Heider
<lord-jacob@comcast.net> wrote:
quote:
>On Fri, 21 Nov 2003 15:26:11 +0000, Ric wrote:
>
>
>iptables? What does "showmount -e <server>" show from both machines?
>
>Jacob
| |
| Jacob Heider 2004-01-23, 7:26 pm |
| On Sun, 23 Nov 2003 01:48:04 +0000, Ric wrote:
<top posting fixed>
quote:
> On Sat, 22 Nov 2003 05:08:30 GMT, Jacob Heider <lord-jacob@comcast.net>
> wrote:
>
>
> As regards iptables, I am not sure what I need to check. Can you give me
> more information?
>
> Thanks
>
>
Sure, as root running "service iptables stop" (shuts down your
firewall...) and reattempting the nfs commands will tell you if that's the
problem. If so, do
service iptables start
iptables-save >iptables.save
and post as much of that file as you feel comfortable posting, and we'll
try to help figure out the problem.
Jacob
| |
|
| Found the solution! Not running a firewall on either of those machines
as the are both on an internal network. There is another machine that
sits as a gateway between the internal network and the Internet.
The problem was that hosts.deny was preventing access to the
portmapper. Adding:
portmap: 192.168.0.2
to the hosts.allow file on the server solved the problem.
Thanks for the help. It is much appreciated.
Regards
Ric
On Sun, 23 Nov 2003 06:05:52 GMT, Jacob Heider
<lord-jacob@comcast.net> wrote:
quote:
>On Sun, 23 Nov 2003 01:48:04 +0000, Ric wrote:
>
><top posting fixed>
>
>
>Sure, as root running "service iptables stop" (shuts down your
>firewall...) and reattempting the nfs commands will tell you if that's the
>problem. If so, do
>
>service iptables start
>iptables-save >iptables.save
>
>and post as much of that file as you feel comfortable posting, and we'll
>try to help figure out the problem.
>
>Jacob
|
|
|
|
|