We are using autofs to mount an NFS partition from a local server. We have a redundant server and we are failing over to this using the method mentioned in that autofs(5) man page. This is all working fine. What we would like to do is add a third failover to a mountpoint that is determined by a script, denoted by the "program:/path/to/script" in auto.master.
The reason for this is that we are keeping a redundant copy of some software tools that are stored far from our site on slow servers on local fast servers. We want to use these local servers predominantly, but then if neither of them is available, failover to the slow server. The mountpoints of the remote servers are controlled via a script, and may be changed without our knowledge, so we can't simply add another host to the redundant list.
Does anyone know if this can be done and how?