Andrew Beckett
Senior Fellow
Offline
Life, don't talk to me about Life...
Posts: 1742
Bracknell, UK
|
In general you should not need to delete lock files, and in fact you should be very cautious when doing so.
Provided there is a daemon "clsbd" running on each machine which can run the IC tools - this is normally auto-started the first time you run the software, but it's a good idea to start it at boot time - things should work smoothly.
What happens is that when you try to open a cellView with a lock file, it sees from the lock file which machine it was locked on, and the process id of the process which locked it. It then tries to ask the clsbd on that machine whether that process is still running. If it manages to talk to clsbd and clsbd indicates that the process is no longer running, the lock can be reclaimed. If the process is still running, or it can't communicate with clsbd, then the lock remains.
So, provided that clsbd is running, and your network is responding properly, the only things that should require lock files to be removed are:
a) the machine which formerly had the lock is no longer on the network (for example, it has died and has gone to meet its maker) b) somebody tarred up something from their network with lock files in and sent it to you (which happens to us in customer support all the time!).
If you are sure that this is the case, then it is safe to remove the locks. It's a good idea to use clsAdminTool to find and inspect the locks first, and then delete them. Note, clsAdminTool doesn't check that it's safe to remove the locks - because you wouldn't be running it if it could determine that!
The danger of removing lock files is that somebody else might be editing the files, and there's a chance of lost data since both editing sessions think they control the file. For example:
1. User A opens and locks the cellView, and starts making edits. 2. User B finds that the cellView is locked, and so blows away the locks and starts editing. 3. User B saves his changes and closes the cellView (which clears the lock). 4. User A saves his changes (which re-locks the cellView).
As if by magic, everything user B did got lost. I saw this recently at a customer who was blindly deleting lock files without considering the impact, and then complaining about things going missing...
Regards,
Andrew.
|