Ubuntu - NFS


If you are having difficulty starting NFS on any Ubuntu Cloud Server, and the init script returns a "no support in current kernel" error, first ensure that your kernel does indeed support NFS:

# zcat /proc/config.gz | grep NFS
CONFIG_XENFS=y
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
# CONFIG_NFS_V4_1 is not set
CONFIG_NFSD=m
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=y

Then, try the following fix:

Edit /etc/init.d/nfs-kernel-server and remove the following lines:

# See if our running kernel supports the NFS kernel server
if [ -f /proc/kallsyms ] && ! grep -qE ' nfsd_serv    ' /proc/kallsyms; then
  log_warning_msg "Not starting $DESC: no support in current kernel."
  exit 0
fi

Any time the nfs-kernel-server package is updated, that file will also need to be updated again. This is a bug in Ubuntu, which you may wish to report at https://launchpad.net/ubuntu/+bugs.



Was this content helpful?




© 2011-2013 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER