1 |
On Fri, Jul 22, 2016 at 8:22 PM, Adam Carter <adamcarter3@×××××.com> wrote: |
2 |
|
3 |
|
4 |
>>>> Does "/var/lib/nfs/v4recovery/" exist? |
5 |
>>> |
6 |
>>> No |
7 |
>>> # ls /var/lib/nfs/ |
8 |
>>> etab export-lock rmtab rpc_pipefs sm sm.bak state xtab |
9 |
>> |
10 |
>> IIRC, it's needed to avoid this delay. I thought that I'd saved a url |
11 |
>> about this but I can't find it. |
12 |
>> |
13 |
>> Do you have a syslog message about "stable storage"? "man nfsdcltrack". |
14 |
> |
15 |
> There's no message about stable storage, but there's this; |
16 |
> kernel: [578030.628415] NFSD: the nfsdcld client tracking upcall will be |
17 |
> removed in 3.10. Please transition to using nfsdcltrack. |
18 |
|
19 |
It's from |
20 |
|
21 |
https://patchwork.kernel.org/patch/1730241/ |
22 |
|
23 |
|
24 |
> # which nfsdcltrack |
25 |
> which: no nfsdcltrack in |
26 |
> (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.4.0:/usr/lib64/subversion/bin:/opt/vmware/bin) |
27 |
> # qlist nfs | grep nfsdcltrack |
28 |
> # |
29 |
|
30 |
It depends on the nfs-utils USE settings: |
31 |
|
32 |
# qlist -U nfs-utils |
33 |
net-fs/nfs-utils (libmount nfsdcld nfsidmap nfsv4 nfsv41) |
34 |
|
35 |
# qfile $(which nfsdcltrack) |
36 |
net-fs/nfs-utils (/sbin/nfsdcltrack) |
37 |
|
38 |
|
39 |
>> The openrc script has |
40 |
>> |
41 |
>> <begin> |
42 |
>> mkdir_nfsdirs() { |
43 |
>> local d |
44 |
>> for d in v4recovery v4root ; do |
45 |
>> d="/var/lib/nfs/${d}" |
46 |
>> [ ! -d "${d}" ] && mkdir -p "${d}" |
47 |
>> done |
48 |
>> } |
49 |
>> </end> |
50 |
>> |
51 |
>> but systemd doesn't have anything equivalent. On RHEL and Ubuntu, |
52 |
>> "/var/lib/nfs/v4recovery/" is created at installation time. Perhaps |
53 |
>> the Gentoo ebuild should do the same or should ship a |
54 |
>> "/usr/lib/tmpfiles.d/var-lib-nfs.conf" to create it at boot if it |
55 |
>> doesn't exist. |
56 |
> |
57 |
> I've added the directory, and after restarting syslog now has new entries; |
58 |
> kernel: [912267.948883] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 |
59 |
> state recovery directory |
60 |
> kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery |
61 |
> directory |
62 |
> |
63 |
> I will test shortly and report back - thanks! |
64 |
|
65 |
Good luck. You're welcome. |