This is an interesting problem I've encountered on my new Debian Stretch server. But I don't understand what's happening.
SERVER1 (hostname: wocky, IP: 10.0.0.2)
- A sample of lines from /etc/fstab look like this:
A sample of lines from /etc/exports look like this:
Code: Select all
/media/archive /share/archive none bind 0 0 /media/audio /share/audio none bind 0 0 /media/downloads /share/downloads none bind 0 0
Code: Select all
/share *(rw,fsid=0,no_subtree_check,sync) /share/archive 10.0.0.10(rw,nohide,sync,no_subtree_check) /share/audio wstation(rw,nohide,sync,no_subtree_check) /share/downloads *(rw,nohide,sync,no_subtree_check)
- This PC can mount each of these fine:
Code: Select all
$ df -hT ... wocky:/archive nfs4 11T 8.1T 2.3T 79% /media/not/archive wocky:/audio nfs4 11T 8.1T 2.3T 79% /media/not/audio wocky:/downloads nfs4 11T 8.1T 2.3T 79% /media/not/downloads
- This PC can also mount these, but only the last one works correctly:
The first 2 will mount (and will show as mounted), but only show 2 dot entries (for current and parent directory). The actual files that are contained in those shares are not shown.
Code: Select all
$ df -hT ... wocky:/archive nfs4 11T 8.1T 2.3T 79% /media/not/archive wocky:/audio nfs4 11T 8.1T 2.3T 79% /media/not/audio wocky:/downloads nfs4 11T 8.1T 2.3T 79% /media/not/downloads
Secondly, some sort of phantom mount is being created for each of the first 2. I can write files into the mount point afterward, they appear in directory lists, I can umount the shares, and the files disappear. Remount, and they are back. The disk space is clearly large enough to be SERVER1, but if I search for those files whilst on SERVER1 (using find, etc...), they don't exist.
I have power-cycled all 3 machines.
Hoping someone more experienced with NFS than myself can please advise what's going on here? Where do files placed into these phantom mounts actually write to? I'm at a loss. Please note: I'm not actually trying to get PC2 to mount these - I discovered this by accident and and trying to understand how it happened.