LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2015, 10:01 AM   #1
auclark@wsu.edu
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
using "noac" option with auto mounting


Hi -

I have a piece of software and due to the way it writes to file on a node in combination with my NFS3 filesystem, I need to use the noac option when mounting (i have verified this with the developer). Without noac you get the following error with the code:

"File locking failed in ADIOI_Set_lock(fd A,cmd F_SETLKW/7,type F_WRLCK/1,whence 0) with return value FFFFFFFF and errno 25.

- If the file system is NFS, you need to use NFS version 3, ensure that the lockd daemon is running on all the machines, and mount the directory with the 'noac' option (no attribute caching)."

I am running rocks-6.6.1 and so am using auto mounting where /exports/home becomes /home. My auto.home has entries that look like:

username -nfsvers=3 cluster.local:/export/home/username

I have tried many many different ways of including noac in either fstab or in auto.home (or both). If i modify fstab, say as follows:

UUID=0aae37b6-bd24-423c-9088-d5afe5b5b30a /export ext4 rw,noac 1 2

then it can't mount /home. (I get warning: cannot change directory to /home/xxxx: No such file or directory)

If i modify auto.home as follows:

username -nfsvers=3,noac cluster.local:/export/home/username

OR do

username -nfsvers=3 rw,noac cluster.local:/export/home/username

and then remount, and export to a node, then it seems to kind of work, as i can cat /mtab and get the following:

[root@compute-0-0 ~]# cat /etc/mtab
/dev/sda1 / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda5 /scratch ext4 rw 0 0
/dev/sda3 /var ext4 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
poppy.local:/export/home/auclark /home/auclark nfs
rw,nfsvers=3,noac,sloppy,addr=10.0.0.1 0 0
poppy.local:/export/apps /share/apps nfs
rw,vers=4,addr=10.0.0.1,clientaddr=10.255.255.253 0 0

but you will note that for the user auclark there is this "nfsvers=3,noac,sloppy" output....its the sloppy I am concerned about. Indeed, if this user tries to use the software that needs noac, then the same errors occur - with the "File locking failed"...so i think that the "sloppy" means that the noac option really didn't take during the export.

Can anyone else point me in a right direction for the correct way that noac should be implemented when you use auto mounting?

Thanks!!!

Aurora
 
Old 12-08-2015, 09:45 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,193

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
I know vers=3 option that compatible with the Sun Microsystems automounter.
Don't know if nfsvers=3 works - if not, then the sloppy option will ignore it and proceed with the mount with all other options.

You can put an option in each line in auto.home like you did
Code:
username  -vers=3,rw,noac  cluster.local:/export/home/username
Or put it as a map option in auto.master
Code:
/home  auto.home  -vers=3,rw,noac
(can be overridden by the options in auto.home)
If you can do simple NFS operations like reading or writing to a file,
and your problem is only with file locking, then check with
Code:
rpcinfo -p
rpcinfo -p cluster.local
that nlockmgr protocol is active.
Normally it is the lockd and statd processes that provide the nlockmgr service.
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
[SOLVED] ACLs / "acl" option when mounting filesystems phatrik Linux - Security 3 08-09-2012 02:57 AM
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 06:41 PM
What it takes to make "auto-mounting" work wufo Slackware 2 11-12-2009 12:59 PM
Explanation of the "loop" option when mounting CD image files uncle-c Linux - Newbie 5 12-15-2007 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration