LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-11-2003, 02:09 PM   #1
DrLazardo
LQ Newbie
 
Registered: May 2003
Posts: 12

Rep: Reputation: 0
Slackware 8.1 NFS Client Help


I am trying to set up an old laptop to access my main desktop's NFS shares. I believe the host is working correctly, but the client (running Slackware 8.1) is returning an error when attempting to mount the directories:

> mount -t nfs [ip address]:/exported/dir /local/mnt/dir

mount: RPC: Port mapper failure - RPC: Unable to receive

> rpcinfo -p

program vers proto port
100000 2 tcp 111 portmapper
100000 2 tcp 111 portmapper

I've run:
> /usr/sbin/rpc.nfsd
> /usr/sbin/rpc.mountd

to add instances of nfs, nlockmgr, and mountd to the above rpcinfo command, but still receive the same error. NFS doesn't seem to be starting even though /etc/rc.d/rc.nfsd is present and executable, and /etc/rc.d/rc.inet2 has the appropriate lines uncommented. The nfs-utils and portmap package are both installed. Can anyone help me solve this problem?
 
Old 05-11-2003, 02:12 PM   #2
DrLazardo
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
lsmod reveals nfsd module has been loaded
 
Old 05-11-2003, 03:43 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
And you've added the laptop to your exports file? And have restarted the NFS daemons after eidting this on the server?
 
Old 05-11-2003, 04:13 PM   #4
DrLazardo
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Yep...

> showmount -e

/exported/dir [laptop ip address]

I added nfs to my startup scripts and have rebooted numerous times since. The server seems to come up ok.
 
Old 05-12-2003, 08:18 AM   #5
DrLazardo
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
bump...

can no one help me?
 
Old 05-12-2003, 09:22 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
If you can post your exports file? Also you said you added your own NFS startup scripts, can you post those or are you using the existing startup scripts that Slack will usually have already in /etc/rc.d ?
 
Old 05-12-2003, 09:37 AM   #7
DrLazardo
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
exports file:

/exported/dir [laptop ip](rw,sync)

I was speaking about the server when I said I added NFS to the startup. The server is a Red Hat 9.0 machine and I added NFS to the startup services using their GUI tool. When the machine reboots I can see NFS starting up.

As for the Slackware client startup (using existing scripts), rc.inet2 and rc.nfsd are both executable and I made no changes. After a reboot a rpcinfo -p command only shows portmapper running.
 
Old 05-12-2003, 11:04 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Try editing your exports file without the sync and only having maybe (rw).
 
Old 05-12-2003, 11:13 AM   #9
DrLazardo
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
That didn't do it. I'm almost positive that the client machine isn't starting all the necessary daemons/services and that is why it is unable to receive. What services MUST be shown when running an rpcinfo -p command? How can I start/restart all the necessary daemons/services? I have nfs-utils and portmap packages installed, am I missing any?
 
Old 05-12-2003, 11:17 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
If the client is running Slackware, look in your /etc/rc.d directory. There you will find your startup scripts. Make sure you have the NFS client specific uncommented in your rc.nfsd, rc.inet2 and then whatever runlevel you boot into.. say for instance rc.M if you boot into runlevel 3, etc.
 
Old 05-12-2003, 11:46 AM   #11
DrLazardo
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
After taking a closer look at the Slackware startup scripts I noticed that NFS would not load at startup without an entry in the /etc/exports file. I added an entry and now NFS comes up completely at startup.

Starting NFS Services:
/usr/sbin/exportfs -r
/usr/sbin/rpc.rquotad
/usr/sbin/nfsd 8
/usr/sbin/mountd --no-nfs-version 3
/usr/sbin/rpc.lockd
/usr/sbin/rpc.statd

rpcinfo -p command now shows running instances of portmapper, rquotad, nfs, nlockmgr, mountd, and status

Unfortunately, I am still receiving the same "Unable to receive error" when I try:

mount -t nfs [serverip]:/remote/dir /local/dir

I am able to ping both machines on the network, but not connect via NFS. I still think the problem is the client, but I can't figure out what is missing.

Last edited by DrLazardo; 05-12-2003 at 11:52 AM.
 
Old 05-13-2003, 08:16 AM   #12
DrLazardo
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
?
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM

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

All times are GMT -5. The time now is 12:36 AM.

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