From: Bryan Schumaker <bjschuma@netapp.com>
To: Rahul Katariya <katariya.rahul@gmail.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: nfs locking with cent os 6?
Date: Wed, 14 Mar 2012 11:58:58 -0400 [thread overview]
Message-ID: <4F60C042.7000007@netapp.com> (raw)
In-Reply-To: <CANhbJ3UpCOBxLt4m-+U0btCyt1618g7RTaDLwEqXA9LM6OhJBw@mail.gmail.com>
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 <bjschuma@netapp.com> 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
>>
>>
prev parent reply other threads:[~2012-03-14 15:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-13 20:21 nfs locking with cent os 6? Rahul Katariya
2012-03-13 20:38 ` Bryan Schumaker
2012-03-14 4:16 ` Rahul Katariya
2012-03-14 15:58 ` Bryan Schumaker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F60C042.7000007@netapp.com \
--to=bjschuma@netapp.com \
--cc=katariya.rahul@gmail.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.