Solved

Outlook.pst on network drive not locked? No files locked?

Posted on 2009-05-06
11
1,121 Views
Last Modified: 2013-12-23
I have recently set up a freeNAS server (brilliant!) and put all my data on it, including outlook.pst.

In the past when outlook.pst was on my XP machine, I had to use a freebie program called "unlocker" to unlock outlook.pst before backing it up.

However, I have noticed that now it's on a network drive, it never seems to be locked, at least as reported by Unlocker.

In fact, any file on the freeNAS server opened by a Windows app never seems to be locked, according to Unlocker.

I have read somewhere that MS does not support outlook.pst on a network drive - is this the case? I have not had any problems (yet!).

Are there other locking-related things I need to be concerned about when using freeNAS? Why is no file ever found to be locked, even if it's in use by a Windows app?


0
Comment
Question by:johniathome
  • 5
  • 5
11 Comments
 
LVL 9

Expert Comment

by:Jeff Brown
ID: 24313811
in order to lock the files it needs control over the file system.  NAS's typically use some form of linux which has different locking mechanisms.  The pst should be fine on the network as long as the network link does not go down often.  YOU MAKE SURE nothing else is editing the pst while outlook has it open.  The drives file structure stays stable.

--wild
0
 
LVL 62

Expert Comment

by:gheist
ID: 24314268
Unlocker does not support networked files at all.
Try to rename file from other session to see if it is locked.
0
 

Author Comment

by:johniathome
ID: 24314703
gheist:

I dare not try your suggestion with outlook.pst - I have seen too many cases of corruption.

However, I did the following test using a spreadsheet on my freeNAS server:

Open the spreadsheet using Excel on one PC.
Try to open it with Excel on another PC, and it says its locked.

Open the spreadsheet using OpenOffice on one PC.
Try to open it with Excel on another PC, and it allows full edit access, with no mention of locking.

If this test is repeated using notepad and a txt file, there are no locking issues at all.

So, file locking appears to be handled entirely by the app, and not by the OS!
This is not very satisfactory, to put it mildly. Surely it is the OS's responsibility to control multiple consurrent accesses to a file, and make sure it's kept clean and safe?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 62

Expert Comment

by:gheist
ID: 24315396
Dsiable offline files in Windows and try again.
0
 

Author Comment

by:johniathome
ID: 24316055
gheist:
Offline files have been disabled for some time - I have enabled Fast User Switching, which prohibits offline files, for some reason.

Isn't the problem more to do with freeNAS? I believe it is a stripped down version of BSD, about which I know nothing. freeNAS must be aware of when a file is open, and when another user is trying to access it?
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 24318837
It is samba which is serving files to you, it is running on BSD, but that does not change much. By default it locks full files. But may be customized to lock positions
0
 

Author Comment

by:johniathome
ID: 24324166
gheist:

Thanks for your comments.

I have done some poking around in Samba, and find there is  something called "opportunistic locking" (oplocks). This is turned ON in my freeNAS version, in smb.conf, as it is by default in WIndows.

The problem with oplocks is that it allows the Windows client to cache it's writes locally(!) for a long time, to improve performance. But this leaves the door open to a Windows crash, with a loss of all the pending writes. This looks like a horror show to me, in relation to outlook.pst files, which are notoriously prone to corruption anyway. I don't mind this for "normal" Word and Excel files, but outlook.pst is more like a database.

By mucking around with Samba config and Windows reg entries, it is possible to force the Windows app to wait until Samba has committed each write before proceeding. This is total safety, but also totally rubbish performance.

I now know enough about Samba config files and the Windows registry to muck around with oplocks and other things, but I don't know nearly enough to stay out of trouble!

I think the solution for outlook.pst is to keep it on my local Windows PC for the time being to reduce the chances of corruption, and back it up to the NAS server when it's quiet.
0
 
LVL 62

Expert Comment

by:gheist
ID: 24324229
0
 

Author Comment

by:johniathome
ID: 24325130
gheist:

Thanks for the link. It comfirms my other researches.
0
 
LVL 62

Expert Comment

by:gheist
ID: 24329261
Watch in what year it is issued ;) Actually problem is mostly forgotten since people do not use shared files databases, but database servers.
0
 

Author Closing Comment

by:johniathome
ID: 31578404
Thanks gheist, you pointed me in the right direction on this one.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question