LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-13-2011, 05:46 AM   #1
pacowe
LQ Newbie
 
Registered: Mar 2011
Location: Madrid, Spain
Distribution: debian, redhat, slackware, aix...
Posts: 9

Rep: Reputation: Disabled
NFS problem, no tcp connections port 2049.


Hello,
I'm a new forum user.
I explain my problem:

- Server with Slackware 10.1.0 no have tcp connection to the port 2049. And I need that this server have tcp connections.

- The rpcinfo out is.

# rpcinfo -p localhost
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 660 rquotad
100011 2 udp 660 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 36868 nlockmgr
100021 3 udp 36868 nlockmgr
100021 4 udp 36868 nlockmgr
100005 1 udp 665 mountd
100005 1 tcp 668 mountd
100005 2 udp 665 mountd
100005 2 tcp 668 mountd
100005 3 udp 665 mountd
100005 3 tcp 668 mountd
100002 3 udp 41395 rusersd
100002 2 udp 41395 rusersd
- The kernel version for this server is linux-2.4.29.

- The file /etc/rpc contain is:

#ident "@(#)rpc 1.11 95/07/14 SMI" /* SVr4.0 1.2 */
#
# rpc
#
portmapper 100000 portmap sunrpc rpcbind
rstatd 100001 rstat rup perfmeter rstat_svc
rusersd 100002 rusers
nfs 100003 nfsprog
ypserv 100004 ypprog
mountd 100005 mount showmount
ypbind 100007
walld 100008 rwall shutdown
yppasswdd 100009 yppasswd
etherstatd 100010 etherstat
rquotad 100011 rquotaprog quota rquota
sprayd 100012 spray
3270_mapper 100013
rje_mapper 100014
selection_svc 100015 selnsvc
database_svc 100016
rexd 100017 rex
alis 100018
sched 100019
llockmgr 100020
nlockmgr 100021
x25.inr 100022
statmon 100023
status 100024
bootparam 100026
ypupdated 100028 ypupdate
keyserv 100029 keyserver

- And the file /etc/service contain about nfs is:
# cat /etc/services | grep nfs
nfsd-status 1110/tcp #Cluster status info
nfsd-keepalive 1110/udp #Client status info
shiva_confsrvr 1651/tcp
shiva_confsrvr 1651/udp
nfsd 2049/tcp nfs # NFS server daemon
nfsd 2049/udp nfs # NFS server daemon


Can anybody help me?, please.
Thanks.
 
Old 04-15-2011, 03:41 AM   #2
sibe
Member
 
Registered: Apr 2011
Location: Jakarta, Indonesia
Distribution: Fedora, CentOS
Posts: 122

Rep: Reputation: 21
Hi

have you start the NFS services?


----
sibe
 
Old 04-15-2011, 03:48 AM   #3
pacowe
LQ Newbie
 
Registered: Mar 2011
Location: Madrid, Spain
Distribution: debian, redhat, slackware, aix...
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hello sibe,

Thanks for your reply.

Yes, the services are runing:

# ps aux | grep -e portmap -e rpc
bin 6416 0.0 0.0 1600 664 ? Ss Apr12 0:16 /sbin/rpc.portmap
root 551 0.0 0.0 1504 580 ? Ss 10:47 0:00 /usr/sbin/rpc.rquotad
root 556 0.0 0.0 1568 668 ? Ss 10:47 0:00 /usr/sbin/rpc.mountd
root 558 0.0 0.0 0 0 ? S 10:47 0:00 [rpciod]
nobody 560 0.0 0.0 1524 704 ? Ss 10:47 0:00 /usr/sbin/rpc.statd

# ps aux | grep nfsd
root 553 0.0 0.0 0 0 ? S 10:47 0:00 [nfsd]

Last edited by pacowe; 04-15-2011 at 03:51 AM. Reason: Missing data
 
Old 04-15-2011, 05:06 AM   #4
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by pacowe View Post
Hello sibe,

Thanks for your reply.

Yes, the services are runing:

# ps aux | grep -e portmap -e rpc
bin 6416 0.0 0.0 1600 664 ? Ss Apr12 0:16 /sbin/rpc.portmap
root 551 0.0 0.0 1504 580 ? Ss 10:47 0:00 /usr/sbin/rpc.rquotad
root 556 0.0 0.0 1568 668 ? Ss 10:47 0:00 /usr/sbin/rpc.mountd
root 558 0.0 0.0 0 0 ? S 10:47 0:00 [rpciod]
nobody 560 0.0 0.0 1524 704 ? Ss 10:47 0:00 /usr/sbin/rpc.statd

# ps aux | grep nfsd
root 553 0.0 0.0 0 0 ? S 10:47 0:00 [nfsd]
is your firewall allowing nfs traffic through?
 
Old 04-18-2011, 07:53 AM   #5
pacowe
LQ Newbie
 
Registered: Mar 2011
Location: Madrid, Spain
Distribution: debian, redhat, slackware, aix...
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hello,

The server have the Firewall desactivated.

With other software (for example apache) open this port (2049) and we have access to the server.

Thanks, and sorry for the lot of time for my reply
 
Old 04-19-2011, 02:24 AM   #6
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by pacowe View Post
Hello,

The server have the Firewall desactivated.

With other software (for example apache) open this port (2049) and we have access to the server.

Thanks, and sorry for the lot of time for my reply
Presumably, you are not able to mount a share from a remote server. Have you tried mounting a share from the local server?

You should probably explain exactly what you are trying to do, your original post is not all that detailed.
 
Old 04-19-2011, 03:12 AM   #7
pacowe
LQ Newbie
 
Registered: Mar 2011
Location: Madrid, Spain
Distribution: debian, redhat, slackware, aix...
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hello,

