We help IT Professionals succeed at work.

File lock software

jsmeyer1
jsmeyer1 asked
on
Hi,

I have a scenario where I have several servers replicating in a realtime sync files over a VPN tunnel. The issue I have is open files being opened by another user on the other end.
Bassically I need to lock files that are open and only allow users to read only or not to open at all.

I have been testing peer sync PeerLock, however it does not work that well if at all.

Does anyone have any suggestions on a simple file lock software package that will detect when files are open on the other end and not allow another user to open that file until it is closed.

Thank you for your help
Comment
Watch Question

Network Administrator, Network Consultant
Top Expert 2011
Commented:
i wish to help but the scenario is not clear

Author

Commented:
Thank you.

Here is a little more detail.

I have a customer with 6 locations. We have setup a disaster recover scenario by having one very robust server at rack space.

Each of the 6 locations have a VPN tunnel to the cloud server at rack space.

The real time replication is working well  and all is great, however the issue we have is this.

#1 customer in boston opens a file from the boston server

#2 Another employee opens the same file from the cloud server, and starts working on the file.

This creates a problem with conflicting data being out into the same file at the same time. So i need software that will sense the file is open on either end( first come first serve) and if another user tries to open the same file, they are prompted it is read open, or that it is in use.

A company called peer software makes a product called peer lock, however that seems not to work well. They have a suite of software that replicates, byte repkicator and file lock, so i think it may be a case of the suite needs to be all together.

Do you know of any software that would do this?

thank you
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
yes , i found it , its playing around registry .. lol , how much you will pay for me ??? :P
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
follow this registry key :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters

create key 23 DWORD call it :
EnableOplocks
the set value to 1

actually i got the benifits of windows XP bugs and used this bug as solution for your case , i tried it on 2 users its work's file the file locked ..
note that there is no need to reboot your server...


good luck mate

Maen Abu-Tabanajeh
Amman - Jordan

Author

Commented:
Hi,  Sorry it took me a while to get back, I was out at a soccer match with my son.

If this works I will pay double

So let me get this straight, I am to perform this registry key on one of the servers or all of them?

Thanks again for your help
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
which the server you have problem with it? and also i have question about this file is it used by many users or single user?
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011

Commented:
i mean try it on one server first if its running fine with you , then do it to other servers its best

Author

Commented:
Not sure  if we are on the same page.

We are talking about many files, word, excel, power point files etc. There is about 1.3 TB of data on the servers right now.

Location, 1,2,3,4,5,6 all replicate data to individual folders on the cloud erver.

When users are out of the office, or need to get data from another office data folder, they go to the cloud server.

If  a user is sitting in NYC, opens a file called xyz.xls  on the NYC server, and another user opens up the same file on the cloud box , that can potentially cause an issue with two people working on the same file, therfore causing a version conflict.

will this happen alot , no, but if this happens on a very big case it could potentially be a disaster.

So I am wondering if your registry edits will help notify the other side that a  file is already open?

Thanks


Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
this solution will lock the file for user that currently use it , so if user from WI currently using xyz.xls , the user in NYC who requested the file from cloud able to read it but can not write on it . i tried on my own computer its work fine.
about notification of course specially with excel , it will popup message either to read only or notify the other user.

Author

Commented:
Ok, but  do you realize for example, that User A with file xyz.xls has it open on a server in NYC,

User B is trying to open that file on the cloud.

How does this registry edit notofy the user on the cloud that the file is open, or better yet how does the server in the cloud know it is open.

I am using a third party replication software which does not notify the otrher side of an open file.

If this registry edit is dependant on using Microsofts DFS replication service then this edit may not work.

Thanks again for your help
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
aha , you need only notifying the next side that the file is open without lock the file ? the registry example that i mentioned is looking file for the user who started use it first for example alan on cloud run's the file and john trying at the same time open the file , john will not be notified that alan is currently open the file , but alan is working on it , an excel side message will popup with option either to open it read only or notify alan that john is opening the file , so john can read but can not save... this the idea , if you need only notification its different idea.

Author

Commented:
I am really not clear now.

I know already that if a file is already opened on the same server and someone else tries to open it, then they will get a read only message.

Whjat I need is

