I ran into a problem today that I haven’t seen since 2017. A Red Hat Enterprise Linux (RHEL) 8.6 system that mounts shares from a Solaris 10 u11 NFS server got patched. When it rebooted, it wasn’t able to mount those shares. When I attempted to mount them manually as a troubleshooting step, I got “mount system call failed”. After verifying that the idmapd was running, the NFS domain was correct, the client was in the allowed list, and a few other things, I turned to Google. There I found an article which jogged my memory: “Solaris 10 and Linux NFSv4” at purplecow.org. I had this same problem years ago with a Solaris 11 client.
The problem seems to originate from Solaris 10’s NFS server being naïve and assuming that all NFSv4 requests are v4.0, whereas we’ve moved on since then and now have v4.1 and v4.2. When S10’s NFS server receives an NFSv4.{1,2} request, it tries to interpret it as NFSv4.0 and can’t grok it so it throws an “nfs4_discover_server_trunking unhandled error -5” error and fails. The ultimate solution is to upgrade the server but until then, the workaround is to add “vers=4,minorversion=0” mount options on the client.
Thanks to mexico.purplecow.org for jogging my memory.