NFS not working with Ubuntu 10.04
"Not starting NFS kernel daemon: no support in current kernel"
I also created a new linode and installed Ubuntu 10.04 fresh there. Same thing.
Am I missing something, or is this supposed new stable version of Ubuntu just not ready for roll out after all? Has anyone else dealt with this?
Thanks.
8 Replies
–----
NFS support is pre-compiled into our kernel:
root@distro-test:/etc/init.d# zgrep -i nfs /proc/config.gz
# CONFIG_XENFS is not set
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
# CONFIG_NFS_V4 is not set
# CONFIG_ROOT_NFS is not set
CONFIG_NFSD=y
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
# CONFIG_NFSD_V4 is not set
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
The issues you are experiencing is the result of how the new "nfs-kernel-server" init script in Ubuntu Lucid checks for NFS support. You are able to resolve this issue by following these steps:
4. nano +67 /etc/init.d/nfs-kernel-server
Comment out this line: "if [ -f /proc/kallsyms ] && ! grep -qE ' nfsd_serv ' /proc/kallsyms; then"
Replace with this line: "if [ -f /proc/kallsyms ] && ! grep -qE 'init_nf(sd| )' /proc/kallsyms; then"
Save the changes
NFS will now start correctly:
root@distro-test:~# service nfs-kernel-server start
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
mount nfsd $PROCNFSD_MOUNTPOINT
Results in "mount: unknown filesystem type 'nfsd'"
The only related change I see is that our Linodes are now running a new kernel, 2.6.38-x8664-linode17 #1 SMP Fri Apr 8 22:05:57 UTC 2011 x8664 GNU/Linux
grep 'init_nf' /proc/kallsyms
ffffffff8142ec4e T init_nf_conntrack_hash_rnd
ffffffff81b48618 t init_nfs_fs
ffffffff81b487da T nfs_init_nfspagecache
ffffffff81b93d60 t __initcall_init_nfs_fs6
Any ideas?
Give it another reboot and you should be all set.
-Chris
Thanks,
Brandon
Client:
mount -t nfs4 -o proto=tcp,port=2049 xxx.xxx.xxx.xxx:/cache /mnt/cache
mount.nfs4: Protocol not supported
Server:
tail /var/log/messages
May 3 16:15:52 tech9 kernel: svc: yyy.yyy.yyy.yyy, port=810: unknown version (4 for prog 100003, nfsd)
@jed:
[list] [*] nano +67 /etc/init.d/nfs-kernel-server [*] Comment out this line: "if [ -f /proc/kallsyms ] && ! grep -qE ' nfsd_serv ' /proc/kallsyms; then" [*] Replace with this line: "if [ -f /proc/kallsyms ] && ! grep -qE 'init_nf(sd| )' /proc/kallsyms; then" [*] Save the changes [*] NFS will now start correctly: [/list]
This worked for me, still on Ubuntu 10.04 (.3) with the new 3.x kernel. I was having problems starting NFS. Thanks for the info and help. Glad I was able to find it.