On Fri, Apr 15, 2016 at 04:50:38PM +0100, Ken Moffat wrote: > On Fri, Apr 15, 2016 at 09:50:45AM +0400, John Frankish wrote: > > I have (4.2.9 kernel): > > > > CONFIG_NFS_V4=y > > CONFIG_NFS_SWAP=y > Fun! (swap over nfs). > > CONFIG_NFS_V4_1=y > > CONFIG_NFS_V4_2=y > > > CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org" > > > CONFIG_NFSD_V4=y > > If you are able to build a newer kernel (4.2 is no longer > maintained) without those options, and also in the vm, I think you > will no longer default to offering 4.2. > Since you didn't reply, I have held off altering the book and (perhaps) the wiki. Today, I had time to put a newer kernel on one of my desktops, so I gave the client a try. To my surprise, enabling all the nfs4 client options did not give me any problems, the v3 mounts happened as normal with no need to specify the version.
That box has a usable fedora23 system on it, so I booted that and looked at their config (in /boot/config-*). That is one system where I do have to specify v3. For the client they have: CONFIG_NFS_FS=m # CONFIG_NFS_V2 is not set CONFIG_NFS_V3=m CONFIG_NFS_V3_ACL=y CONFIG_NFS_V4=m CONFIG_NFS_SWAP=y CONFIG_NFS_V4_1=y CONFIG_NFS_V4_2=y None of those look likely to cause the problem when my server only offers v3 and v2. But they also enable the server: CONFIG_NFSD=m CONFIG_NFSD_V2_ACL=y CONFIG_NFSD_V3=y CONFIG_NFSD_V3_ACL=y CONFIG_NFSD_V4=y (I stopped pasting there, there is other stuff for PNFS (Parallel NFS which apparently depends on 4.1 or higher). So, I now *assume* that enabling NFSD_V4 in the client kernel is the problem. I suppose that enabling that in the server itself might also cause the problem. As well as changing the explanation for the switch, I am inclined to recommend that people do not enable the NFS_V4 and NFSD_V4 options because we cannot support them in BLFS (no expertise, and I suspect that kerberos is required - most of us do not grok that and it seems overblown for a small network not offering public services). ĸen -- This email was written using 100% recycled letters. -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
