Gentoo Archives: gentoo-user

From: Tom H <tomh0665@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Re: [NOTE] New default behavior in latest nfs-utils (1.3.2-r1)
Date: Tue, 03 Feb 2015 11:29:50
Message-Id: CAOdo=SyQM7TM9fejbTJvfkOO8xqOZGG4MQes3pbo89=147kO6w@mail.gmail.com
In Reply to: [gentoo-user] Re: [NOTE] New default behavior in latest nfs-utils (1.3.2-r1) by walt
1 On Mon, Feb 2, 2015 at 8:46 PM, walt <w41ter@×××××.com> wrote:
2 > On 02/02/2015 10:29 AM, Tom H wrote:
3 >> On Sun, Feb 1, 2015 at 7:31 PM, walt <w41ter@×××××.com> wrote:
4 >>>
5 >>> For example, I had to add the rpcbind.service to the multi-user
6 >>> systemd target because even nfs3 seems to need it.
7 >>
8 >> You must mean "because especially nfsv3 needs it" because,
9 >> theoretically, nfsv4 doesn't need rpcbind since an nfsv4 mount only
10 >> needs to now about rpc.nfsd's default port 2049.
11 >
12 > This morning I got "waiting on lockfile foo in /usr/portage/distfiles"
13 > "locking not available" from my nfs3 clients when trying to download
14 > needed source files.
15 >
16 > I worked around this failure by using the nfs nolock mount option, and
17 > then I gave up and restored nfs4 to all my kernels and nfs-utils packages.
18 >
19 > I don't recall having this problem back in my former nfs3-only days.
20 > Maybe I've forgotten something obvious that I did back then?
21
22 There used to be an rpc.lockd daemon but lockd's been moved to a
23 kernel module for nfsv3 and to nfsd for nfsv4. RHEL 5 has it
24 (nfs-utils 1.09) and RHEL 6 doesn't (nfs-utils 1.2) so it must've been
25 dropped with v1.1 or v1.2. I don't know when it was dropped in Gentoo
26 terms (probably 6-7 years ago). Does this ring a bell?
27
28 Does file locking work for an nfsv3 mount after you re-enable nfsv4 in
29 your kernel config?
30
31 If yes, then you're missing some kernel config that's being enabled
32 automatically when you enable nfsv4. I can't think of what it might be
33 since AFAIK you can't enable NFS_FS or NFSD without enabling
34 FILE_LOCKING.
35
36 If no, then are you setting static ports for statd and lockd and
37 allowing access to these ports with iptables?

Replies