Solved

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

Posted on 2014-12-05
8
144 Views
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:

<--SNIP-->

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

<--SNIP-->

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!
0
Comment
Question by:jkeegan123
[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
  • 5
  • 3
8 Comments
 
LVL 24

Expert Comment

by:VB ITS
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.
0
 
LVL 5

Author Comment

by:jkeegan123
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.
0
 
LVL 5

Author Comment

by:jkeegan123
ID: 40484745
Also when I run thst command, I get a quota error due to having too many log files.
0
Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

 
LVL 5

Accepted Solution

by:
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.
0
 
LVL 24

Expert Comment

by:VB ITS
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.
0
 
LVL 5

Author Comment

by:jkeegan123
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!
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40490235
Fair enough! Job well done then :)
0
 
LVL 5

Author Closing Comment

by:jkeegan123
ID: 40498679
This was the answer to the question.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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