When I try mount in the local server with tcp, this said:

nfs server reported service unavailable: Address already in use

but the local server don't have any service in the tcp port 2049.
 
Old 04-19-2011, 05:22 AM   #8
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by pacowe View Post
Hello,

When I try mount in the local server with tcp, this said:

nfs server reported service unavailable: Address already in use

but the local server don't have any service in the tcp port 2049.
it sounds as if you've got something else running on port 2049.

have you tried checking with netstat?
Code:
netstat -anp
 
Old 04-19-2011, 06:45 AM   #9
pacowe
LQ Newbie
 
Registered: Mar 2011
Location: Madrid, Spain
Distribution: debian, redhat, slackware, aix...
Posts: 9

Original Poster
Rep: Reputation: Disabled
This is the out of command:


# netstat -anp | grep 2049
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
#
 
Old 04-19-2011, 08:25 AM   #10
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Arrow

Quote:
Originally Posted by pacowe View Post
This is the out of command:


# netstat -anp | grep 2049
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
#
It looks like your NFS daemon is not listening on TCP, which in all likelihood is the source of your problem, unless you have made changes to the nfs conf file (nfsmount.conf I think) so that everything goes over udp. (I missed this on your previous post, sorry)

I would check the nfs config file (/etc/nfsmount.conf in red hat, not sure in slackware) to make sure that everything is as it should be.

Have you tried restarting the nfs daemon?

output from one of my boxes:
Quote:
# netstat -anp | grep 2049
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
Quote:
cat /etc/services | grep nfs
nfs 2049/tcp nfsd shilp # Network File System
nfs 2049/udp nfsd shilp # Network File System
nfs 2049/sctp nfsd shilp # Network File System
netconfsoaphttp 832/tcp # NETCONF for SOAP over HTTPS
netconfsoaphttp 832/udp # NETCONF for SOAP over HTTPS
netconfsoapbeep 833/tcp # NETCONF for SOAP over BEEP
netconfsoapbeep 833/udp # NETCONF for SOAP over BEEP
nfsd-keepalive 1110/udp # Client status info
picknfs 1598/tcp # picknfs
picknfs 1598/udp # picknfs
shiva_confsrvr 1651/tcp # shiva_confsrvr
shiva_confsrvr 1651/udp # shiva_confsrvr
3d-nfsd 2323/tcp # 3d-nfsd
3d-nfsd 2323/udp # 3d-nfsd
mediacntrlnfsd 2363/tcp # Media Central NFSD
mediacntrlnfsd 2363/udp # Media Central NFSD
winfs 5009/tcp # Microsoft Windows Filesystem
winfs 5009/udp # Microsoft Windows Filesystem
nfsrdma 20049/tcp # Network File System (NFS) over RDMA
nfsrdma 20049/udp # Network File System (NFS) over RDMA
nfsrdma 20049/sctp # Network File System (NFS) over RDMA
 
Old 04-19-2011, 09:15 AM   #11
pacowe
LQ Newbie
 
Registered: Mar 2011
Location: Madrid, Spain
Distribution: debian, redhat, slackware, aix...
Posts: 9

Original Poster
Rep: Reputation: Disabled
Yes,

I restart daemon, i restart the service, and i restart the server and nothing.

Slackware has not the file /etc/nfsmount.conf.
 
Old 04-20-2011, 02:12 AM   #12
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
try to find the nfs config file using

find /etc -iname nfs*

Last edited by manyrootsofallevil; 04-20-2011 at 02:18 AM.
 
Old 04-20-2011, 02:44 AM   #13
pacowe
LQ Newbie
 
Registered: Mar 2011
Location: Madrid, Spain
Distribution: debian, redhat, slackware, aix...
Posts: 9

Original Poster
Rep: Reputation: Disabled
The out from last command is


# find /etc -iname *nfs*
/etc/rc.d/rc.nfsd
#

This is the service to restart nfsd service.
 
Old 04-20-2011, 03:58 AM   #14
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by pacowe View Post
The out from last command is


# find /etc -iname *nfs*
/etc/rc.d/rc.nfsd
#

This is the service to restart nfsd service.
I'm really not familiar with slackware so I don't know where it could be(config file for nfs) or what it's actually called. You could try searching on / rather than /etc. have you tried posting on a slackware forum?

Edit:

Reading something related, it would seem that there is nothing wrong with your setup. TCP for NFS is relatively new (take this with a pinch of salt though)

what's the output of :

exportfs -v

Last edited by manyrootsofallevil; 04-20-2011 at 04:32 AM.
 
Old 04-20-2011, 04:38 AM   #15
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
The args are actually included in the /etc/rc.d/rc.nfsd script and should be running tcp by default.
You need to also have /etc/rc.d/rc.rpc set executable to run at boot time if you intend to run as a server.

So perhaps

Code:
chmod +x /etc/rc.d/rc.rpc
/etc/rc.d/rc.rpc start
And I'd suggest posting Slackware issues in the Slackware forum =)
http://www.linuxquestions.org/questions/slackware-14/
 
  


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
Max num of concurrent tcp connections && tcp auto tune rosv Linux - Networking 3 02-04-2011 02:57 AM
port reuse problem :TCP socket sweetytweety Linux - Newbie 1 05-22-2008 04:05 AM
Booting opensuse10.2 diskless over pxe - nfs tcp problem? sniff SUSE / openSUSE 0 07-08-2007 05:25 AM
How to limit the number of TCP connections for a certain port? mussons Linux - Security 1 01-28-2004 06:27 AM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 08:24 AM

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

All times are GMT -5. The time now is 05:30 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
Open Source Consulting | Domain Registration