Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 05, 2010 6:21 pm 
Offline
Senior Newbie

Joined: Fri Apr 02, 2010 3:17 pm
Posts: 13
I upgraded Ubuntu Karmic to version 10.04 as per the library instructions, but on the new version NFS apparently is not supported by the kernel. I get this message trying to start the service:

"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.


Top
   
 Post subject:
PostPosted: Wed May 05, 2010 7:15 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
What kernel are you running?


Top
   
 Post subject:
PostPosted: Thu May 06, 2010 10:41 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
We had a ticket about this recently, and Danny's solution (below) worked for that customer. Can you let me know if this works for you, as well?
------

NFS support is pre-compiled into our kernel:

Code:
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:
  1. nano +67 /etc/init.d/nfs-kernel-server
  2. Comment out this line: "if [ -f /proc/kallsyms ] && ! grep -qE ' nfsd_serv ' /proc/kallsyms; then"
  3. Replace with this line: "if [ -f /proc/kallsyms ] && ! grep -qE 'init_nf(sd| )' /proc/kallsyms; then"
  4. Save the changes
  5. NFS will now start correctly:
Code:
root@distro-test:~# service nfs-kernel-server start
 * Exporting directories for NFS kernel daemon...                        [ OK ]
 * Starting NFS kernel daemon                                            [ OK ]

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Thu May 13, 2010 12:14 pm 
Offline
Senior Newbie

Joined: Fri Apr 02, 2010 3:17 pm
Posts: 13
sorry for not getting back on this sooner. Yes, I was the customer with the ticket, and yes it worked fine. Thanks!


Top
   
PostPosted: Thu Apr 28, 2011 6:11 pm 
Offline
Newbie

Joined: Thu Apr 28, 2011 6:05 pm
Posts: 2
The workaround above worked wonderfully for me until last week, when I had to reboot the server. The init.d script is still modified as above, but the nfs kernel fails to start now.

Code:
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-x86_64-linode17 #1 SMP Fri Apr 8 22:05:57 UTC 2011 x86_64 GNU/Linux

Code:
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?


Top
   
 Post subject:
PostPosted: Thu Apr 28, 2011 6:28 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Bah, that was my bad. I've had trouble with various kernel config options causing recent 64 bit 2.6 kernels to not boot correctly, and thus had to more or less start over from a fresh config this past round and missed the NFSD options. I've recompiled 2.6.38-x86_64-linode17 to include them.

Give it another reboot and you should be all set.

-Chris


Top
   
 Post subject:
PostPosted: Thu Apr 28, 2011 6:38 pm 
Offline
Newbie

Joined: Thu Apr 28, 2011 6:05 pm
Posts: 2
and ..... we're up and running nfs again.

Thanks,

Brandon


Top
   
PostPosted: Tue May 03, 2011 12:55 pm 
Offline

Joined: Mon Nov 01, 2010 11:12 am
Posts: 1
Location: São Paulo
I'm having problem to mount nfs4 shares. The server is running the default Ubuntu 10.04 config. I just changed /etc/init.d/nfs-kernel-server as recommended on this post and setup the share. Any ideas?

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)


Top
   
 Post subject:
PostPosted: Thu Dec 22, 2011 9:35 am 
Offline
Senior Newbie

Joined: Tue Oct 27, 2009 9:26 pm
Posts: 15
jed wrote:
Code:
[list=1]
[*] 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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group