Asked by:
Clean up unnecessary space

Question
-
Hi,
I am to clean up unnecessary space of Exchange 2010 as the Win 2008 server has only 2.5 Gb left. But I get this now.
C:\Windows\SoftwareDistribution\DataStore>eseutil /MH DataStore.edb Extensible Storage Engine Utilities for Microsoft(R) Exchange Server Version 14.01 Copyright (C) Microsoft Corporation. All Rights Reserved. Initiating FILE DUMP mode... Error: Access to source database 'DataStore.edb' failed with Jet error -1032. Operation terminated with error -1032 (JET_errFileAccessDenied, Cannot access file, the file is locked or in use) after 0.31 seconds.
Many Thanks & Best Regards, Hua Min
Wednesday, April 16, 2014 3:56 AM
All replies
-
Why are you doing that?
The best way to do what you want is to create a new database, move all the mailboxes to it from the database you think has too much wasted space, and then remove the old database. If you don't have enough space to do that, you certainly don't have enough space to do an ESEUTIL /D, which is the command you'd use to compact the database.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
- Marked as answer by cara chenModerator Monday, April 28, 2014 9:00 AM
- Unmarked as answer by Jackson_1990 Tuesday, April 29, 2014 9:59 AM
Wednesday, April 16, 2014 5:40 AM -
The best way to do what you want is to create a new database, move all the mailboxes to it from the database you think has too much wasted space, and then remove the old database.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Many Thanks & Best Regards, Hua Min
Wednesday, April 16, 2014 6:16 AM -
1. Create new mailbox database.
2. Move all mailboxes from the "too big" database to the new one.
3. Remove "too big" mailbox database.
Run backups or enable circular logging if you don't have enough space for all the log files associated with the new database.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
- Marked as answer by cara chenModerator Monday, April 28, 2014 8:59 AM
- Unmarked as answer by Jackson_1990 Tuesday, April 29, 2014 10:00 AM
Wednesday, April 16, 2014 6:27 AM -
1. Create new mailbox database.
Many Thanks & Best Regards, Hua Min
Wednesday, April 16, 2014 6:57 AM -
I don't know what you mean by "relevant Mailbox" since no mention has been made in this thread of any mailbox.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Thursday, April 17, 2014 12:00 AM -
Hello,
When your database is online and mounted, you will not be able to perform any actions with Eseutil.exe. So you need to dismount your database.
It is not recommended that using eseutil.exe if there is no enough disk space. We recommend you do full backup for your database on schedule to release some disk space.
You can use Windows Server Backup to back up your exchange server, or use Microsoft System Center Data Protection Manager, or a third-party Exchange-aware VSS-based application.
If you have any feedback on our support, please click here
Cara Chen
TechNet Community Support- Marked as answer by cara chenModerator Monday, April 28, 2014 8:59 AM
- Unmarked as answer by Jackson_1990 Tuesday, April 29, 2014 10:00 AM
Thursday, April 17, 2014 2:39 AMModerator -
I don't know what you mean by "relevant Mailbox" since no mention has been made in this thread of any mailbox.
Any details to create "new mailbox database"?
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Many Thanks & Best Regards, Hua Min
Thursday, April 17, 2014 2:53 AM -
New-MailboxDatabase
http://technet.microsoft.com/en-us/library/aa997976(v=exchg.141).aspx
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
- Marked as answer by cara chenModerator Monday, April 28, 2014 8:59 AM
- Unmarked as answer by Jackson_1990 Tuesday, April 29, 2014 10:00 AM
Thursday, April 17, 2014 4:00 AM -
Hello,
Is there any update?
If you have any feedback on our support, please click here
Cara Chen
TechNet Community SupportMonday, April 21, 2014 2:06 AMModerator -
New-MailboxDatabase
http://technet.microsoft.com/en-us/library/aa997976(v=exchg.141).aspx
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Many Thanks & Best Regards, Hua Min
Tuesday, April 22, 2014 9:30 AM -
Hello,
Did you try my suggestions?
Before you run New-MailboxDatabase cmdlet, you need to be a member of "organization management role group" and "server management role group" . You can use get-rolegroupmember "organization management" cmdlet and get-rolegroupmember "server management" cmdlet to check if you have been a member of these role groups.
If you aren't a member of these role groups, please use add-rolegroupmember cmdlet add your account to these group.
If you have any feedback on our support, please click here
Cara Chen
TechNet Community Support- Edited by cara chenModerator Wednesday, April 23, 2014 6:53 AM edit
- Marked as answer by cara chenModerator Monday, April 28, 2014 8:59 AM
- Unmarked as answer by Jackson_1990 Tuesday, April 29, 2014 8:20 AM
Wednesday, April 23, 2014 6:53 AMModerator -
Hello,
Is there any update?
If you have any feedback on our support, please click here
Cara Chen
TechNet Community SupportFriday, April 25, 2014 3:58 AMModerator -
Hello,
Did you try my suggestions?
Before you run New-MailboxDatabase cmdlet, you need to be a member of "organization management role group" and "server management role group" .
Many Thanks & Best Regards, Hua Min
Tuesday, April 29, 2014 8:21 AM -
Exchange Management Shell.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Tuesday, April 29, 2014 2:47 PM -
Sorry, I get this
[PS] C:\Windows\system32>cmdlet The term 'cmdlet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spel ling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:7 + cmdlet <<<< + CategoryInfo : ObjectNotFound: (cmdlet:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
within Exchange management console.Many Thanks & Best Regards, Hua Min
Wednesday, April 30, 2014 1:40 AM -
Hello,
I mean you can run "New-MailboxDatabase" cmdlet in EMS. Do you refer to the above link on the cmdlet "New-MailboxDatabse"?
Or you can do full backup for your exchange server as my above suggestions.
If you have any feedback on our support, please click here
Cara Chen
TechNet Community SupportWednesday, April 30, 2014 6:13 AMModerator -
Thanks.
Is it to run this
New-MailboxDatabase -Name "MailboxDatabase01" -EdbFilePath D:\DatabaseFiles\MailboxDatabase01.edb
within Exchange management console?Many Thanks & Best Regards, Hua Min
Wednesday, April 30, 2014 6:30 AM -
Hello,
You can run the above cmdlet within Exchange management shell, not Exchange management console. you can add server parameter and LogFolderPath parameter when run New-MailboxDatabase cmdlet.
If you have any feedback on our support, please click here
Cara Chen
TechNet Community SupportWednesday, April 30, 2014 6:47 AMModerator -
Hi,
I am not sure about the syntax of doing that. Is it to put the relevant ".edb" file that is from the current server, like this?
New-MailboxDatabase -Name "MailboxDatabase01" -EdbFilePath D:\DatabaseFiles\MailboxDatabase01.edb
Many Thanks & Best Regards, Hua Min
- Edited by Jackson_1990 Saturday, May 3, 2014 8:36 AM
Saturday, May 3, 2014 8:36 AM -
Seriously, you need to get some Exchange training. I recommend that you take an administrator class and/or buy a good book.
This is a good one, and there are others.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Saturday, May 3, 2014 6:54 PM -
Can you please advise what I should adjust below?
[PS] C:\Windows\system32>New-MailboxDatabase -Name "MailboxDatabase03" -EdbFilePath "C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0879488102\Mailbox Database 0879488102.edb" cmdlet New-MailboxDatabase at command pipeline position 1 Supply values for the following parameters: Server: WIN-BVDIC8GIAHI.win08.huamin.com The specified .edb file path ('C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0879488102\Mailb ox Database 0879488102.edb') is already in use by another database on the server. Please specify a different .edb file path. Parameter name: EdbFilePath + CategoryInfo : InvalidArgument: (MailboxDatabase03:ADObjectId) [New-MailboxDatabase], ArgumentException + FullyQualifiedErrorId : 78602C6B,Microsoft.Exchange.Management.SystemConfigurationTasks.NewMailboxDatabase
Many Thanks & Best Regards, Hua Min
- Edited by Jackson_1990 Tuesday, May 6, 2014 2:33 AM
Tuesday, May 6, 2014 2:13 AM -
Put the file path in quotes. Be sure that's where you want the file to go. Most don't keep their databases on the C: drive.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Tuesday, May 6, 2014 2:25 AM -
Many thanks. I did put some unnecessary details a while ago, in above. I have already quoted the full path above. Can you please advise?
Many Thanks & Best Regards, Hua Min
- Edited by Jackson_1990 Tuesday, May 6, 2014 2:51 AM
Tuesday, May 6, 2014 2:34 AM -
Did you read the error message?
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Tuesday, May 6, 2014 3:03 AM -
-
Hi all,
I don't know what to input next, in the following?
[PS] C:\Windows\system32>New-MailboxDatabase -Name "MailboxDatabase03" -E"C:\Program Files\Microsoft\Exchange Server\V14 \Mailbox\Mailbox3" "C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 0879488102\Mailbox Database 0879488102.edb" >> >> >>
Many Thanks & Best Regards, Hua Min
- Edited by Jackson_1990 Tuesday, May 6, 2014 6:22 AM
Tuesday, May 6, 2014 6:20 AM -
Seriously, take a class and/or read a book. You do not have the necessary skill set to run Exchange. You cannot expect the TechNet Forums to guide you in each and every step you must follow in your daily duties.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Tuesday, May 6, 2014 6:44 PM -
I was just stuck with the problem to such parameter
"-EdbFilePath"
when running
New-MailboxDatabase
Can any other people please help?Many Thanks & Best Regards, Hua Min
Wednesday, May 7, 2014 9:00 AM -
http://www.lmgtfy.com/?q=New-MailboxDatabase+EdbFilePath
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Friday, May 9, 2014 12:23 AM