No locks available on NetApp NFS

General support questions
Posts: 2
Joined: 2012/12/27 22:33:21

No locks available on NetApp NFS

Postby zhjt80 » 2012/12/27 22:52:35


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.
[color=003333]mount -t nfs etNAS:/et-data /et/nfs/data[/color]
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. 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,mountaddr=,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...


Posts: 2
Joined: 2012/12/27 22:33:21

Re: No locks available on NetApp NFS

Postby zhjt80 » 2012/12/28 17:24:10

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.
[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?
How to mount NetApp with NFS4?