I have a sftp server running on Centos 5.10. It servers as upload/download interface for three users who basically are chrooted to three different locations.
User A -- > /home/REGIONA/
User B -- > /home/REGIONB/
User C -- > /home/REGIONC/
The users run certain application procedures on app servers and on the app servers the code uploads data to the sftp server, there are three app servers for three users
Say
APP server A
APP server B
App server C
I have setup the autofs mounts on the Apps servers, where the application code upon completion will go to the mount point and dump the data
example
/sftp/REGIONA/upload --> from APP server A
/sftp/REGIONB/upload --> from APP server B
/sftp/REGIONC/upload --> from APP server C
Everything works fine.
Now coming to the issue, I have a requirement of making the "UPLOAD" region common across all the three app servers so what i did was
mkdir /opt/upload
mount -o bind,rw /opt/upload /home/REGIONA/upload
mount -o bind,rw /opt/upload /home/REGIONB/upload
mount -o bind,rw /opt/upload /home/REGIONC/upload
Now, this works OK if i upload data from filezilla/winscp
However from the App servers which do a autofs mount of the remote ( sftp ) servers filesystems , they are not recognizing upload to be a bound mount.When I upload data
programmatically from the app servers the data si not visible
for example
From APP server A I run the script / application code
I does not show up on /home/REGIONA/upload
and when I umount /home/REGIONA/upload, it shows up.
I figure its an issue with autofs recognizing an underlying mount binded sub directory on the remote filesystem.
Any ideas ?