Solved

Error gets while defrag database on Exchange 2010 server

Posted on 2011-09-08
8
1,883 Views
Last Modified: 2012-05-12
We want to run the defragmentation on one of Exchange 2010 database. Integrity check done successfully but when we run defrag command we get the error. Following are the error details. The database on which we are doing defragmentation is dismounted and no more mailboxes exist in this database. We are saving tempdefrag.edb on other network server as we do not want it to be saved on any Exchange server drive. Other network server is accessible from Exchange server. Would you please assist us why we are getting this error.
[PS] C:\Windows\system32>ESEUTIL /D "D:\MailboxDB\Mailbox Database 1494701467\Mailbox Database 1494701467.edb" /t\\jrncl
tmonitor\defrag\temp.edb

Extensible Storage Engine Utilities for Microsoft(R) Exchange Server
Version 14.01
Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating DEFRAGMENTATION mode...
            Database: D:\MailboxDB\Mailbox Database 1494701467\Mailbox Database 1494701467.edb

                  Defragmentation Status (% complete)

          0    10   20   30   40   50   60   70   80   90  100
          |----|----|----|----|----|----|----|----|----|----|
          X
Operation terminated with error -1032 (JET_errFileAccessDenied, Cannot access file, the file is locked or in use) after 10.108 seconds.
0
Comment
Question by:ShailendraJadhav
8 Comments
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36501976
You have enough free space? there needs to be 125% of the DB size free to complete defrag
0
 
LVL 9

Expert Comment

by:akitsupport
ID: 36501994
Have you stopped the right services before running this?

http://support.microsoft.com/kb/148645

It links to an older version but principals are still the same.

Also as 5g6tdcv4 has said you need the space to run the defrag.
0
 
LVL 49

Assisted Solution

by:Akhater
Akhater earned 500 total points
ID: 36502698
1. The database on which we are doing defragmentation is dismounted and no more mailboxes exist in this database.

Why defrag it then ? if it contains no mailboxes just delete the edb file and mount it again it will create a new EDB file for you

2. We are saving tempdefrag.edb on other network server as we do not want it to be saved on any Exchange server drive. Other network server is accessible from Exchange server. Would you please assist us why we are getting this error.

Here is your problem, your network share is not read/write
0
 

Author Comment

by:ShailendraJadhav
ID: 36503825
We had some issue of backup of this database. So we created new database and moved all its mailboxes to this new database. Now to resolve this database backup issue we did run integrity check and which completed successfully and now running defrag to get actual size of this database, We are in plan to use this database again. Moreover as we do not want defrag should use to save tempdefrg.edb file  on same Exchange server we have given different temporary location which is different server drive and its having more than enough space as required. Command we are running is "ESEUTIL /D "D:\MailboxDB\Mailbox Database 1494701467\Mailbox Database 1494701467.edb" /t\\jrncltmonitor\defrag\temp.edb". In that we jrncltmonitor is other server path and defrag is shared folder ion this .which having ample space to save tempdefrg.edb file.But we get error while running this above command. Error mentioned in the case.Thanks
0
Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

 

Author Comment

by:ShailendraJadhav
ID: 36503919
Thanks Akhater , I have given all necessar permission to Other network server share drive, I will run defrag after office hours today, we will let you know the result. Thanks
0
 
LVL 49

Expert Comment

by:Akhater
ID: 36504073
I still dont get it,since you creted a new db and moved all the users to the new db just delete this one! Why spending the time to defrag?
0
 

Author Comment

by:ShailendraJadhav
ID: 36507839
This is default database which was created while installing Exchange 2010 server. We are not sure what will be effect if we deleted .edb file then again remount the database to create new .edb file.
Can we delete this default database which was created by Exchange 2010 server itself while installing it? We have another 4 databases which we created later manually . Sorry I am not expert in Exchange 2010 thats why bit afraid to delete this default one as its Production server.Please assist.
0
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
ID: 36508301
sure you can,

just run the command
get-mailboxdatabase -arbitration you will see a couple of hidden mailboxes, you can move them to any other db using

get-mailboxdatabase -arbitration | new-moverequest -targetdatabase "other db"

when the move is done you can just delete this one with no effect
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now