Exchange 2010 Restore Storage Group - Too many logs prevents RESTORE STORAGE GROUP (RSG) from being created

Posted on 2014-12-05
Last Modified: 2014-12-14
I have an Exchange 2010 server that I am trying to create a RESTORE STORAGE GROUP on, but it's failing because there are too many log files.   The error that I am getting is:


Failed to connect to target server "MYSERVER1". Error: WMI exception occurred on server '': Quota violation
    + CategoryInfo          : InvalidOperation: (:) [New-MailboxDatabase], InvalidOperationException
    + FullyQualifiedErrorId : 707BD31B,Microsoft.Exchange.Management.SystemConfigurationTasks.NewMailboxDatabase


I have looked into this error, and it is because there are too many logs in the restored EDB and log file bundle.  I need to use ESEUTIL I believe to sync the logs into the database, but I am unsure how to do this.  I've tried "ESEUTUL /r" and "ESEUTIL /cc" but /r fails and /cc does not have a restore.env file to work with.

The files were restored from Barracuda Backup appliance, and I selected to restore to a folder instead of to a restore storage group.  The database restored is about 500GB in size, and the logs were about 300GB more.  The restore takes so long that I really cannot restore again to a storage group directly....I just want to know what is the most efficient way to marry the log files into the EDB file?  They're all in the same folder.

Help is appreciated...thanks!
Question by:jkeegan123
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
  • 5
  • 3
LVL 24

Expert Comment

ID: 40484565
Firstly check if the database is in a Clean Shutdown state by running the command eseutil /mh "database name.ebd"
Barracuda should be Exchange-aware so hopefully your database will be in a Clean Shutdown state.

If it is, create a new logs directory in the folder containing the recovered database and log files.

For example if you have restored the database and log files to D:\Recovery\ then the new logs folder would be D:\Recovery\logs

Next step would be to run the below command in the Exchange Management Shell:
New-MailboxDatabase -Recovery -Name RecoveryDB -Server MailboxServerName -EdbFilePath D:\Recovery\RecoveryDB.edb -LogFolderPath D:\Recovery\logs

Open in new window

Now go mount the database and see if this works.

Author Comment

ID: 40484742
The database is in dirty Shutdown, the logs will need to be patched in or eseutil /p will need to be run I think.

Author Comment

ID: 40484745
Also when I run thst command, I get a quota error due to having too many log files.
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.


Accepted Solution

jkeegan123 earned 0 total points
ID: 40485473
The answer to the question that I asked is :

Eseutil /r {log base prefix, ie E02} /d {path to restored db} /l {path to restored logs}

This performs soft recovery and patches logs into db, creating a clean Shutdown state.

The command :New-MailboxDatabase -Recovery -Name RecoveryDB -Server MailboxServerName -EdbFilePath D:\Recovery\RecoveryDB.edb -LogFolderPath D:\Recovery\logs

Performs this automatically, but the command fails with quota error because there are too many log files as I first mentioned in this post.

This command that I first entered fixed the issue by patching all logs in.
LVL 24

Expert Comment

ID: 40485873
Sorry, I didn't have access to a computer all day yesterday.

The command I gave in my previous post is only to be used if your database is in a Clean Shutdown state as this would indicate that your backup software is application-aware in terms of Exchange.

The fact that you had 300GB of log files though would indicate that either your backup software isn't Exchange aware (as a successful Exchange aware backup would actually flush your transaction logs), or your backups aren't configured properly for Exchange. I'm quite sure Barracuda Backup is Exchange aware so I would review your current backup configuration and make sure it's backing up as it's meant to.

Otherwise you will have to go through these same steps when you next perform a restore, i.e. replaying the log files to the database to do a restore, not to mention the lengthy restore times.

Glad you got your issue sorted though, my next suggestion would've have been to use the /r switch but we needed to know the state of the database firstly.

Author Comment

ID: 40490216
@VB_ITS:  I was also surprised at the amount of log files.  It turns out that this was the result of the SMART BACKUP feature of Barracuda, which does a FULL BACKUP automatically, and a LOG ONLY backup (differential) for 14 days.  On the 15th day, it does another FULL backup, and repeats this cycle.  This of course is configurable, and when I use Barracuda Backup services (which I avoid when I can since it takes SO LONG TO RESTORE no matter WHAT the situation) I usually set this to a 5 day smart backup period.

This organization receives SO MUCH EMAIL that 300GB of log files in 14 days was actually VALID.  

I patched the log files in and was then able to mount the EDB file as a RESTORE STORAGE GROUP.  Yay!
LVL 24

Expert Comment

ID: 40490235
Fair enough! Job well done then :)

Author Closing Comment

ID: 40498679
This was the answer to the question.

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
In this video we show how to create a Contact 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 >> Contact ta…
In this video we show how to create an Address List 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 Organization >> Ad…

734 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