From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NrA5L-0007A5-HQ for garchives@archives.gentoo.org; Mon, 15 Mar 2010 13:11:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1668E07E8; Mon, 15 Mar 2010 13:11:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9EB83E07E8 for ; Mon, 15 Mar 2010 13:11:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 0333467DDC for ; Mon, 15 Mar 2010 13:11:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.389 X-Spam-Level: X-Spam-Status: No, score=-3.389 required=5.5 tests=[AWL=-0.790, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fWgys1T+gvk6 for ; Mon, 15 Mar 2010 13:11:08 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 409FA678E6 for ; Mon, 15 Mar 2010 13:11:06 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NrA4R-0002od-Df for gentoo-user@gentoo.org; Mon, 15 Mar 2010 14:10:59 +0100 Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Mar 2010 14:10:59 +0100 Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Mar 2010 14:10:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Harry Putnam Subject: [gentoo-user] nfs mount on client end. Date: Mon, 15 Mar 2010 08:10:45 -0500 Organization: Still searching... Message-ID: <87sk813f3e.fsf@newsguy.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:LKYveZygUBjd1figf7yjsP5q2ZM= X-Archives-Salt: f36af127-cb1e-458d-9f01-a2048d2761cc X-Archives-Hash: ce4cd8a268e42ccee76d8ca3cd8988c3 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=192.168.0.29,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. NFS_NEEDED_SERVICES="rpc.idmapd" Does that determine what version gets used... it doesn't sound like it would. 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 fi 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].*=' CONFIG_NFS_FS=y CONFIG_NFS_V3=y CONFIG_NFS_V3_ACL=y CONFIG_NFS_V4=y CONFIG_NFS_ACL_SUPPORT=y CONFIG_NFS_COMMON=y 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 available. 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 version=4. 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 /etc/default/nfs): # 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. #NFS_CLIENT_VERSMAX=4 # [HP 03/12/09 00:20 NFS_CLIENT_VERSMAX=3 # ] ------- --------- ---=--- --------- -------- Any input would be helpful..