This can't be done automatically. To stay on this track, you will need to
write/extend a monitoring tool and use the NetDfsSetInfo() API
level 101 to adjust which target is ONLINE/OFFLINE.
However, this has dramatic downsides. The reason you are doing this is to
keep all write activity, I assume, on one target. If more than one target is
being used, not only do locks not get propagated but you're also subject to
changes on either target overwriting changes on the other - the last update
On failover, we assume all clients stop talking to the server that fails -
it explodes, etc.When it returns, clients do not have a similar hard stop
that causes them to all go back to the primary at once. In fact there is no
way to force them back without failing the backup. Marking the link target
offline does not turn off file sharing, it only removes the target from the
list of targets a client machine will get the next time it refreshes its
link target cache.
You can see this cache with "dfsutil /pktinfo".
I would suggest using a cluster for availability in this case.
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
Post by Danny
I have two Windows 2003 servers with DFS having root targets on both servers.
I have also setup links on both servers to provide fault tolerance. The
data is replicating as expected. We have disabled referral on our "backup"
server since the data can be accessed by multiple people at the same time,
this seemed to be the only way to insure file locks for these files. I
understand that by doing this, if our "primary" server goes down there is no
automatic fault tolerance to switch to the "backup" server. Our intent is to
use this for maintenance - if we need to take down the "primary" server, we
will disable the referrals for it and enable the referrals for the "backup"
server. My questions is, how do I enable/disable referrals if my "primary"
server goes down unexpectedly? The DFS GUI console will not show the root on
the "backup" server when the "primary" server is unavailable. I've reviewed
the command line utility for DFS, but I don't see any switches relating to