You are not logged in.

#1 2012-08-27 14:22:44

jeetkunejoe
Member
Registered: 2012-08-27
Posts: 7

[SOLVED] - NFS minor version support in nfs-utils

Hi all,

I've been working on my Arch Linux media server and would like to host my media files using NFS to my windows 7 boxes.  I've installed the x86_x64 nfs-utils package using pacman and installed/configured using the NFS4 wiki article.  I am able to access the shares using the Windows 7 clients default NFS client (installed from the "Programs and Features" in control panel), however that implementation is only NFSv2/3 support.  I did some research and saw there was an open source NFSv4.1 client being developed by the University of Michigan (and funded by Microsoft) that brings NFSv4.1 support Windows 7. This is the same implementation of NFSv4.1 found in Windows 8.  So I downloaded the client, got it running on my windows 7 machine and tried to connect to my share. It's communicating with the server but it fails at an an error about a "minorversion not allowed" in the client (debug mode).

I began troubleshoot the client, but I did not find any issues.  So I looked a bit more at the Arch Linux server and the NFS server configuration on it.  I did some reading and believe I found the source of the error. the control file in

/proc/fs/nfsd/versions

In that control file I see "-4.1", which disables v4.1 client support and I believe that is what is preventing my windows 7 NFSv4.1 client from connecting.  I'd like to change that to "+4.1" but cannot edit the file as it is is "busy".  When the server is not running, the file is not populated with data and I believe is created at runtime (therefore I am not able to edit it at all) 

I looked to see if there were any parameters I could pass in the following config files, but there were none:

etc/conf.d/nfs-common.conf
etc/conf.d/nfs
etc/conf.d/nfs-server.conf
etc/rc.d/nfs-common
etc/rc.d/nfs-server

Finally, after a bit of research, I determined the program that created the file in question is

usr/sbin/rpc.nfsd

There is a parameter to "remove" versions in etc/conf.d/nfs-server.conf (where X is the specific version)

MOUNTD_OPTS="--no-nfs-version X"

but none to add.

So, anyone have any idea what I'm missing to get a "+4.1" to write to the /proc/fs/nfsd/versions file instead of the "-4.1"?

Any help is appreciated!

Last edited by jeetkunejoe (2013-02-09 22:40:19)

Offline

#2 2012-08-31 16:57:00

jeetkunejoe
Member
Registered: 2012-08-27
Posts: 7

Re: [SOLVED] - NFS minor version support in nfs-utils

No luck on the client side to specify only "4.0" connections. Anyone have any idea how to get the versions file to write "+4.1"?

Offline

#3 2012-09-05 09:39:37

neilzium
Member
Registered: 2011-12-17
Posts: 41

Re: [SOLVED] - NFS minor version support in nfs-utils

It doesn't seem like the arch kernel is compiled with nfs 4.1 support:

#zcat /proc/config.gz |grep CONFIG_NFS_V4
CONFIG_NFS_V4=y
# CONFIG_NFS_V4_1 is not set

NFS 4.1 is still considered "experimental" AFAIK

Offline

#4 2012-09-05 13:04:38

jeetkunejoe
Member
Registered: 2012-08-27
Posts: 7

Re: [SOLVED] - NFS minor version support in nfs-utils

Thanks for that! Didn't know 4.1 was a kernel level option. Will look to enable it, recompile and test it out. Will see if that solves my problem. Will keep this thread updated.

Offline

#5 2012-11-01 00:09:27

jeetkunejoe
Member
Registered: 2012-08-27
Posts: 7

Re: [SOLVED] - NFS minor version support in nfs-utils

Ah, forgot this was open for a while. I tried compiling the kernel but was afraid my changes would be lost with each kernel upgrade. Is there any easy way to enable this kernel option without recompiling? Or a way to ensure that my kernel configuration was enabled on each kernel upgrade?

Offline

#6 2012-11-01 00:28:04

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] - NFS minor version support in nfs-utils

The only way to avoid recompiling is to persuade the devs to enable this option in the arch kernel build. Ask them by submitting a feature request.

Did the rebuild work? You didn't say, which is kinda odd. smile

Offline

#7 2012-11-01 00:34:20

jeetkunejoe
Member
Registered: 2012-08-27
Posts: 7

Re: [SOLVED] - NFS minor version support in nfs-utils

tomk wrote:

The only way to avoid recompiling is to persuade the devs to enable this option in the arch kernel build. Ask them by submitting a feature request.

Did the rebuild work? You didn't say, which is kinda odd. smile


Ah, I should mention I started recompiling the kernel then figured that I didn't want to do it every time I upgraded the kernel. This fact is accurate, right? There is no way to carry over my kernel setting from one version to an upgrade, right? If I can do that, I wouldn't bug the devs till they're ready to include it :-)

Thanks for the reply.

Offline

#8 2012-11-01 09:10:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] - NFS minor version support in nfs-utils

... how will you know they're ready if you don't ask?

And really, do the build once anyway, to make sure it actually solves your problem.

Offline

#9 2012-11-02 16:38:56

jeetkunejoe
Member
Registered: 2012-08-27
Posts: 7

Re: [SOLVED] - NFS minor version support in nfs-utils

Good point. I'll try building this weekend and shoot the devs an email if it works. Thanks!

Offline

#10 2013-02-09 22:39:21

jeetkunejoe
Member
Registered: 2012-08-27
Posts: 7

Re: [SOLVED] - NFS minor version support in nfs-utils

Been some time since and update, but as of Linux Kernel Version 4.1, it looks like NFSv4.1 is set. Marking this as resolved. Thanks for all the help!

Offline

Board footer

Powered by FluxBB