LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-19-2017, 08:12 AM   #16
someshpr
Member
 
Registered: Jul 2009
Location: WI, USA
Distribution: Debian 8, Ubuntu 16.04, CentOS 7
Posts: 143

Original Poster
Rep: Reputation: 28

Quote:
Originally Posted by IsaacKuo View Post
This might indicate that there's something messed up with the nfs file server. I'm not sure how to troubleshoot this.

There is some risk with the "nolock" option if more than one client accesses the same file at the same time. This actually isn't a huge problem for a lot of software, such as vi, which create a small utility file when someone is editing a file (instead of holding a file lock for minutes/hours ... not recommended!). But if, say, two people have software appending stuff to a shared log file on two different computers, there's a good chance a log entry will get overwritten due to two simultaneous log appends at some point.

...

So, even though I'm not really sure how to troubleshoot your nfs server for the "nolock" problem, I suggest you look around for how to try and figure it out.
I agree with IsaacKuo, something is not right with the NFS file server. And this can cause potential data corruption. I'll have to figure out what is wrong with NFS server eventually, but at least my users can login now!

I'll probably experiment with the NFS options separately to figure out the issue with "nolock" option, and may be start a new thread when I get stuck and when I have more pertinent information.

Thanks again,
 
Old 08-19-2017, 01:12 PM   #17
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,737

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
Do you have NFSv3?
Code:
mount
nfsstat -m
tell vers=X
In NFSv3 there is a separate NLM protocol with lockd running on both NFS client and server. Also statd should run on both (restores locks after a system boot).

Not running NFS locking runs surprisingly well.
Bash and tcsh lock their history files - absolute unnecessary!
 
1 members found this post helpful.
Old 08-20-2017, 07:44 AM   #18
someshpr
Member
 
Registered: Jul 2009
Location: WI, USA
Distribution: Debian 8, Ubuntu 16.04, CentOS 7
Posts: 143

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by MadeInGermany View Post
Do you have NFSv3?
Code:
mount
nfsstat -m
tell vers=X
In NFSv3 there is a separate NLM protocol with lockd running on both NFS client and server. Also statd should run on both (restores locks after a system boot).

Not running NFS locking runs surprisingly well.
Bash and tcsh lock their history files - absolute unnecessary!
Yes, I do have NFSv3.
Code:
$ nfsstat -m
/nfs/home from server:/export/home
 Flags:	rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=ip.of.the.server,mountvers=3,mountport=41268,mountproto=udp,local_lock=all,addr=ip.of.the.server
I have not been able to find a "lockd" daemon on my systems (Ubuntu 16.04). Is it part of rpc or nfs?

I found statd to be part of rpc. And rpc-statd was running on my client.
Code:
$ sudo systemctl status rpc-statd
● rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/lib/systemd/system/rpc-statd.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2017-08-18 10:54:06 CDT; 1 day 20h ago
  Process: 2022 ExecStart=/sbin/rpc.statd --no-notify $STATDARGS (code=exited, status=0/SUCCESS)
 Main PID: 2024 (rpc.statd)
   CGroup: /system.slice/rpc-statd.service
           └─2024 /sbin/rpc.statd --no-notify

Aug 18 10:54:06 client systemd[1]: Starting NFS status monitor for NFSv2/3 locking....
Aug 18 10:54:06 client rpc.statd[2024]: Version 1.2.8 starting
Aug 18 10:54:06 client rpc.statd[2024]: Flags: TI-RPC
Aug 18 10:54:06 client systemd[1]: Started NFS status monitor for NFSv2/3 locking..
But it seems it was not on server?
Code:
$ sudo systemctl status rpc-statd
● rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/lib/systemd/system/rpc-statd.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
I'll see if enabling that makes the difference.

I'll only be able to check the GUI login on Tuesday, not before. So I'll post the results after that.


Thanks,
 
Old 08-23-2017, 05:23 AM   #19
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,737

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
Maybe a bug in Ubuntu 16?
See this thread

I dislike the "kernel-nfs" adventure; again they give up a piece of compatibility with the modular Unix.
While kernel.org is still better than the one way road entered by systemd...(Welcome in dependency hell!)
 
  


Reply

Tags
homedir, login, nfs


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
Password don't works in graphical start login but works in console wowy Linux - General 4 05-26-2015 06:42 AM
[SOLVED] nfs-krb mounted home folder - Client hangs at login unehed Linux - Server 4 10-07-2011 06:16 AM
[SOLVED] Creating local NFS mounted home directory for remote LDAP authenticated user someshpr Linux - Newbie 2 12-15-2009 06:14 PM
SSH tunnel doesn't work on local install, works on livecd depper Linux - Networking 3 10-17-2007 03:06 AM
FC6 broken with NFS-mounted /home directories? skellert Fedora 2 11-02-2006 10:37 PM

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

All times are GMT -5. The time now is 11:21 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