Date: Fri, 16 Sep 2022 22:31:29 GMT From: Rick Macklem <rmacklem@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 45de932947c7 - stable/12 - nfscl: Add a console message for session recovery Message-ID: <202209162231.28GMVTB9086286@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=45de932947c7991cf0b5b58c650efbf27a3f0977 commit 45de932947c7991cf0b5b58c650efbf27a3f0977 Author: Rick Macklem <rmacklem@FreeBSD.org> AuthorDate: 2022-08-28 21:24:39 +0000 Commit: Rick Macklem <rmacklem@FreeBSD.org> CommitDate: 2022-09-16 22:28:38 +0000 nfscl: Add a console message for session recovery The NFSv4.1/4.2 client does recovery when it receives a NFSERR_BADSESSION reply from the server. If the server has not rebooted, this is often caused by multiple clients using the same /etc/hostid and, as such, not being recognized as different clients by the server. This trivial patch adds a console message to suggest that client's /etc/hostid's need to be checked for uniqueness. (cherry picked from commit 0685c73cfe88b94d60b1b2ddfdb36c684a008006) --- sys/fs/nfs/nfs_commonkrpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/fs/nfs/nfs_commonkrpc.c b/sys/fs/nfs/nfs_commonkrpc.c index 115f0f7a01e6..bc38f9aab6b1 100644 --- a/sys/fs/nfs/nfs_commonkrpc.c +++ b/sys/fs/nfs/nfs_commonkrpc.c @@ -1017,6 +1017,10 @@ tryagain: sep = NFSMNT_MDSSESSION(nmp); if (bcmp(sep->nfsess_sessionid, nd->nd_sequence, NFSX_V4SESSIONID) == 0) { + printf("Initiate recovery. If server " + "has not rebooted, " + "check NFS clients for unique " + "/etc/hostid's\n"); /* Initiate recovery. */ sep->nfsess_defunct = 1; NFSCL_DEBUG(1, "Marked defunct\n");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209162231.28GMVTB9086286>