This is on Fedora Server 35, BUT, I'm pretty sure that's irrelevant:
I have a whole environment that works great with nfs and various machines export to each other - been doing this for decades - and we decided that exporting /etc and /var between two systems that are critical and one is the backup system for the other was a good idea to help synchronization. (That is, ease backup for failure recovery a little so it could be done "by hand" more quickly when changes are made - OBVIOUSLY one wouldn't want to rsync the tree!)
Fine... Copy a line in exports that's already there and working fine between the machines twice and change the exported locations to /var and /etc respectively.
Simple, right? Doesn't work!
So, there are REALLY two questions here:
Is there some built-in reason why NFS refuses to export these directories? No error is returned, it just doesn't export them. And no, that's not just the commands executed, and yes, I checked the system log.
If in fact there IS some limitation like this, what's a good workaround? ... I seem to recall that NFS won't follow sym links on exports, but maybe I'm wrong about that; I tried it some time back and it didn't work.
exportfs
ignores the lines or do you meanmount
is denied access to them?