LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2002, 06:36 PM   #1
ychimin2000
LQ Newbie
 
Registered: Oct 2002
Location: China
Posts: 6

Rep: Reputation: 0
NFS / portmap with RH 7.3


Setup NFS on Red Hat 7.2 wasn't a problem; on RH 7.3,
I just cannot make it work. I've tried both nfs-utils-0.3.3
and nfs-utils-1.0.1.

When mount a volume of 192.168.1.2 to local 192.168.1.1,
(as a root) I got the following error:

# mount 192.168.1.2:/home /mnt/user
mount: RPC: Port mapper failure - RPC: Unable to receive

When mount a volume of 192.168.1.1 to local 192.168.1.2,
(also as a root) the operation hangs.

Other information :

# cat /etc/exports
/home 192.168.1.1(rw)

# mount 192.168.1.2:/home /mnt/user
mount: RPC: Port mapper failure - RPC: Unable to receive


# /etc/init.d/nfs restart
Stopping NFS mountd: [ OK ]
Stopping NFS daemon: [ OK ]
Stopping NFS services: [ OK ]
Stopping NFS quotas: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]

# ps -aux | grep nfs
root 7878 0.0 0.0 0 0 ? SW 23:18 0:00 [nfsd]
root 7879 0.0 0.0 0 0 ? SW 23:18 0:00 [nfsd]
root 7880 0.0 0.0 0 0 ? SW 23:18 0:00 [nfsd]
root 7881 0.0 0.0 0 0 ? SW 23:18 0:00 [nfsd]
root 7882 0.0 0.0 0 0 ? SW 23:18 0:00 [nfsd]
root 7883 0.0 0.0 0 0 ? SW 23:18 0:00 [nfsd]
root 7884 0.0 0.0 0 0 ? SW 23:18 0:00 [nfsd]
root 7885 0.0 0.0 0 0 ? SW 23:18 0:00 [nfsd]
root 7891 0.0 0.2 2240 636 pts/2 R 23:18 0:00 grep nfs

# ps -aux | grep rpc
rpc 736 0.0 0.2 1512 552 ? S 12:39 0:00 portmap
rpcuser 762 0.0 0.2 1556 568 ? S 12:39 0:00 rpc.statd
root 7868 0.0 0.1 1468 420 ? S 23:18 0:00 rpc.rquotad
root 7873 0.0 0.2 1548 616 ? S 23:18 0:00 rpc.mountd
root 7887 0.0 0.0 0 0 ? SW 23:18 0:00 [rpciod]


Please help..
 
Old 10-17-2002, 07:17 PM   #2
ychimin2000
LQ Newbie
 
Registered: Oct 2002
Location: China
Posts: 6

Original Poster
Rep: Reputation: 0
addition info

Addition info - pstree report

# pstree
init-+-adsl-connect---pppd---pppoe
|-apmd
|-atd
|-bdflush
|-chinput
|-crond
|-cserver
|-eth0
|-eth1
|-gpm
|-kalarmd
|-kapmd
|-kdeinit-+-artsd
| |-kdeinit
| |-kdeinit---bash---pstree
| `-run-mozilla.sh---mozilla-bin---mozilla-bin---4*[mozilla-bin]
|-9*[kdeinit]
|-kdm-+-X
| `-kdm---startkde---kwrapper
|-keventd
|-khubd
|-klogd
|-korgac
|-ksoftirqd_CPU0
|-kswapd
|-kupdated
|-lockd---rpciod
|-mdrecoveryd
|-6*[mingetty]
|-8*[nfsd]
|-oafd
|-portmap
|-rpc.mountd
|-rpc.rquotad
|-rpc.statd
|-sshd
|-syslogd
|-tserver
|-xfs
`-xinetd
 
Old 10-17-2002, 07:30 PM   #3
ychimin2000
LQ Newbie
 
Registered: Oct 2002
Location: China
Posts: 6

Original Poster
Rep: Reputation: 0
additional info - rpcinfo report

# rpcinfo -p
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 779 rquotad
100011 2 udp 779 rquotad
100011 1 tcp 782 rquotad
100011 2 tcp 782 rquotad
100005 1 udp 32769 mountd
100005 1 tcp 32770 mountd
100005 2 udp 32769 mountd
100005 2 tcp 32770 mountd
100005 3 udp 32769 mountd
100005 3 tcp 32770 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 4 udp 32770 nlockmgr
 
Old 10-17-2002, 08:07 PM   #4
ychimin2000
LQ Newbie
 
Registered: Oct 2002
Location: China
Posts: 6

Original Poster
Rep: Reputation: 0
More info

Further testing indicates that maching 192.168.1.2 has
some problem.

Execute the following commands on 192.168.1.1,

# rpcinfo -p 192.168.1.2
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

# mount 192.168.1.2:/home /mnt/home
mount: RPC: Port mapper failure - RPC: Unable to receive

Execute the following commands on 192.168.1.2,
# rpcinfo -p 192.168.1.1
It correctly shows rpc services on 192.168.1.1

The rpc services on 192.168.1.2
# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 1024 status
391002 2 tcp 1029 sgi_fam
100011 1 udp 668 rquotad
100011 2 udp 668 rquotad
100011 1 tcp 671 rquotad
100011 2 tcp 671 rquotad
100005 1 udp 1028 mountd
100005 1 tcp 1045 mountd
100005 2 udp 1028 mountd
100005 2 tcp 1045 mountd
100005 3 udp 1028 mountd
100005 3 tcp 1045 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 1029 nlockmgr
100021 3 udp 1029 nlockmgr
100021 4 udp 1029 nlockmgr

When reboot 192.168.1.1, the exported partition /home
has to go throught disk checking because it has been mounted
20+ times.
 
Old 10-17-2002, 08:27 PM   #5
ychimin2000
LQ Newbie
 
Registered: Oct 2002
Location: China
Posts: 6

Original Poster
Rep: Reputation: 0
I found that it is firewall caused the problem on 192.168.1.2

# ipchains -L
REJECT tcp -y---- anywhere anywhere any -> nfs
REJECT udp -y---- anywhere anywhere any -> nfs

What should I do with it?
 
Old 10-18-2002, 08:16 PM   #6
ychimin2000
LQ Newbie
 
Registered: Oct 2002
Location: China
Posts: 6

Original Poster
Rep: Reputation: 0
This problem has been solved by turning off firewall on that
system "/etc/init.d/ipchains stop".
 
  


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 client need portmap? shanenin Linux - Networking 1 10-15-2004 03:34 PM
Suspicious portmap/nfs messages on logout scottman Linux - Security 3 08-27-2004 06:10 PM
NFS Portmap: RPC: Program not registered fibbi Linux - Software 2 08-12-2004 12:40 AM
NFS/portmap phishman3579 Slackware 1 09-30-2003 08:46 PM
portmap and nfs daemons jonfa Linux - Networking 0 09-10-2001 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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