Solved

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

Posted on 2014-12-05
8
138 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
  • 5
  • 3
8 Comments
 
LVL 24

Expert Comment

by:VB ITS
Comment Utility
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
Comment Utility
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
Comment Utility
Also when I run thst command, I get a quota error due to having too many log files.
0
 
LVL 5

Accepted Solution

by:
jkeegan123 earned 0 total points
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 24

Expert Comment

by:VB ITS
Comment Utility
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
Comment Utility
@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
Comment Utility
Fair enough! Job well done then :)
0
 
LVL 5

Author Closing Comment

by:jkeegan123
Comment Utility
This was the answer to the question.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
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…
In this video we show how to create an email address policy 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 Mail Flow…

772 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

11 Experts available now in Live!

Get 1:1 Help Now