Link to home
Start Free TrialLog in
Avatar of bruce_77
bruce_77

asked on

Exchange 2007 RSG query

Hi

Ref: http://www.msexchange.org/tutorials/Working-Recovery-Storage-Groups-Exchange-2007.html

I understand the command to create an RSG in 2007 is:

New-StorageGroup –Server E2K7S04 –LogFolderPath “E:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\RSG" –Name “Recovery Storage Group” –SystemFolderPath “E:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\RSG” –Recovery

Can someone tell me what the difference between the LogFolderPath and SystemFolderPath is? What files actually go in there?

I guess the LogPath is for the transaction logs and restore.env file, what about the SystemFolderPath, is this for the actual restored database and checkpoint file path? Could someone confirm this? Should these both point to the same location or different?

What confuses me is that the next step is to create the EDB file:

New-MailboxDatabase –MailboxDatabaseToRecover “Mailbox Database” –StorageGroup “E2K7S04\Recovery Storage Group” –EDBFilePath “E:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\RSG\Mailbox Database.edb”

But why can't we just use the EDB file that gets restored by the backup?
ASKER CERTIFIED SOLUTION
Avatar of MegaNuk3
MegaNuk3
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bruce_77
bruce_77

ASKER

Hello

Ok, understood about the DB bit

Can you tell me what files go to the systemfolderpath and which ones for the logfilepath? I assume the actual recovered edb is not involved in either of these?
The recovered EDB will go into the SystemFolderPath normally. The .chk file will go there too.

All the log files go into the logfilepath - which you already know.
So the SystemFolderPath is just for the chk file then really? Because we are specifying where the EDB file is going with the -EDBFilePath command as part of the below:

New-MailboxDatabase –MailboxDatabaseToRecover “Mailbox Database” –StorageGroup “E2K7S04\Recovery Storage Group” –EDBFilePath “E:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\RSG\Mailbox Database.edb

Anything else that goes in as part of the SystemFolderPath?

Yep, just the .chk file then.

You can create the RSG and DB from the EMC instead if you want from EMC--> Toolbox.

You can use the same location for all the files and don't forget to remove the RSG and it's files when you are finished - I have seen RSGs mess up log truncation on the production database after backups a few times
Thanks for the help, MegaNuk3!

In terms of the location for the LogFolderPath, SystemFolderPath and the EDB file that we create (which is subsequently overwritten), is there any issue with having these all in the same location? Because I know there are restored log files and the R000.log type log files which may conflict and also the chk and restore.env files which may conflict as well?

From my understand the R000.log files are created when we create the EDB file that is going to be overwritten and the restore.env file is like a chk file but for the restored DB (i.e. it says what log files need to be replayed etc)
Having them all in the same location is not a problem - just remember to create a new directory for the RSG so you have no chance of conflicting with old/existing files from previous restores etc.

The RSG is intelligent so you will not have conflicting files during the restore to it. The log files get renamed to R000x.log during the restore.

Dont worry about restores to the RSG as it does what it says and us pretty hard to get wrong... You can just start the restore again if you need to OR worse case scenario, you can eseutil /p the RSG EDB...
""The log files get renamed to R000x.log during the restore."

If the backup software backed up E01xxxxxx1, E01xxxxxxx2, E01.log, are you saying that when these are restored, they are restored as R01xxxxxx1.log, R01xxxxxxx2.log etc? Does this not cause a problem when these logs need to be replayed into the database?

Yep, they are restored as you said and no the renaming of them does not cause issues because as I said, the RSG is intelligent... The logs are only renamed in the the restore to the RSG, if you were to do a restore to production then the logs would not get renamed.
This link will explain it better(more correctly) than I can:
http://technet.microsoft.com/en-us/library/aa998362(v=exchg.65).aspx

I know it is for Exchange 2003, but the concept is still the same.