FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

LinkBack Thread Tools
Old 03-15-2010, 12:10 PM
Harry Putnam
Default nfs mount on client end.

In my home lan setup its an opensolaris (zfs fs) NFS server that is
supposed to be set to show NFS vers=3 on offer.

Somehow on the client end... my gentoo desktop, its getting mounted
with vers=4 as evidenced by the output of `mount'

opensolairs_NFS_SERVER:/pub on /pub type nfs
(rw,users,addr=,vers=4,clientaddr=192. 168.0.2)

Note it says vers=4. I don't see where that is being set.

/etc/conf.d/nfs mentiones NFS vers=4 but doesn't say that is what its
telling the kernel to use.

From /etc/conf.d/nfs
# Optional services to include in default `/etc/init.d/nfs start`
# For NFSv4 users, you'll want to add "rpc.idmapd" here.

Does that determine what version gets used... it doesn't sound like it

These lines out of /etc/init.d/nfsmount seems to be the culprit:
# Make sure nfs support is loaded in the kernel #64709
if [ -e /proc/modules ] && ! grep -qs 'nfs$' /proc/filesystems ; then
modprobe -q nfs

ebegin "Mounting NFS filesystems"
mount -a -t nfs,nfs4
eend $?

Or does `mount -a -t nfs,nfs4' just mean vers 4 is made available?

I have 2,3 and 4 enabled in the kernel:

zcat /proc/config.gz |grep 'NFS[^D].*='


There is also a:
# CONFIG_NFS_V4_1 is not set
But I think that is experimental, and not necessary for vers=4 to be

So is the linux client supposed to decide which version to mount by
what it sees on offer?

If so, then is there a known problem when the server is opensolaris?

I know opensolaris people tell me to set the server to offer only
version=3 because there is some problem with linux if you use

On the opensolaris lists, I've been discussing this, and it appears
other users are not having a similar problem when they tell the
server to use version=3 which I have (on the opensolaris server in

# Sets the maximum version of the NFS protocol that will be used by
# the NFS client. Can be overridden by the "vers=" NFS mount option.
# If "vers=" is not specified for an NFS mount, this is the version
# that will be attempted first. The default is 4.

# [HP 03/12/09 00:20
# ]

------- --------- ---=--- --------- --------

Any input would be helpful..

Thread Tools

All times are GMT. The time now is 04:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org