I have a drive mounted at /home/ftpuser/uploads, and the /home/ftpuser folder is also exported via NFS. FTP uploads to the uploads folder work as intended. If I unmount the drive, the files disappear, then reappear when I mount the drive.
On another client, I do a
cp file /nfsmnt/uploads/subdir (where /nfsmnt is the local mount point and /home/ftpuser is exported on the server.) and it copies to the NFS server. The problem is that NFS copies to the server copy to the mount point on the server, instead of to the drive mounted at the mount point. The files uploaded from FTP are there, but I can't see the NFS copied files until I unmount the drive.
Am I missing some server-side option(s)?
EDIT UPDATE: User proposed something I had suspected, that NFS server was starting before the secondary disk was mounted and this was causing files to be copied to the mount point instead of the mounted disk. nfs-kernel-server is started pretty early. I looked through some of the scripts in /etc/rc5.d and didn't see any reference to mounting disks.