Solved

Error gets while defrag database on Exchange 2010 server

Posted on 2011-09-08
8
1,916 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 

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
 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

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.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
To show how to generate a certificate request 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 Servers >> Certificates…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

735 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