| Author |
Message |
cap
Joined: 02 Apr 2010
Posts: 13
|
| Posted: Wed May 05, 2010 5:21 pm Post subject: NFS not working with Ubuntu 10.04 |
|
|
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. |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1400
Location: Earth
|
| Posted: Wed May 05, 2010 6:15 pm Post subject: |
|
|
| What kernel are you running? |
|
| Back to top |
|
jed
Joined: 28 Mar 2009
Posts: 394
Location: New Jersey
|
| Posted: Thu May 06, 2010 9:41 am Post subject: |
|
|
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:
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:
Code: root@distro-test:~# service nfs-kernel-server start
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
|
|
| Back to top |
|
cap
Joined: 02 Apr 2010
Posts: 13
|
| Posted: Thu May 13, 2010 11:14 am Post subject: |
|
|
| sorry for not getting back on this sooner. Yes, I was the customer with the ticket, and yes it worked fine. Thanks! |
|
| Back to top |
|
Brandon168
Joined: 28 Apr 2011
Posts: 2
|
| Posted: Thu Apr 28, 2011 5:11 pm Post subject: NFS Server Failing to Start |
|
|
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? |
|
| Back to top |
|
caker
Joined: 15 Apr 2003
Posts: 2906
Location: Galloway, NJ
|
| Posted: Thu Apr 28, 2011 5:28 pm Post subject: |
|
|
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 |
|
| Back to top |
|
Brandon168
Joined: 28 Apr 2011
Posts: 2
|
| Posted: Thu Apr 28, 2011 5:38 pm Post subject: |
|
|
and ..... we're up and running nfs again.
Thanks,
Brandon |
|
| Back to top |
|
uiltondutra
Joined: 01 Nov 2010
Posts: 1
Location: São Paulo
|
| Posted: Tue May 03, 2011 11:55 am Post subject: mount.nfs4: Protocol not supported |
|
|
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) |
|
| Back to top |
|
dataiv
Joined: 27 Oct 2009
Posts: 9
|
| Posted: Thu Dec 22, 2011 8:35 am Post subject: |
|
|
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. |
|
| Back to top |
|
| |