NFSDv4 supports client tracking across server restarts using two methods. The legacy method is in-kernel and requires CONFIG_CRYPTO_MD5, which is not automatically selected by CONFIG_NFSD_V4 (see https://bugzilla.kernel.org/show_bug.cgi?id=52271). The newer method involves a usermode helper upcall program (nfsdcltrack), which is built and installed only when USE="nfsdcld". If neither method is available, then the NFS server does not support tracking clients across restarts, and it emits a warning to the kernel log: NFSD: unable to generate recoverydir name (-2). NFSD: disabling legacy clientid tracking. Reboot recovery will not function correctly! I have created a pull request that introduces an ewarn in pkg_setup to warn the user if their configuration will not support client tracking due to neither of these options being enabled. Please merge: https://github.com/gentoo/gentoo/pull/1448
Thank you. It's clear you did a lot of work to come up with this. Thank you for wrapping all of that up in a nice little patch!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b2d7c955a8b3c0c422780d25bc2b1355f37df25 commit 5b2d7c955a8b3c0c422780d25bc2b1355f37df25 Author: Matt Whitlock <gentoo@mattwhitlock.name> AuthorDate: 2016-05-11 00:32:58 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2019-09-02 07:08:13 +0000 net-fs/nfs-utils: warn if client tracking will be broken NFSDv4 supports client tracking across server restarts using two methods. The legacy method is in-kernel and requires CONFIG_CRYPTO_MD5, which is not automatically selected by CONFIG_NFSD_V4 (see https://bugzilla.kernel.org/show_bug.cgi?id=52271). The newer method involves a usermode helper upcall program (nfsdcltrack), which is built and installed only when USE="nfsdcld". If neither method is available, then the NFS server does not support tracking clients across restarts, and it emits a warning to the kernel log: NFSD: unable to generate recoverydir name (-2). NFSD: disabling legacy clientid tracking. Reboot recovery will not function correctly! This commit introduces an ewarn in pkg_setup to warn the user if their configuration will not support client tracking due to neither of these options being enabled. Closes: https://github.com/gentoo/gentoo/pull/1448 Closes: https://bugs.gentoo.org/582714 Signed-off-by: Matt Turner <mattst88@gentoo.org> net-fs/nfs-utils/nfs-utils-2.4.1.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)