Skip to contentSkip to conversation

Setting up NFS on Centos 6.6

DISCUSSION [email protected] 2 participants 2 messages Nov 15, 2014 – Nov 16, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

I'm having an unusual amount of trouble setting up Centos 6.6 as an NFS server. I have already created my exportfs file and run "chkconfig nfs on".

My copy of centos is running inside a virtual bubble. The server provider has loaded the nfsd module.

I run:
chkconfig nfs on
service rpcbind start
service nfs start

The final command produces:

# service nfs start
FATAL: Module nfsd not found.
FATAL: Error running install command for nfsd
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting RPC idmapd:                                       [  OK  ]

(I've been following the guide found here:
http://openvz.org/NFS_server_inside_container which says that "module nfsd not found" is no problem.)

showmount -e produces:
Export list for (server):
/(directory) (address)

but when I try to mount
mount -t nfs -v (address):/(dir) /mnt/nfs
mount.nfs: timeout set for (date)
mount.nfs: trying text-based options 'vers=4,addr=::1,clientaddr=::1' mount.nfs: mount(2): No such device
mount.nfs: No such device

Does anyone know what I need to do to get nfs working?

Thank you.

#1 lore raw
Quoted 40 lines · On Sun, 16 Nov 2014 00:07:23 +0900 [email protected] wrote:

Hello,

I'm having an unusual amount of trouble setting up Centos 6.6 as an NFS server. I have already created my exportfs file and run "chkconfig nfs on".

My copy of centos is running inside a virtual bubble. The server provider has loaded the nfsd module.

I run:
chkconfig nfs on
service rpcbind start
service nfs start

The final command produces:

# service nfs start
FATAL: Module nfsd not found.
FATAL: Error running install command for nfsd
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting RPC idmapd:                                       [  OK  ]

(I've been following the guide found here:
http://openvz.org/NFS_server_inside_container which says that "module nfsd not found" is no problem.)

showmount -e produces:
Export list for (server):
/(directory) (address)

but when I try to mount
mount -t nfs -v (address):/(dir) /mnt/nfs
mount.nfs: timeout set for (date)
mount.nfs: trying text-based options 'vers=4,addr=::1,clientaddr=::1' mount.nfs: mount(2): No such device
mount.nfs: No such device

Quoted 2 lines

Does anyone know what I need to do to get nfs working?

-ENODEV is what you usually get when you can't plug in nfs.ko. Perhaps your server provider needs to plug that in as well?

Signature · 1 line
Jeff Layton <[email protected]>