#1 Server in London has file john.doc  open ON THE LONDON SERVER and is working on the file

#2 at the same  time someone else logs onto the cloud and opens the same exact file ( which is on a different server in Chicago ) but joined to the domain. I need the user trying to open that file from the cloud server in chicago to be notified the file is already opened. Even knowing the person that has it open is in Londaon working on the Londaon. Remember all servers replicate data to the cloud.

Can this registry edit notify about open files across a network, I don't see how it can
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
listen up try it first on your computer , you have 2 machines , do the registry that i provided you , then have 2 accounts for example A and B.. put any files in C:\
like doc1 and doc2 ...
open doc1 on account A , then switch user to account B , they try to open Doc1 .. at the same time on account B open DOC2 , then back to account A and Open Doc1 .. tell me what the results

Author

Commented:
I will

I will get the results tomorow when at the office

thanks
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
good luck .. :)
i have to go to sleep its 1:40 AM in amman ..lool , so good night for me and good luck for you , wish this help you solve the problem

Author

Commented:
Thank you very much, I will be in touch tomorrow

You sound like a very nice person

thank you

Author

Commented:
Good morning

This solution did not work. I have talked to my fellow techs about this and we are not sure how one server would notify the other that the file is open.

Looking at it from a pure logical stand point, I don't see how it would work eother.

Remember it's severla servers and workstations all talking together.

Thanks for your help.

Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
the server did not notify , but if A open the file , B will open the File suppose that file was excel file "xxx.xls" ok? now when B trying to open file that's already locked , then excel internal notify the user that the file attempting to be opened is currently in use by another user but not show who is open it .
this just solution but am attempting to find file monitor software

Author

Commented:
Remeber the files that are being opened are on two dofferent servers, I am not sure how a registry edit would notify another server that a fle is open.

It does not seem logical to me, there is no programming in that registry edit that tells me it's going to broadcast out to shares that this file is open

Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
lol , my friend , the idea is simple , we have the file located in Server 1 in NY ok , user1 from NY open the file locally , its locked by operating system .. ok? now the user2 from London attempting to open the file also the user2 from London is reaching the server1 but through cloud , actually the server1 locked the file for exclusive uses for user1 in NY , thus the user2 attempting to open the file .. excel will check the status of file , excel of user2 in london will find the file locked exclusively so its notify user2 that its currently unable to open the file on server1 which is reserved by Operating system..
that's it simply ..say hi to your team , am currently search for files that do same idea.
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
wait a minute , did you say that the file exist on 2 servers? how? maybe something missing in your original scenario , how the file exist on 2 servers and would be open exclusively ?

Author

Commented:
LOL NO no Sir

The files are on two soerate distinct servers that have drive mappings between

The files are replicated using a replication software, bidirectional replication

The file sets are replicated between servers so the file structure looks the same.

The excel file 1 resides in NY and London, and each user is opening the file from the respective servers, not from the same server or the same data drive

TWO DIFERENT DRIVES , WITH THE SAME DATA ON IT.

How in the world can a registry on a server in NYC notify a server in London that it has a file open

Author

Commented:
I just read your second post,

exactly, the files reside on two servers

actually 8 servers, but never mind about that

The files are replicated using a replication software betwwen sites using an MPLS tunnel

Boston, NYC, London, Chicago, Houston, San Fran , Wash DC all replicate to a server that is connected to all sites VIA  a tunnel. These respective sites all replicate to folders that are defined on the cloud server
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:
oooops , i got it now , you need software to monitor the target and source mapped disk if its found the anyone opened the file suppose Mr. NYC opened the file , and Mr. London want to open it , this issue with the software , is there any agent of the replication software exist on london server? the replication is bidirectional so its must exist an agent on london side to get updates from NYC side , what the bidirectional plan? who will replicate from other?? london from NYC or both ? i  mean London-NYC ,NYC - London? other question what the name of replication software you used?

ps : the registry will send user SMS to his mobile "the file you are trying to open is currently busy with someone , so i advice you either to open other file or to got to hell" :-p :-p
Maen Abu-TabanjehNetwork Administrator, Network Consultant
Top Expert 2011
Commented:

Author

Commented:
This was not the solution, we were not on the same page together.