Solved

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

Posted on 2014-12-05
8
140 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
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
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…
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…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

808 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