Distributed File System How to prevent to open 1 File 2 times


we installed DFS latlely and now happens the following:

the user accessing the Files through domain.local\Data\share

domain.local\Data\share is at the backend done by 2 servers:

domain.local\Data\share= Server1 and Server2.

How can i prevent that somebody can open a file through DFS from Server1 and another User opens the Same file Through DFS "accidently" from Server2 ?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

brwwigginsIT ManagerCommented:
I don't know if you can fully prevent them with a domain namespeace DFS. However you can control the referral order. From the help

Referral ordering
A referral is an ordered list of targets, transparent to the user, that a client receives from a domain controller or namespace server when the user accesses the namespace root or a folder with targets in the namespace. The client caches the referral for a configurable period of time.

Targets in the client's Active Directory site are listed first in a referral. (Targets given the target priority "first among all targets" will be listed before targets in the client's site.) The order in which targets outside of the client's site appear in a referral is determined by one of the following referral ordering methods:

Lowest cost

Random order

Exclude targets outside of the client's site

You can set referral ordering on the namespace root, and the ordering method applies to all folders with targets in the namespace. You can also override the namespace root's ordering method for individual folders with targets.

You could always use the direct UNC path to the share \\server1\share or \\server2\share to make sure you always land on a specific server.

We've used this method across two sites so no one is accdently access data across a WAN link (used for replcaition and not redundancy link fallback etc).
MaurizioSchmidtAuthor Commented:
you "disabled" the feature of redundancy and only use dfs to replicate files in real time to another server for disaster recovery ? right ?

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.