I have two Linux servers ATM that are 100% clones of each other and they use NFS mounts for writing log files to a single NAS. The IPs get NAT'd to a unique IP so there are no IP conflicts and they can talk to the shared NAS. When both servers are on at the same time they are overwriting each other's logs because they are both writing the same file names. My easy solution is the change both of the machine's fstab to make the servers mount different locations:
Original Server1 fstab: nas1:/data /data
Original Server2 fstab: nas1:/data /data
Modified Server1 fstab: nas1:/server1/data /data
Modified Server2 fstab: nas1:/Server2/data /data
The issue here is scalability. If I was to make 10 clones it might be managable to modify the fstabs but not so much at 100+. I don't have control over how the clones are made I just get the servers pre-built with cloned images already loaded. So I'd be stuck manually modifying each server.
I'm wondering if there are any alternatives floating out there that can deal with something like this. I'd like a mechanism that could somehow translate the fstab entries: nas1:/data to nas1:/server1/data. The "server1" can be anything really just as long as it maps to something unique that I can use to distinguish between server logs.