Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.