1 |
On 02/03/2015 03:29 AM, Tom H wrote: |
2 |
> On Mon, Feb 2, 2015 at 8:46 PM, walt <w41ter@×××××.com> wrote: |
3 |
|
4 |
>> This morning I got "waiting on lockfile foo in /usr/portage/distfiles" |
5 |
>> "locking not available" from my nfs3 clients when trying to download |
6 |
>> needed source files. |
7 |
|
8 |
>> I don't recall having this problem back in my former nfs3-only days. |
9 |
>> Maybe I've forgotten something obvious that I did back then? |
10 |
> |
11 |
> There used to be an rpc.lockd daemon but lockd's been moved to a |
12 |
> kernel module for nfsv3 and to nfsd for nfsv4. RHEL 5 has it |
13 |
> (nfs-utils 1.09) and RHEL 6 doesn't (nfs-utils 1.2) so it must've been |
14 |
> dropped with v1.1 or v1.2. I don't know when it was dropped in Gentoo |
15 |
> terms (probably 6-7 years ago). Does this ring a bell? |
16 |
|
17 |
Yes, I remember rpc.lockd. |
18 |
|
19 |
> Does file locking work for an nfsv3 mount after you re-enable nfsv4 in |
20 |
> your kernel config? |
21 |
|
22 |
Hm. No, I still get the same "No locks available" error. |
23 |
|
24 |
> If no, then are you setting static ports for statd and lockd and |
25 |
> allowing access to these ports with iptables? |
26 |
|
27 |
Noooo, that's way above my pay grade :) |
28 |
|
29 |
I mentioned earlier in this thread that, when I run this command: |
30 |
|
31 |
#mount.nfs a6://usr/portage /usr/portage -o nfsvers=3 |
32 |
|
33 |
it hangs indefinitely, but if I hit Ctrl-c and quickly re-run the same |
34 |
command it succeeds. (I've been trying to measure what "quickly" means |
35 |
but it seems to vary, seems random, but always less than a minute.) |
36 |
|
37 |
I'm posting this info mainly for the benefit of future googlers because |
38 |
nfs4 is working well and I don't really *need* nfs3. |
39 |
|
40 |
If you're interested in this problem I'd be happy to try any/all debugging |
41 |
experiments, but otherwise don't spend any more time on it. |
42 |
|
43 |
Many thanks for your help, Tom |