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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
08-19-2017, 08:12 AM
|
#16
|
Member
Registered: Jul 2009
Location: WI, USA
Distribution: Debian 8, Ubuntu 16.04, CentOS 7
Posts: 143
Original Poster
Rep:
|
Quote:
Originally Posted by IsaacKuo
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,
|
|
|
08-19-2017, 01:12 PM
|
#17
|
Senior Member
Registered: Dec 2011
Location: Simplicity
Distribution: Mint/MATE
Posts: 2,927
|
Do you have NFSv3?
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.
|
08-20-2017, 07:44 AM
|
#18
|
Member
Registered: Jul 2009
Location: WI, USA
Distribution: Debian 8, Ubuntu 16.04, CentOS 7
Posts: 143
Original Poster
Rep:
|
Quote:
Originally Posted by MadeInGermany
Do you have NFSv3?
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,
|
|
|
08-23-2017, 05:23 AM
|
#19
|
Senior Member
Registered: Dec 2011
Location: Simplicity
Distribution: Mint/MATE
Posts: 2,927
|
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!)
|
|
|
All times are GMT -5. The time now is 06:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|