Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:55085 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753086Ab2CNP7A (ORCPT ); Wed, 14 Mar 2012 11:59:00 -0400 Message-ID: <4F60C042.7000007@netapp.com> Date: Wed, 14 Mar 2012 11:58:58 -0400 From: Bryan Schumaker MIME-Version: 1.0 To: Rahul Katariya CC: linux-nfs@vger.kernel.org Subject: Re: nfs locking with cent os 6? References: <4F5FB04B.9040200@netapp.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: On 03/14/2012 12:16 AM, Rahul Katariya wrote: > Thanks Bryan for reply. > > Cent OS 6 is using 2.6.32-71.el6.x86_64 kernel. Do you have admin access to the Centos machine? I've only been able to find Centos 6.2 isos, not 6.0, so I haven't been able to reproduce your setup exactly. Using nfs-utils 1.2.3-15 and kernel 2.6.32-220 I only see one warning against a Netapp server, and it's been there for as long as I can remember (I've seen it against Linux, too). Warnings probably aren't anything to worry about, and if it is a bug it might go away after the machine is updated :). - Bryan > > My server is netapp filer. > > I have increased timeout, but still same warning messages. > > If I execute by using -f option, non-native 64 bit LFS locking > testcases are passing, but native post-LFS locking testcases still > give same warning messages > > ====================================== > $ ./runtests -f /nfstests > Starting LOCKING tests: test directory (arg: -f) > > Testing native post-LFS locking > > Creating parent/child synchronization pipes. > > Test #1 - Test regions of an unlocked file. > Parent: 1.1 - F_TEST [ 0, 1] PASSED. > Parent: 1.2 - F_TEST [ 0, ENDING] PASSED. > Parent: 1.3 - F_TEST [ 0,7fffffff] PASSED. > Parent: 1.4 - F_TEST [ 1, 1] PASSED. > Parent: 1.5 - F_TEST [ 1, ENDING] PASSED. > Parent: 1.6 - F_TEST [ 1,7fffffff] PASSED. > Parent: 1.7 - F_TEST [7fffffff, 1] PASSED. > Parent: 1.8 - F_TEST [7fffffff, ENDING] PASSED. > Parent: 1.9 - F_TEST [7fffffff,7fffffff] WARNING! > Parent: **** Expected EOVERFLOW, returned success... > > Test #2 - Try to lock the whole file. > Parent: 2.0 - F_TLOCK [ 0, ENDING] PASSED. > Child: 2.1 - F_TEST [ 0, 1] PASSED. > Child: 2.2 - F_TEST [ 0, ENDING] PASSED. > Child: 2.3 - F_TEST [ 0,7fffffff] PASSED. > Child: 2.4 - F_TEST [ 1, 1] PASSED. > Child: 2.5 - F_TEST [ 1, ENDING] PASSED. > Child: 2.6 - F_TEST [ 1,7fffffff] PASSED. > Child: 2.7 - F_TEST [7fffffff, 1] PASSED. > Child: 2.8 - F_TEST [7fffffff, ENDING] PASSED. > Child: 2.9 - F_TEST [7fffffff,7fffffff] WARNING! > Child: **** Expected EOVERFLOW, returned EACCES... > Parent: 2.10 - F_ULOCK [ 0, ENDING] PASSED. > > Test #6 - Try to lock the MAXEOF byte. > Parent: 6.0 - F_TLOCK [7fffffff, 1] PASSED. > Child: 6.1 - F_TEST [7ffffffe, 1] PASSED. > Child: 6.2 - F_TEST [7ffffffe, 2] PASSED. > Child: 6.3 - F_TEST [7ffffffe, ENDING] PASSED. > Child: 6.4 - F_TEST [7fffffff, 1] PASSED. > Child: 6.5 - F_TEST [7fffffff, 2] WARNING! > Child: **** Expected EOVERFLOW, returned EACCES... > Child: 6.6 - F_TEST [7fffffff, ENDING] PASSED. > Child: 6.7 - F_TEST [80000000, ENDING] PASSED. > Child: 6.8 - F_TEST [80000000, 1] PASSED. > Child: 6.9 - F_TEST [80000000,7fffffff] PASSED. > Child: 6.10 - F_TEST [80000000,80000000] PASSED. > Parent: 6.11 - F_ULOCK [7fffffff, 1] PASSED. > > ** PARENT pass 1 results: 48/48 pass, 2/2 warn, 0/0 fail (pass/total). > > ** CHILD pass 1 results: 62/62 pass, 2/2 warn, 0/0 fail (pass/total). > > Testing non-native 64 bit LFS locking > > Creating parent/child synchronization pipes. > > Test #1 - Test regions of an unlocked file. > Parent: 1.1 - F_TEST [ 0, 1] PASSED. > Parent: 1.2 - F_TEST [ 0, ENDING] PASSED. > Parent: 1.3 - F_TEST [ 0,7fffffffffffffff] PASSED. > Parent: 1.4 - F_TEST [ 1, 1] PASSED. > Parent: 1.5 - F_TEST [ 1, ENDING] PASSED. > Parent: 1.6 - F_TEST [ 1,7fffffffffffffff] PASSED. > Parent: 1.7 - F_TEST [7fffffffffffffff, 1] PASSED. > Parent: 1.8 - F_TEST [7fffffffffffffff, ENDING] PASSED. > Parent: 1.9 - F_TEST [7fffffffffffffff,7fffffffffffffff] PASSED. > > Test #2 - Try to lock the whole file. > Parent: 2.0 - F_TLOCK [ 0, ENDING] PASSED. > Child: 2.1 - F_TEST [ 0, 1] PASSED. > Child: 2.2 - F_TEST [ 0, ENDING] PASSED. > Child: 2.3 - F_TEST [ 0,7fffffffffffffff] PASSED. > Child: 2.4 - F_TEST [ 1, 1] PASSED. > Child: 2.5 - F_TEST [ 1, ENDING] PASSED. > Child: 2.6 - F_TEST [ 1,7fffffffffffffff] PASSED. > Child: 2.7 - F_TEST [7fffffffffffffff, 1] PASSED. > Child: 2.8 - F_TEST [7fffffffffffffff, ENDING] PASSED. > Child: 2.9 - F_TEST [7fffffffffffffff,7fffffffffffffff] PASSED. > Parent: 2.10 - F_ULOCK [ 0, ENDING] PASSED. > > Test #6 - Try to lock the MAXEOF byte. > Parent: 6.0 - F_TLOCK [7fffffffffffffff, 1] PASSED. > Child: 6.1 - F_TEST [7ffffffffffffffe, 1] PASSED. > Child: 6.2 - F_TEST [7ffffffffffffffe, 2] PASSED. > Child: 6.3 - F_TEST [7ffffffffffffffe, ENDING] PASSED. > Child: 6.4 - F_TEST [7fffffffffffffff, 1] PASSED. > Child: 6.5 - F_TEST [7fffffffffffffff, 2] PASSED. > Child: 6.6 - F_TEST [7fffffffffffffff, ENDING] PASSED. > Child: 6.7 - F_TEST [8000000000000000, ENDING] PASSED. > Child: 6.8 - F_TEST [8000000000000000, 1] PASSED. > Child: 6.9 - F_TEST [8000000000000000,7fffffffffffffff] PASSED. > Child: 6.10 - F_TEST [8000000000000000,8000000000000000] PASSED. > Parent: 6.11 - F_ULOCK [7fffffffffffffff, 1] PASSED. > ====================================== > > Thanks, > Rahul > > > On Wed, Mar 14, 2012 at 2:08 AM, Bryan Schumaker wrote: >> On 03/13/2012 04:21 PM, Rahul Katariya wrote: >> >>> Hi , >>> >>> I am using Cent OS 6 64 bit which supports NFS version 4. >> >> >> A few questions: >> >> - What kernel version is Cent OS 6 using? I'm running 3.2.7 (on Archlinux, though) and those tests pass... >> - Is the server Cent OS 6, too? >> - Do you still get the warnings if you run with -f instead of -t? >> - Have you tried increasing your "timeo" value? 7 seems somewhat low... >> >> My `mount` output looks like this: >> davros:/home/bjschuma/ on /nfs type nfs (rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.122.1,mountvers=3,mountport=20048,mountproto=udp,local_lock=none,addr=192.168.122.1) >> >> >> - Bryan >> >>> >>> I ran cthon-nfs-tests on it. >>> >>> Although NFS version is 4 supported, I am using NFS 3 for mounting NFS share. >>> >>> Following are packages installed. >>> # rpm -qa |grep nfs >>> nfs-utils-1.2.2-7.el6.x86_64 >>> nfs-utils-lib-1.1.5-1.el6.x86_64 >>> >>> Mount shows following >>> # mount >>> nfs-server:/export/share/connectathon on /nfstestdir1 type nfs >>> (rw,intr,retrans=5,timeo=7,tcp,nfsvers=3,rsize=8192,wsize=8192,addr=10.10.10.1) >>> >>> Following is a nfs locking testcase result: >>> >>> [lock]$ ./runtests -t /nfstestdir1 >>> Starting LOCKING tests: test directory (arg: -t) >>> >>> Testing native post-LFS locking >>> >>> Creating parent/child synchronization pipes. >>> ======================================================= >>> Test #1 - Test regions of an unlocked file. >>> Parent: 1.1 - F_TEST [ 0, 1] PASSED. >>> Parent: 1.2 - F_TEST [ 0, ENDING] PASSED. >>> Parent: 1.3 - F_TEST [ 0,7fffffff] PASSED. >>> Parent: 1.4 - F_TEST [ 1, 1] PASSED. >>> Parent: 1.5 - F_TEST [ 1, ENDING] PASSED. >>> Parent: 1.6 - F_TEST [ 1,7fffffff] PASSED. >>> Parent: 1.7 - F_TEST [7fffffff, 1] PASSED. >>> Parent: 1.8 - F_TEST [7fffffff, ENDING] PASSED. >>> Parent: 1.9 - F_TEST [7fffffff,7fffffff] WARNING! >>> Parent: **** Expected EOVERFLOW, returned success... >>> >>> Test #2 - Try to lock the whole file. >>> Parent: 2.0 - F_TLOCK [ 0, ENDING] PASSED. >>> Child: 2.1 - F_TEST [ 0, 1] PASSED. >>> Child: 2.2 - F_TEST [ 0, ENDING] PASSED. >>> Child: 2.3 - F_TEST [ 0,7fffffff] PASSED. >>> Child: 2.4 - F_TEST [ 1, 1] PASSED. >>> Child: 2.5 - F_TEST [ 1, ENDING] PASSED. >>> Child: 2.6 - F_TEST [ 1,7fffffff] PASSED. >>> Child: 2.7 - F_TEST [7fffffff, 1] PASSED. >>> Child: 2.8 - F_TEST [7fffffff, ENDING] PASSED. >>> Child: 2.9 - F_TEST [7fffffff,7fffffff] WARNING! >>> Child: **** Expected EOVERFLOW, returned EACCES... >>> Parent: 2.10 - F_ULOCK [ 0, ENDING] PASSED. >>> >>> Test #6 - Try to lock the MAXEOF byte. >>> Parent: 6.0 - F_TLOCK [7fffffff, 1] PASSED. >>> Child: 6.1 - F_TEST [7ffffffe, 1] PASSED. >>> Child: 6.2 - F_TEST [7ffffffe, 2] PASSED. >>> Child: 6.3 - F_TEST [7ffffffe, ENDING] PASSED. >>> Child: 6.4 - F_TEST [7fffffff, 1] PASSED. >>> Child: 6.5 - F_TEST [7fffffff, 2] WARNING! >>> Child: **** Expected EOVERFLOW, returned EACCES... >>> Child: 6.6 - F_TEST [7fffffff, ENDING] PASSED. >>> Child: 6.7 - F_TEST [80000000, ENDING] PASSED. >>> Child: 6.8 - F_TEST [80000000, 1] PASSED. >>> Child: 6.9 - F_TEST [80000000,7fffffff] PASSED. >>> Child: 6.10 - F_TEST [80000000,80000000] PASSED. >>> Parent: 6.11 - F_ULOCK [7fffffff, 1] PASSED. >>> >>> ======================================================= >>> >>> Test#1 , Test#2 and Test#6 Shows warning in locking .. i.e. >>> Expected .something. and returned some-other-thing .. >>> >>> Are these locking well-known issues? >>> >>> Are there any patch available for the same? Are these serious warnings? >>> >>> Thanks, >>> Rahul >>> 「鴈ケサ ョ&゙~コ&カ ャ-+-ア鰡カ ・Swョzヒ>アハ穃饕z�g~ネァカ >。ワィ}ゥzイニ zレ&j:+v?ィセ ォ'�zZ+?ハ+zf」「キhs^ァ~?ュ?ロi鍗zケ ョw・「ク?Tィ隴レ&「)゚「 f >> >>