[SOLVED] How to disable the default 'sloppy' mount option for nfs in Linux Mint?
Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to disable the default 'sloppy' mount option for nfs in Linux Mint?
Hi,
I have a NFS server running FreeBSD11 with 3 clients attached via automount.
One client is running FreeBSD11, the second Fedora25 and the third runs LinuxMint.
FreeBSD and Fedora clients mount/unmount without problems but when the Linux Mint machine unmounts the NFS folder, the server does not recognize that.
When I run the showmount command on the server the LinuxMint client seems still connected.
There are 2 things that are a little bit strange on the Linux Mint machine I suspect are the problem.
1. On the FreeBSD and Fedora clients the autofs-map shows up when the mount command is run, on the Mint machine the map is never shown.
2.On the Mint machine the 'sloppy' mount option gets appended to my own mount options (tcp,intr,hard,nolock)
I've searched all related manpages and finally found '-s sloppy' it in the mount.nfs(8) manpage on Fedora and Mint (it does not exist in FreeBSD).
But I was unable to find out where it is set from on the Mint machine. Is it possible it is compiled into autofs/automount on Mint? It's not in the /etc/defaults/autofs and not in my mapfiles.
Any Ideas how to get rid of the 'sloppy' mount option or any other Ideas what could be the cause for the server not recognizes that the Mint client disconnected?
Thanks!
Code:
uname -a
Linux mint 4.4.0-21-generic #37~14.04.1-Ubuntu SMP Wed Apr 20 16:33:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Which version of Mint and autofs version? There does seem to be bug reports around concerning autofs sloppy mounting and its effects with non-NFS mounts.
Hi ferrari,
Yes, I use autofs to mount NFS on all three clients. All my clients share the same (simple) /etc/auto.* configuration files regarding autofs.
My version of autofs on the Mint machine:
Code:
sudo apt list --installed|grep autofs
autofs/trusty-updates,now 5.0.7-3ubuntu3.2 amd64 [installed]
/etc/fstab I checked first, nothing there. The /etc/auto.* I are pretty simple only one line each I configured myself. The really tidy and simple config for autofs. It's a server at my home, so it's only me who configured server and clients.
So really weird. I have absolutely no idea where that 'sloppy' is configured. It must be some kind of default but I have checked all releated files and read every manpage that could give me a hint.
Without result.
Here is the output from mount on the Mint machine:
(It is like I configured it via autofs. But the 'sloppy' option just shouldn't be there)
Code:
mount|grep zmicro
192.168.1.3:/zmicro on /nfs/zmicro type nfs (rw,tcp,hard,intr,nolock,sloppy,addr=192.168.1.3)
UPDATE:
It's ok now, suddenly it works...
The 'sloppy' option is still there but autofs unmounts NFS the server now recognizes that.
I installed the latest updates yesterday evening.
I had that issue for a long time but it doesn't really bother me before since now when I made a skript on my server that shuts it down in the evening, when theres nobody on NFS or logged in.
And now it works without me doing anything but installing updates.
Do you know how I can check if there where updates for autofs or automount installed?
UPDATE:
It's ok now, suddenly it works...
The 'sloppy' option is still there but autofs unmounts NFS the server now recognizes that.
I installed the latest updates yesterday evening.
I had that issue for a long time but it doesn't really bother me before since now when I made a skript on my server that shuts it down in the evening, when theres nobody on NFS or logged in.
And now it works without me doing anything but installing updates.
That's good to know.
Quote:
Do you know how I can check if there where updates for autofs or automount installed?
I', not a Mint user but your package manager (software centre?_ should be able to show you recent instal history.
UPDATE:
It's ok now, suddenly it works...
The 'sloppy' option is still there but autofs unmounts NFS the server now recognizes that.
I installed the latest updates yesterday evening.
I had that issue for a long time but it doesn't really bother me before since now when I made a skript on my server that shuts it down in the evening, when theres nobody on NFS or logged in.
And now it works without me doing anything but installing updates.
That's good to know.
Quote:
Do you know how I can check if there where updates for autofs or automount installed?
I'm not a Mint user, but your package manager (software center?) should be able to show you recent instal history.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.