View Single Post
  #1  
Old 5th November 2009, 09:52
iniwidi iniwidi is offline
Junior Member
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default nfs server didnt listen port 2049

I have installed nfs4 in my Debian Server with kernel 2.6.18.8, my problem is port 2049 didnt LISTEN so the client nfs didnt connect to the server, here the information :

ns2:/srv# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100024 1 udp 33284 status
100024 1 tcp 39745 status
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 33325 nlockmgr
100021 3 udp 33325 nlockmgr
100021 4 udp 33325 nlockmgr
100005 1 udp 33326 mountd
100005 1 tcp 51781 mountd
100005 2 udp 33326 mountd
100005 2 tcp 51781 mountd
100005 3 udp 33326 mountd
100005 3 tcp 51781 mountd



At the above, it show that nfs is running ok

ns2:/srv# lsof -i:2049
it show nothing!
ns2:/srv# nmap localhost

Starting Nmap 4.62 ( http://nmap.org ) at 2009-11-05 07:43 UTC
Interesting ports on localhost (127.0.0.1):
Not shown: 1702 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
143/tcp open imap
443/tcp open https
953/tcp open rndc
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql



I try to connet port 2049 via telnet

ns2:/srv# telnet localhost 2049
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused



ns2:/srv# /etc/init.d/nfs-kernel-server restart
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsd mountd.



And the /var/log said that :

ns2:~# tail -f /var/log/messages
Nov 5 06:52:21 ns3 kernel: nfsd: last server has exited
Nov 5 06:52:21 ns3 kernel: nfsd: unexporting all filesystems



Please help me!
Reply With Quote
Sponsored Links