LinuxQuestions.org
Help answer threads with 0 replies.
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 06-08-2007, 04:56 PM   #1
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Rep: Reputation: 15
nfs dont want to work


My server is a Fedora core 6 and my client a suse 10.2

On the server I edited /etc/exports like this:

Quote:
/var/www/html 192.168.0.138(rw,sync,all_squash,anonuid=500,anongid=500)
After I did :

exportfs-a
service nfs restart
service network restart

On the client I did:

Quote:
mount -t nfs 192.168.0.100:/var/www/html /home/stephane/web2
But I always got these error:

Quote:
mount server reported tpc not available,falling back to udp.
mount: RPC: Program not registred
I searched a lot on google so I configured :

hosts.allow:

Quote:
portmap:192.168.0.138
lockd:192.168.0.138
mountd:192.168.0.138
rquotad:192.168.0.138
statd:192.168.0.138
hosts.deny:
Quote:
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
I opened these port:
Quote:
111:tcp, 111:udp, 2049:tcp, 2049:udp, 4001:tcp, 4001:udp, 4002:tcp, 4002:udp, 4003:tcp, 4003:udp, 4004:tcp, 4004:udp
Like explained in this post:

http://www.linuxquestions.org/questi...d.php?t=294069

I did :
Quote:
1. Create the file "/etc/sysconfig/nfs" and add the following contents:

STATD_PORT=4001
LOCKD_TCPPORT=4002
LOCKD_UDPPORT=4002
MOUNTD_PORT=4003

2. Append the following to the file "/etc/services":

rquotad 4004/tcp # rpc.rquotad tcp port
rquotad 4004/udp # rpc.rquotad udp port

3. Restart the nfs services:

/etc/init.d/nfs restart
/etc/init.d/nfslock restart
If I do rpcinfo -p I got:

Quote:
program no_version protocole no_port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100021 1 udp 4002 nlockmgr
100021 3 udp 4002 nlockmgr
100021 4 udp 4002 nlockmgr
100021 1 tcp 4002 nlockmgr
100021 3 tcp 4002 nlockmgr
100021 4 tcp 4002 nlockmgr
100011 1 udp 4004 rquotad
100011 2 udp 4004 rquotad
100011 1 tcp 4004 rquotad
100011 2 tcp 4004 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 4003 mountd
100005 1 tcp 4003 mountd
100005 2 udp 4003 mountd
100005 2 tcp 4003 mountd
100005 3 udp 4003 mountd
100005 3 tcp 4003 mountd
100024 1 udp 4001 status
100024 1 tcp 4001 status
Its dont work I always got :

Quote:
mount server reported tpc not available,falling back to udp.
mount: RPC: Program not registred
Can you help me please!!!

Thanks a lot!!!
 
Old 06-08-2007, 06:27 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
portmap is essencial to nfs to work.
Is portmap running ?
 
Old 06-08-2007, 07:23 PM   #3
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
Portmap is runnig

Yes, Portmap is runnig
 
Old 06-09-2007, 10:31 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
like in the thread you mentioned, if you disable the firewall, did you got the nfs mount to work ?
And just for testing, try to disable SELinux too.
(SELINUX=disabled in /etc/selinux/config)

Last edited by marozsas; 06-09-2007 at 10:32 AM.
 
Old 06-09-2007, 10:57 PM   #5
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
Its dont work

Yes I tried it.

I disabled the firewall and its dont work.

Thanks!

Any other idea?
 
Old 06-10-2007, 12:22 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
What do you get if you do:

rpcinfo -p <server IP>

from the client machine?
 
Old 06-10-2007, 07:32 AM   #7
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
No remote programs registered.

If I do on the :

Quote:
rpcinfo -p 192.168.0.100
I got:

Quote:
No remote programs registered.

Last edited by stefane321; 06-10-2007 at 07:38 AM.
 
Old 06-10-2007, 07:55 AM   #8
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Hey, I could be wrong, but the service nfs is the client. On the server the right service is nfs-server or something like that. Check. I don't have a working nfs server here at home, but I believe you didn't start the right service on server.

Just check the right name of nfs server. Take a look at /etc/init.d for scripts that have nfs on name. I just remembered another related one: nfs-lock, which is need in the server side.

Quote:
Originally Posted by stefane321

After I did :

exportfs-a
service nfs restart
service network restart
 
Old 06-10-2007, 08:22 AM   #9
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
searching a little bit on my home machine (a Fedora 7) looks like there is no a standalone nfs server. Instead, nfs server is built on kernel, and there is no a /etc/init.d/nfs-server script or whatever on this machine.

I don't know if it is the same in FC6.

At the work, my nfs server is running on an opensuse 10.2, so it wont help anyway.

..and it is strange rpcinfo tells there is no programs registerd on server. Are you sure portmap is running on server ?

POST EDIT: Never mind, I checked in F7 and the nfs server is /etc/init.d/nfs. Probably is the same in FC6.
But now, who is the nfs client ??? It is kernel based ?

Last edited by marozsas; 06-10-2007 at 02:13 PM.
 
Old 06-11-2007, 01:56 PM   #10
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
ps -aux

If I do on the server :

ps -aux

I got 8 nfsd process is it normal?

Quote:
1980 0.0 0.0 0 0 ? S< 14:40 0:00 [nfsd4]
root 1981 0.0 0.0 0 0 ? S 14:40 0:00 [nfsd]
root 1982 0.0 0.0 0 0 ? S 14:40 0:00 [nfsd]
root 1983 0.0 0.0 0 0 ? S 14:40 0:00 [nfsd]
root 1984 0.0 0.0 0 0 ? S 14:40 0:00 [nfsd]
root 1985 0.0 0.0 0 0 ? S 14:40 0:00 [nfsd]
root 1986 0.0 0.0 0 0 ? S 14:40 0:00 [lockd]
root 1987 0.0 0.0 0 0 ? S< 14:40 0:00 [rpciod/0]
root 1988 0.0 0.0 0 0 ? S 14:40 0:00 [nfsd]
root 1989 0.0 0.0 0 0 ? S 14:40 0:00 [nfsd]
root 1990 0.0 0.0 0 0 ? S 14:40 0:00 [nfsd]
 
Old 06-11-2007, 02:43 PM   #11
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
I fixed my problem

Sorry for everybody,

My bug was stupid !

I did a mistake in the hosts.allow file I entered a wrong ip address.
 
  


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
NFS doesn't work work well with mounted NTFS volumes? StevenO Linux - Networking 6 02-13-2006 10:54 AM
CD drives dont work Riichard Linux - Newbie 4 09-15-2003 06:49 AM
mandrake and redhat dont nfs hotrodowner Linux - Networking 1 06-04-2003 09:09 PM
Things dont work when you dont understand withoutaclue Linux - Newbie 3 03-12-2003 09:51 AM
Modem Dont Work drum1975 Linux - Software 5 02-19-2002 07:58 AM

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

All times are GMT -5. The time now is 05:30 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