Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up a NFS share but I cant start NFS service:

$ service nfs start

Starting NFS services:                                     [  OK  ]
Starting NFS daemon:                                       [FAILED]

$ service nfs status

rpc.mountd is stopped
nfsd is stopped

Portmap is running:

$service portmap status

portmap (pid 6522) is running...

Exports contents (the real exports file has valid IP address instead of xxx.)

$ cat /etc/exports


/var/log/messages output after service nfs start

Apr 14 13:24:18 s15315044 nfsd[2483]: nfssvc: Function not implemented

As requested:

$ grep NFS /boot/config*

/boot/config- CONFIG_NFSD is not set
/boot/config- CONFIG_NFSD is not set

I'ts a dedicated server: CentOS release 5.7

$ cat /proc/version

Linux version (root@rpmbuildd-amd64) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Oct 28 06:03:38 EDT 2008

Any ideas?

share|improve this question
Run LANG=C service nfs start and post the real output. Also, check your logs (/var/log/syslog and/or /var/log/messages) – dawud Apr 14 '13 at 11:06
Updated with real output and added messages output – Peter Apr 14 '13 at 11:29
Please add OS specifics to your question (distro, version, kernel version, grep NFS /boot/config*, physical/virtual, VPS, ...) – dawud Apr 14 '13 at 11:34
Ok, done. It's a physical dedicated server. – Peter Apr 14 '13 at 11:40
is this a custom kernel? – dawud Apr 14 '13 at 11:46
up vote 1 down vote accepted

Apparently, your kernel does not have the NFSD bits activated. It can be an NFS client, but not an NFS server.

/boot/config- CONFIG_NFSD is not set

You should recompile the kernel to have this enabled.

share|improve this answer
Instead of recompiling the kernel, do you believe that a yum upgrade kernel-smp would help? – Peter Apr 14 '13 at 11:55
Trying can do no harm – dawud Apr 14 '13 at 12:04
I've accepted the answer but I'm not going to deal with kernel recompilation, instead I'm using rsync. It seems to be a better option to transfer files from server to server. – Peter Apr 14 '13 at 12:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.