in /etc/exports I have:
/home XXX.XXX.XXX.128/25(rw,no_subtree_check,root_squash) 192.168.1.0/24(rw,no_subtree_check,root_squash)
/home/user XXX.XXX.XXX.128/25(rw,no_subtree_check,root_squash) 192.168.1.0/24(rw,no_subtree_check,root_squash)
Obviously the shares overlap as the /home/user resolves back to:
- a root directory of /home/user share
- "user" subdirectory of "/home" share. This /etc/exports results in a NFS share that works normally through network. I do not know which path is used to access /home/user/file, but both lead to the same file.
However when the /home/user directory is accessed locally, not through nfs, then the python script that does a recursive python os.walk of /home/user directory tree tends to hang the system: the command "stat" hangs at "/home/user" directory (as evident by strace), the system load grows by 1 every two minutes, at some point system ceases to respond to any command in the system prompt. Also as soon as "stat" command hangs it is impossible to ssh to the system from the network.
As soon as automount process is killed then the system works completely normally again. T
The question:
- what exactly is wrong with overlapping NFS mount. I get there is an "ambiguity" what exactly /nfs/computer/home/user means, but does this confuse just the user, or it actually confuses and breaks automount somehow. If the latter, then why?