LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack 12.1 NFS server broken?? (https://www.linuxquestions.org/questions/slackware-14/slack-12-1-nfs-server-broken-647915/)

wevl 06-08-2008 11:46 PM

Slack 12.1 NFS server broken??
 
I am thinking that the NFS server in 12.1 is broken.

Initially, rpc.portmap and rpc.statd are running. Of course when I try to
mount my Slack 12.1 box (Slack_26) on another machine, I get a response like:
mount: RPC: Program not registered

If I manually start rpc.mountd, "ps aux | grep rpc" shows that it is now running, but attempting again to mount the 12.1 box results in:
mount: slack_26:/ failed, reason given by server: Permission denied

My /etc/exports is the same as I have used for years:
/etc/exports on slack_26
# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.
/ *.vlcs.net

Both machines have each other in /etc/hosts.

/etc/hosts.deny and /etc/hosts.allow are empty - as I have always done.

Is anyone else able to NFS mount a Slack 12.1 machine?

Wayne

mRgOBLIN 06-09-2008 12:14 AM

Yes works with no problems here.

What does `rpcinfo -p` show?

Did you chmod +x and start both rc.rpc and rc.nfsd?

disturbed1 06-09-2008 12:20 AM

Works fine here :)

Be sure to chmod +x rc.nfsd, and start both rc.nfsd and rc.rpc. I happen to have both nfsd and rpc ran at start because all of our machines both mount and serve nfs shares.

Your exports looks strange to me. Maybe I'm reading it wrong ;) You're exporting your entire / directory to hosts *.vlcs.net, with no options specified? From your posting, there doesn't appear to be a space between / and *.vlcs.net. You can manually run
Code:

/etc/rc.d/rc.nfsd restart
and see if any errors are given on your nfs server.

mRgOBLIN types faster than I :)

wevl 06-09-2008 01:25 PM

Problem solved: Thanks.

You guys were right on it. Apparently Slack 12.1 installer does not mark rc.nfsd even if nfs or rpc (whichever it is) is selected in the system configuration portion of installation, while earlier Slacks that I have used did. I have never had to manually make rc.nfsd executable before.

I also got sloppy. After the first installation didn't work, wiped the disk and reinstalled to make sure that I selected rpc or nfs (whichever it is) in system configuration, but this time I forgot to include (rw) options in my /etc/exports.

My /etc/exports does have spaces or a tab between / *.vlcs.net, but when copying from emacs into the posting, the tab or spaces didn't make it.

Thanks again for your most excellent help.

Wayne

onebuck 06-09-2008 09:37 PM

Hi,

During the install you are given the opportunity to enable services. You either do it there or 'chmod +X' the service(s) you desire after the installation.

Plus you could always run 'pkgtool' to rerun the desired script.


All times are GMT -5. The time now is 12:54 PM.