LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   NFSd fails to start due to RPC? (https://www.linuxquestions.org/questions/linux-software-2/nfsd-fails-to-start-due-to-rpc-224200/)

TexasDex 08-30-2004 03:29 AM

NFSd fails to start due to RPC?
 
My network has been running Samba as it's primary file-service ever since I first started using Linux with my RedHat 8.0 server. I continued using Samba even after I switched my computer and my brother's computer to SuSE 9.1, but it has given us both problems with file permissions and mounting.

I would like to start using NFS on the server, but the service refuses to start:
Code:

[root@Meg root]# /etc/init.d/nfs start
Starting NFS services:                                    [  OK  ]
Starting NFS quotas: Cannot register service:
  RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
                                                          [FAILED]
Starting NFS daemon:
  (at this point it does nothing for several minutes,
  and I have to press Ctrl+C to stop it)

I don't use filesystem quotas, and I don't know of any particular setting that I changed since I installed RedHat 8.0. What is happening here? Is there some problem with my configuration? Or should I just try to re-install the whole NFSd (or a newer version)?

coolamit78 08-30-2004 03:51 AM

Hi TexasDex,

Each time that you start the NFS service, a dynamic port number is assigned to nfsd. This assignment is made through the 'Portmapper' daemon. So, before starting NFS, you need to switch on the portmapper service...In Red Hat 8/9, you can do that with

service portmap start

and If you want portmapper to start everytime at startup then as root

chkconfig portmap on

Now once portmapper gets running, you can start your NFS server

service nfs start

To start NFS at system startup, as root, give the command -

chkconfig nfs on

Please note that for SUSE, you may need to use

/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfs start

Hope that helps..

--amit

TexasDex 08-30-2004 07:26 AM

Thank you.

NFS is up. Now how do I use it?

I've gotten as far as exporting and mounting a directory, but I don't have the permissions working. It almost seems like you need to have the exact same UID on both computers. How do I fix that without having to change the UIDs on all of the computers to match eachother??

skeeter4872 01-23-2005 11:42 PM

Can't get NFS to start
 
I am having exactly the same trouble that TexasDex was having. Unfortunately the fix outlined below is not working for me. I would really appreciate some assistance.

When I enter:

service portmap start - I get:
bash: service: command not found

When I enter:
chkconfig portmap on - I get:
bash: chkconfig: command not found

Because I cannot get portmapper running, I can't start my NFS server.

Any ideas?

pjz 09-20-2008 10:02 PM

Try this...
 
Hi skeeter-

You should check your /etc/init.d directory for the portmap script. If you don't have a portmap script, nothing is going to happen when you call out the portmap start. I'm running FC9 and I looked on a RH9 system, lifted the portmap script whole, and got past this problem.

cheers
pjz

indranil_camellia 03-18-2010 03:48 AM

[QUOTE=coolamit78;1142734]Hi TexasDex,


i have tried the command
service nfs start
but the nfs dawmon has failed.
help

i am running RHEL 5 but the above error is coming and also the rpcbind service it not on the system

linest 03-18-2010 08:51 PM

Quote:

Originally Posted by TexasDex (Post 1142944)
I've gotten as far as exporting and mounting a directory, but I don't have the permissions working. It almost seems like you need to have the exact same UID on both computers.

Yes, that is exactly correct.

Quote:

Originally Posted by TexasDex (Post 1142944)
How do I fix that without having to change the UIDs on all of the computers to match eachother??

You do it by changing the UIDs on all the computers to match each other. Sorry, that's how it's done.

If you're environment is going to grow, set up an LDAP server and centralize your account information. Having the same password everywhere is pretty useful.

indranil_camellia 03-23-2010 01:36 AM

i am very much helpful with the suggestion regarding nfs from you
but i am having a problem with rpcbind
it says rpcbind package not installed i am using rhel 9
can you help me solve this problem.

Sayan Acharjee 03-23-2010 01:42 AM

Quote:

Originally Posted by indranil_camellia (Post 3908519)
i am very much helpful with the suggestion regarding nfs from you
but i am having a problem with rpcbind
it says rpcbind package not installed i am using rhel 9
can you help me solve this problem.

Then install rpcbind.
http://rpm.pbone.net/index.php3

chrism01 03-23-2010 01:54 AM

@indranil_camellia: Thread started in 2004, had replies in 2005, 2008.
You should really have started a brand new one; try not to revive yrs dead threads.

Also, no such thing as RHEL 9; if you mean RH 9 (codename Shrike) that's completely obsolete; hasn't been updated (inc security)i in years. Do yourself and us a favour and get a current distro eg Centos (free version of RHEL) currently v5.4
http://en.wikipedia.org/wiki/Red_Hat_Linux
http://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux
http://en.wikipedia.org/wiki/CentOS
http://www.linuxtopia.org/online_boo...ion/index.html

Sayan Acharjee 03-23-2010 02:02 AM

I was also wondering about this RHEL9 :D


All times are GMT -5. The time now is 09:10 PM.