问题原文
原帖链接 · fuzzyTew · CC BY-SA 4.0
I'm having trouble finding really any information at all on how to make file locking work for NFS mounts, to resolve client errors like ENOLCK (No locks available).
I understand that in NFSv3 file locking was handled by separate services, and in NFSv4 it is handled by the main protocol.
I thought it would be nice if we could consolidate the various scenarios and resolve this all in one place. How do you enable file locking for NFS versions 3 and 4?
I'm personally on debian buster on a raspberry pi. I set up NFS basically following the debian buster handbook, but I'm getting the "no locks available" error when I try to lock a file.
已采纳解答
原帖链接 · drookie · CC BY-SA 4.0
By starting rpc.lockd and rpc.statd daemons, or whatever alternatives your OS has for this.
P.S. and this has nothing to do witrh the NFS protocol version which mentioned in the first comment, lol (experts everywhere, eh ?).
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
