LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 01-10-2017, 10:27 AM   #1
tvind
LQ Newbie
 
Registered: Dec 2016
Location: Tveit, Norway
Distribution: Debian, Fedora, OpenWRT, FreeBSD
Posts: 14

Rep: Reputation: Disabled
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

Last edited by tvind; 01-10-2017 at 11:03 AM.
 
Old 01-11-2017, 07:35 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Check the Mint mount options specified in /etc/fstab or perhaps /etc/auto.* files if using AutoFS.
 
Old 01-11-2017, 09:11 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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.
 
Old 01-12-2017, 05:55 AM   #4
tvind
LQ Newbie
 
Registered: Dec 2016
Location: Tveit, Norway
Distribution: Debian, Fedora, OpenWRT, FreeBSD
Posts: 14

Original Poster
Rep: Reputation: Disabled
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?

Last edited by tvind; 01-12-2017 at 01:08 PM.
 
Old 01-15-2017, 04:15 PM   #5
dlb101010
Member
 
Registered: Dec 2016
Posts: 61

Rep: Reputation: 18
Hello tvind,

Quote:
Do you know how I can check if there where updates for autofs or automount installed?
You could run 'locate autofs' and 'locate automount' to see the location of files incorporating these names, then check the date ('ls -l').

Dave
 
Old 01-15-2017, 05:42 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
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.

Maybe this will answer the question for you
https://www.cyberciti.biz/faq/debian...-updated-date/
 
Old 01-15-2017, 05:42 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
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.

Maybe this will answer the question for you
https://www.cyberciti.biz/faq/debian...-updated-date/
 
Old 01-16-2017, 06:07 AM   #8
tvind
LQ Newbie
 
Registered: Dec 2016
Location: Tveit, Norway
Distribution: Debian, Fedora, OpenWRT, FreeBSD
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks dlb101010, thanks ferrari

The installed updates where found in /var/log/dpkg.log
 
  


Reply



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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
Change Default Mount Option for Automount in Slackware64 14.1 ack_iix Slackware 7 03-18-2014 04:36 PM
mount.nfs: an incorrect mount option was specified boby.kumar Linux - Newbie 8 09-23-2013 09:41 AM
"mount.nfs: an incorrect mount option was specified" (soft) catkin Linux - Networking 2 09-19-2009 05:30 AM
How to change default KDE mount option ? mhtrinh Fedora 2 01-14-2008 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 06:09 PM.

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
Open Source Consulting | Domain Registration