I have two identical servers running Windows 2008 R2. I am using DFS Replication to keep a few shares in sync between the two servers. Each server is a Domain Controller and each server can function in the event the other becomes unavailable including DHCP, DNS, and a number of other things we rely on.
We also have a remote workstation that creates a series of output files and places them up on a share using DFS namespace. It's essentially for backup purposes and reporting.
I have a batch job I can schedule to run each night that examines these files, does a number of things with them and then deletes backup files older than 30 days (if not processed) as one of the final tasks. It's a single script.
I would like this task to run only once on one of the servers but then run on the other server if the "preferred" server is unavailable. Is this capability possible? Can two or more WIN2K8 servers handle this situation?
I could run the job on both servers each night as it's reentrant safe but if I did so, I would probably cause DFS replication headaches; the share in question is in a full mesh configuration.
If not possible any clever tricks to make this work or are there any 3rd party tools.
One idea is to simply run the job from the workstation where the data files are created and copied to the servers. The only problem in doing this is that it's a user's workstation and they sometimes forget and power off the machine at night preventing the daily reports from getting processed.