Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 12-27-2012, 05:10 PM   #1
LQ Newbie
Registered: Dec 2012
Posts: 5

Rep: Reputation: Disabled
Can not get locks on NetApp NFS


I got a problem when I trying to get lock from NetApp NFS.
The NFS client is centos6.0, NFS v3. The NFS server is NetApp.
The NFS client is a virtual machine running on Xen Server. The NFS client has nfs, nfslock, rpcbind processes runnning.
I use mount command to mount the NFS to the client.

I use the below command mount the NFS.
mount -t nfs etNAS:/et-data /et/nfs/data
After mount, the storage is mount, I can create file on the /et/nfs/data folder. But I can not get lock on the folder. I got No locks available error. Actually the file is not locked by others.

Could anyone help on this?

The output of the commands
[etadm@lab-dev-def-msg002 sysconfig]$ mount
etNAS:/et-data on /et/nfs/data type nfs (rw,lock,soft,addr=

[etadm@lab-dev-def-msg002 sysconfig]$ cat /proc/mounts
etNAS:/et-data /et/nfs/data nfs rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mou ntaddr=,mountvers=3,mountport=4046,mountproto=udp,addr= 0 0

[etadm@lab-dev-def-msg002 sysconfig]$ service nfs status
rpc.svcgssd is stopped
rpc.mountd (pid 2610) is running...
nfsd (pid 2607 2606 2605 2604 2603 2602 2601 2600) is running...
rpc.rquotad (pid 2595) is running...

[etadm@lab-dev-def-msg002 sysconfig]$ service nfslock status
rpc.statd (pid 2656) is running...

[etadm@lab-dev-def-msg002 sysconfig]$ service rpcbind status
rpcbind (pid 1989) is running...

Old 12-28-2012, 11:23 AM   #2
LQ Newbie
Registered: Dec 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I tried mount the NFS using another Linux NFS server instead of NetApp.

1.Mount the NFS folders with NFS4, the client can get the lock.
[root@lab-dev-def-msg001 ~]# mount /mnt/nfs
[root@lab-dev-def-msg001 ~]# more /proc/mounts /mnt/nfs nfs4 rw,relatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,p
ort=0,timeo=600,retrans=2,sec=sys,clientaddr=,minorversion=0,addr= 0 0

2.Mount the NFS folders with NFS3, the client can NOT get the lock.
[root@lab-dev-def-msg001 ~]# mount -t nfs -o vers=3,lock /mnt/nfs
[root@lab-dev-def-msg001 ~]# more /proc/mounts /mnt/nfs nfs rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,tim
eo=600,retrans=2,sec=sys,mountaddr=,mountvers=3,mountport=41248,mountproto=udp,addr=17 2.16.108
.132 0 0

3.But I can NOT mount the NetApp with type NFS4. It mounts the NetApp with default NFS3.
The NetApp is mounted default with NFS3.
[root@lab-dev-def-msg001 ~]# mount -t nfs -o vers=4 etNAS:/et-data /et/nfs/data
mount.nfs: Protocol not supported

Could anyone help me? Why NFS3 doesn't has lock even I mount a folder from linux NFS server?


Last edited by zhjt80; 12-28-2012 at 11:28 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NetApp NFS to RHEL 6 - mounts but can't write jpeery Linux - Enterprise 2 05-23-2012 12:39 AM
NFS is slow for non-cached NetApp reads JasonCzerak Linux - Networking 0 09-24-2008 02:23 PM
Automount Netapp NFS shares on Linux with AUTOFS athreyavc Linux - Server 2 10-30-2007 05:34 PM
NFS + netapp filer + redhat 8 = rpc timed out..why?? iclies Linux - Networking 2 05-26-2006 06:17 PM
nfs + redhat linux 8 + netapp filer.. rpc : timed out ???? iclies Linux - Newbie 0 05-12-2003 03:04 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration