LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices



Reply
 
Search this Thread
Old 05-04-2007, 12:29 AM   #1
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Rep: Reputation: 16
nfs install fails manual mounting remote share


I have installed Slackware using NFS previously but now I can't. The nfs server machine which I used successfully before, has the following config files:

/etc/exports:
Code:
/mnt/cdrom 192.168.1.0/24(ro,no_subtree_check)
/etc/hosts.allow:
Code:
portmap: 192.168.1.0/24
rquotad: 192.168.1.1 , 192.168.1.2
mountd: 192.168.1.1 , 192.168.1.2
ps -A shows that nfsd,portmap,statd,quotas, and lockd are running

running exportfs command reveals:

Code:
/mnt/cdrom    192.168.1.0/24
I am booting nfs client from slackware 11 bare.i,install.1,install.2 I then
load pcmcia.dsk and network.dsk which gets my 3com nic up and running. I can
then run:

Code:
ifconfig eth0 192.168.1.2 up
and ping my router and the nfs server succesfully.

I then run /sbin/rpc.portmap then mkdir /mount
mount 192.168.1.101:/mnt/cdrom /mount fails with the following error:

Code:
mount: RPC: Program not registered
A google search revealed that this could be due to rpc.portmap not running but ps -A shows that it is...:

Code:
ps -A |grep rpc
 2125 ?        00:00:00 rpc.portmap
 2134 ?        00:00:00 rpc.statd
 2137 ?        00:00:00 rpc.rquotad
 2140 ?        00:00:00 rpciod/0
 2150 ?        00:00:00 rpc.mountd
also the command rpcinfo -p on the server shows:

Code:
rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp    617  status
    100024    1   tcp    620  status
    100011    1   udp    619  rquotad
    100011    2   udp    619  rquotad
    100011    1   tcp    622  rquotad
    100011    2   tcp    622  rquotad
    100021    1   udp   1025  nlockmgr
    100021    3   udp   1025  nlockmgr
    100021    4   udp   1025  nlockmgr
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   tcp   4451  nlockmgr
    100021    3   tcp   4451  nlockmgr
    100021    4   tcp   4451  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100005    1   udp    630  mountd
    100005    1   tcp    633  mountd
    100005    2   udp    630  mountd
    100005    2   tcp    633  mountd
    100005    3   udp    630  mountd
    100005    3   tcp    633  mountd

How can I further troubleshoot this?
/var/log/messages didn't have any usefull info.

I use shorewall firewall but I have disabled it with chmod -x /etc/rc.d/rc.firewall.
 
Old 05-04-2007, 12:32 AM   #2
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
I just checked /var/log/messages on the client and found the following:

Code:
auth.err portmap[692]: Cannot bind udp: address already in use
 
Old 05-04-2007, 12:38 AM   #3
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Rep: Reputation: 30
I'm not sure on that UDP error, but a couple things:

IF we're talking NFSv4,
then /etc/exports on the server should contain "fsid=0" or simliar in the options.
hosts.allow on the server should reference nfsd, and nfsd should be running, i.e.: nfsd: 192.168.1.
on the client, there should be some type of nfs service that runs not only the rpc.* that you show, but rpc.idmapd as well.

IF we're not talking NFSv4
you shouldn't be running rpc.* from the commandline, there should be an initscript or service that handles these and their PID files.

Hope this helps, I really have very little experience pre-NFSv4
 
Old 05-04-2007, 01:00 PM   #4
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
In the nfs howto under the troubleshooting section
http://nfs.sourceforge.net/nfs-howto/ar01s07.html

It indicates that the error I receive means that the client does not detect NFS running on the server.

It says to check the server with rpcinfo -p which i did(see above)
and also to run rpcinfo -p from the client. Well the laptop client
booted from bare.i does not have that command so I copied it onto a floppy and when I run it I get:

Code:
rpcinfo -p

Program  Vers   Proto    Port
100000     2      udp       111
100000     2      tcp       111
and192.168.0.102 is the ip of nfs server)
Code:
rpcinfo -p 192.168.0.102

No remote programs registered
The troubleshooting section says to check your hosts.allow and exports files which I did and then decided to change 192.168.0.0/24 to the ip of the client. Bingo that did it.
 
  


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
mounting nfs share jon23d Slackware 4 06-25-2006 04:19 AM
Mounting an NFS share w/wireless cwwilson721 Slackware 1 03-31-2006 10:04 PM
Mounting NFS Share To Another Machine mijohnst Linux - Networking 8 06-24-2005 11:30 AM
mounting a NFS share using samba phatboyz Linux - Software 2 03-30-2004 01:26 PM
nfs share is not mounting automatically pawlub Linux - General 1 01-03-2004 07:21 PM


All times are GMT -5. The time now is 01:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration