LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-08-2004, 07:45 PM   #1
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Can't get NFS working properly


Here is the setup. I have 2 machines: slacktop - desktop/server, blueberry - laptop, both connected to a dlink router. ping and ssh work fine between both machines.

NFS starts fine on slacktop:
root@slackbox:/etc/rc.d# ./rc.nfsd restart
Starting NFS services:
/usr/sbin/exportfs -r
/usr/sbin/rpc.rquotad
/usr/sbin/rpc.nfsd 8
/usr/sbin/rpc.mountd
/usr/sbin/rpc.lockd
/usr/sbin/rpc.statd

Now, here is what happens when I try to access a file from blueberry:
[root@blueberry root]# mount -t nfs slackbox:/data /data
mount: RPC: Timed out

Here is my hosts.allow and /etc/export file from slacktop:
root@slackbox:/etc/rc.d# cat /etc/exports
/data blueberry.dabasement.org*(sync,rw)

root@slackbox:/etc/rc.d# cat /etc/hosts.allow
ALL: .dabasement.org
(used to be ALL: blueberry.dabasement.org and didn't work)

Here is the relevant log entries from /log/messages:
Feb 8 20:27:34 slackbox rpc.statd[3258]: Caught signal 15, un-registering and exiting.
Feb 8 20:27:34 slackbox rpc.mountd: Caught signal 15, un-registering and exiting.
Feb 8 20:27:35 slackbox kernel: nfsd: last server has exited
Feb 8 20:27:35 slackbox kernel: nfsd: unexporting all filesystems
Feb 8 20:27:36 slackbox rpc.statd[3308]: Version 1.0.6 Starting
Feb 8 20:27:36 slackbox rpc.statd[3308]: statd running as root. chown /var/lib/nfs/sm to choose different user
Feb 8 20:27:42 slackbox rpc.mountd: authenticated mount request from blueberry.dabasement.org:997 for /data (/data)
Feb 8 20:28:00 slackbox last message repeated 6 times

and /log/syslog
Feb 8 20:27:34 slackbox rpc.statd[3258]: Caught signal 15, un-registering and exiting.
Feb 8 20:27:34 slackbox rpc.mountd: Caught signal 15, un-registering and exiting.
Feb 8 20:27:35 slackbox kernel: nfsd: last server has exited
Feb 8 20:27:35 slackbox kernel: nfsd: unexporting all filesystems

I have been going through all this for a few hours and my head is spinning so if there is any needed info I left out, I will gladly post it up on request.

For some reason, I have been thinking I might not have all the necessary services running so here is what I do have on each box: ( I tried to snip out most of the irrelevant stuff)

root@slackbox:/home/scruff# ps ax
PID TTY STAT TIME COMMAND
1 ? S 0:04 init [3]
2 ? SW 0:00 [keventd]
3 ? SWN 0:00 [ksoftirqd_CPU0]
4 ? SW 0:00 [kswapd]
5 ? SW 0:00 [bdflush]
6 ? SW 0:00 [kupdated]
7 ? SW 0:00 [kreiserfsd]
168 ? SW 0:00 [khubd]
1666 ? S 0:00 /usr/sbin/syslogd
1669 ? S 0:00 /usr/sbin/klogd -c 3 -x
1672 ? S 0:00 /usr/sbin/inetd
1675 ? S 0:00 /usr/sbin/sshd
1687 ? S 0:00 /usr/sbin/atd -b 15 -l 1
1776 ? S 0:00 /usr/bin/esd -terminate -nobeeps -as 2 -spawnfd 57
1778 ? S 0:00 Eterm
1864 pts/0 S 0:00 bash
2159 ? S 0:00 Eterm
2160 pts/3 S 0:00 bash
2245 ? S 0:00 rpc.portmap
2324 ? S 0:00 /usr/sbin/rpc.rquotad
3165 ? S 0:00 /usr/sbin/rpc.rquotad
3202 ? S 0:00 /usr/sbin/rpc.rquotad
3242 ? S 0:00 /usr/sbin/rpc.rquotad
3292 ? S 0:00 /usr/sbin/rpc.rquotad
3294 ? SW 0:00 [nfsd]
3295 ? SW 0:00 [nfsd]
3296 ? SW 0:00 [lockd]
3297 ? SW 0:00 [rpciod]
3298 ? SW 0:00 [nfsd]
3299 ? SW 0:00 [nfsd]
3300 ? SW 0:00 [nfsd]
3301 ? SW 0:00 [nfsd]
3302 ? SW 0:00 [nfsd]
3303 ? SW 0:00 [nfsd]
3305 ? S 0:00 /usr/sbin/rpc.mountd
3308 ? S 0:00 /usr/sbin/rpc.statd
3311 ? S 0:00 Eterm
3312 pts/2 S 0:00 bash
3315 pts/2 S 0:00 ssh blueberry
3359 pts/1 R 0:00 ps ax


[root@blueberry root]# ps ax
PID TTY STAT TIME COMMAND
1 ? S 0:04 init
2 ? SW 0:00 [keventd]
3 ? SWN 0:00 [ksoftirqd_CPU0]
4 ? SW 0:00 [kswapd]
5 ? SW 0:00 [bdflush]
6 ? SW 0:00 [kupdated]
7 ? SW 0:00 [khubd]
11 ? SW 0:00 [kjournald]
457 ? S 0:00 syslogd -m 0
461 ? S 0:00 klogd -x
472 ? S 0:00 portmap
491 ? S 0:00 rpc.statd
620 ? S 0:05 pmud
631 ? S 0:01 /usr/sbin/sshd
643 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
659 ? SL 0:00 ntpd -U ntp
710 ? S 0:00 xfs -droppriv -daemon
728 ? S 0:00 /usr/sbin/atd
1306 ? S 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid -c
1494 ? S 0:00 rpc.rquotad
1498 ? SW 0:00 [nfsd]
1499 ? SW 0:00 [nfsd]
1500 ? SW 0:00 [nfsd]
1501 ? SW 0:00 [nfsd]
1502 ? SW 0:00 [nfsd]
1503 ? SW 0:00 [nfsd]
1504 ? SW 0:00 [nfsd]
1505 ? SW 0:00 [nfsd]
1506 ? SW 0:00 [lockd]
1507 ? SW 0:00 [rpciod]
1513 ? S 0:00 rpc.mountd
1531 ? S 0:00 rpc.statd
1669 ? S 0:00 /usr/sbin/sshd

any reason why nfsd is running 7 processes?

Thanks guys.
 
Old 02-08-2004, 08:11 PM   #2
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
I had similar problems until I ran nsfd on both machines, then it works fine.
Supposedly you don't need to have the nfsd running on the client machine but that wasn't the case for me.

Good Luck
Alan
 
Old 02-08-2004, 08:13 PM   #3
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Original Poster
Rep: Reputation: 30
I thought the same thing, but it is running on both machines. It is running 7x on both machines, lol.
 
Old 02-08-2004, 08:38 PM   #4
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
Can you do a "rpcinfo -f IP address of other machine"?

Alan
 
Old 02-08-2004, 08:50 PM   #5
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Original Poster
Rep: Reputation: 30
Are you sure you meant '-f ' ?

root@slackbox:/etc/rc.d# rpcinfo -f 192.168.0.103
rpcinfo: invalid option -- f
Usage: rpcinfo [ -n portnum ] -u host prognum [ versnum ]
rpcinfo [ -n portnum ] -t host prognum [ versnum ]
rpcinfo -p [ host ]
rpcinfo -b prognum versnum
rpcinfo -d prognum versnum

rpcinfo -p 192.168.0.103 gives
root@slackbox:/etc/rc.d# rpcinfo -p 192.168.0.103
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

That was from the desktop to the laptop.

Doing it from the laptop TO the desktop works fine and produces:
[root@blueberry root]# rpcinfo -p 192.168.0.101
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 763 rquotad
100011 2 udp 763 rquotad
100011 1 tcp 766 rquotad
100011 2 tcp 766 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32811 nlockmgr
100021 3 udp 32811 nlockmgr
100021 4 udp 32811 nlockmgr
100005 1 udp 775 mountd
100005 1 tcp 778 mountd
100005 2 udp 775 mountd
100005 2 tcp 778 mountd
100005 3 udp 775 mountd
100005 3 tcp 778 mountd
100024 1 udp 781 status
100024 1 tcp 784 status


So, what is blocking the desktop?

Last edited by Scruff; 02-08-2004 at 09:11 PM.
 
Old 02-08-2004, 09:05 PM   #6
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Original Poster
Rep: Reputation: 30
<oops>

Last edited by Scruff; 02-08-2004 at 09:10 PM.
 
Old 02-08-2004, 09:21 PM   #7
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
But you can ping the other box OK?

Alan
 
Old 02-08-2004, 09:23 PM   #8
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Original Poster
Rep: Reputation: 30
Yea. I can even ssh from/to either box.
 
Old 02-08-2004, 10:55 PM   #9
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Original Poster
Rep: Reputation: 30
Figured it out. It was as simple as disabling iptables on the client.

Now I have to figure out how to configure iptables to allow portmap access....
 
  


Reply


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
Superkaramba not working properly mickyg Linux - Software 5 11-07-2005 10:45 PM
opengl is not working properly PinRojas Debian 7 07-05-2005 12:19 PM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 10:46 AM
ACL not working properly alpesh Linux From Scratch 0 07-26-2003 02:02 AM
RPM not working properly kprocter Linux - General 3 03-25-2003 06:13 AM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
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