Solved

Exchange ESEUtil error 1032 access denied file locked or in use

Posted on 2014-02-02
7
7,839 Views
Last Modified: 2014-02-06
I'm unable to get "eseutil /MH" command to work on an Exchange database. Running Server 2008 R2 and Exchange 2010.

- Dismounted mailbox database
- Attempted ESEUtil command but got error "Operation terminated with error -1032, JET_errFileAccessDenied, Cannot access file, the file is locked or in use"

I've rebooted the server, checked antivirus/backup systems to see if they may be locking the file, re-mounted/dismounted database again, stopped every Exchange service except information store service; no change.

I ran Process Explorer but was unable to find any process that have a lock on this file. Confirmed this with LockHunter program also.

Verified my account has full control permissions on file.

Any ideas?


Jeff
0
Comment
Question by:garner-it
7 Comments
 
LVL 10

Expert Comment

by:Korbus
ID: 39828000
Are you to make a plain old copy of the file?
0
 

Author Comment

by:garner-it
ID: 39828018
Korbus:

With the database dismounted I am able to copy it. When I mount the database, Process Explorer shows a process handle on the file from the Exchange Information Store process. But when I dismount the database, that handle goes away yet ESEUtil still reports the file is locked or in use.

Jeff
0
 
LVL 10

Accepted Solution

by:
Korbus earned 500 total points
ID: 39828056
Can you run ESEutil on your copy?  If so, can you move away or delete the original (while dismounted obviously)?
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 12

Expert Comment

by:Md. Mojahid
ID: 39828747
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39828896
"stopped every Exchange service except information store service"

That is why you are getting a lock error. If you want to run eseutil on a database then you have to stop that service.
Although you haven't said why you are running that utility on the database, because I have never done so on a database that will mount for some time. It is a lot more efficient to create a new database and move the mailboxes. Risk free, no downtime.

Simon.
0
 
LVL 31

Expert Comment

by:LeeDerbyshire
ID: 39829378
I have only a fairly obvious answer, I'm afraid, but ISTR that you see this error even if you simply provide the wrong path to the file. I know that's unlikely, but did you remember to put the file name in quotes if there are any spaces in the path?
0
 

Author Comment

by:garner-it
ID: 39839062
The reason I was trying to run ESEUtil was to verify that the information store was in a "clean shutdown" state before I started to delete thousands of old transaction log files eating up hard drive space. I was following best practice guidance per Microsoft and other references.

Regarding stopping the information store service. I tried that as well; no change. Per the articles I was referencing, the information store should be dismounted prior to running ESEUtil, but nothing is mentioned about having to stop the information store service.

Regarding wrong file path: That's not the case. A different error is generated when the file can't be found.

I've since enabled circular logging on the store temporarily, which automatically cleared out all the old transaction logs, and I've configured a new backup process to ensure a full backup is being performed on the store regularly to clear out the transaction logs which have already been committed. My previous backup software was backing up the individual mailboxes but was not doing a full information store backup which led to a huge number of transaction logs building up.

Thanks for the input.

Jeff
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Read this checklist to learn more about the 15 things you should never include in an email signature.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

756 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