NFS question

I have the following process in place on one of my servers. On server ABC an application creates reports (a unique file name is generated each time) and writes them to directory /a/b. A different application creates reports (a unique file name is generated each time) and writes them to directory /a/b/c. A script runs at the top of each hour which moves the files, via scp, in directory /a/b to server DEF and moves the files in /a/b/c to server XYZ.

I would like to eliminate the script and have the applications write the reports directly to servers DEF and XYZ using NFS.

Is it possible to do this without having to modify the application that writes to a/b/c in order to write the files to a different directory? If it is possible, do I place the NFS mount in /etc/fstab for /a/b/c in front of the entry for /a/b?

Harley

Hi Harley,

you can mount DEF:/…/b to your local /a/b mount point.

DEF:/…/b will need to have a sub-directory “c”.

You then can mount XYZ:/…/c to local /a/b/c.

The order in fstab will have to be first mount /a/b, then mount /a/b/c.

You local directory “/a/b” (serving as the mount point for DEF:/…/b) does not need to have a “c” subdirectory, and for clearness’ sake I’d even advise against it.

Regards,
Jens