LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

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

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


Hi,

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=172.31.80.240)


[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=172.31.80.240,mountvers=3,mountport=4046,mountproto=udp,addr=172.31.80.240 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...

Thanks
 
Old 12-28-2012, 11:23 AM   #2
zhjt80
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 172.16.108.132:/home /mnt/nfs
[root@lab-dev-def-msg001 ~]# more /proc/mounts
172.16.108.132:/home/ /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=172.31.80.131,minorversion=0,addr=172.16.108.132 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 172.16.108.132:/home /mnt/nfs
[root@lab-dev-def-msg001 ~]# more /proc/mounts
172.16.108.132:/home /mnt/nfs nfs rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,tim
eo=600,retrans=2,sec=sys,mountaddr=172.16.108.132,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?

Thanks

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


Reply


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


All times are GMT -5. The time now is 06:31 AM.

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