Nfs – CentOS 6: Can not start NFS

centos6nfs

I am unable to start the NFS service. When starting there is no error. But the services are stopt after it. No messages at all in /var/log/messages. Same happens to rpcbind serivce. Any idea what this could be? I also tried to disable iptables.

[root@server1 ~]# service nfs start
[root@server1 ~]# service nfs status
rpc.svcgssd is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

[root@server1 ~]# service rpcbind start
[root@server1 ~]# service rpcbind status
rpcbind is stopped

[root@server1 ~]# cat /etc/exports 
/tmp *(ro)

[root@server1 ~]# chkconfig --list | egrep '(rpcbind|nfs)'
nfs             0:off   1:off   2:on    3:on    4:on    5:on    6:off
nfslock         0:off   1:off   2:on    3:on    4:on    5:on    6:off
rpcbind         0:off   1:off   2:on    3:on    4:on    5:on    6:off

Best Answer

Problem solved. Looks like the /etc/syconfig/network file had dos characters in it..

dos2unix /etc/sysconfig/network 

solved it.