Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move Exchange 2010 transaction logs for the data store

Status
Not open for further replies.

jlh1

MIS
Mar 26, 2001
65
US
I have a question about Exchange 2010 transaction logs for the data store.

I currently store the database and the transaction logs in the same folder on the same drive.
I would like to move these transaction logs to another drive and folder and then have them built there.

I noticed on the database move wizard you can specify the location of the database and the log files.

Can I use the wizard to move the location of the log files only to another drive and directory?

Will the backup software (BackupExec 2010) be able to clear these logs after a full backup is preformed?

Thanks
Jlh1
 
Use the shell:

Code:
[url=http://technet.microsoft.com/en-us/library/dd351168.aspx]Move-MailboxDatabase[/url] myDB -LogFolderPath c:\myDB\logs

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Great Thanks.

Just so I have it straight.

In the Powershell command Move-mailboxdatabase the identity (MyDBName) is for reference to the DB file and the
–LogFolderPath c:\myDB\logs is the new location where the existing log files will be moved and new logs will be created.

This will move the log files to the new location and leave the database in its current location.

I have two exchange servers with a DAG and will be moving both servers log files. Do you recommend that I complete the move on one before starting the other? Does it matter which server I start with?

While the logs are being moved to their new location I believe the exchange server is unavailable. Is that correct?


jlh1
 
Yes, you are correct on your first part.

Moving them for DAG members is a little more involved. You have to dismount the db, use the -ConfigurationOnly switch to change the AD parameter, then manually move the logs on each DAG member that has a copy of the database. Remember, they paths have to be identical on each DAG member. Then mount the database.

If you do it on just the first database, then mount it, the copies will show in a failed state, and you'll have to reseed (IIRC).

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Thanks again.

Forgive me if I’m being too careful,

I would dismount both databases, run the following command and then manually copy the logs to the new location.
On both servers, then mount the databases on both servers.

Move-MailboxDatabase MyDBdb -ConfigurationOnly
-LogFolderPath f:\ExchangeData\Logfiles

"The ConfigurationOnly switch specifies whether the configuration of the database changes without moving any files. A value of $true changes the configuration. A value of $false changes the configuration and moves the files. The default value is $false."

One more question, the ConfigurationOnly switch has two parameters True and False. False is the default but if I understand the definition False would also prompt the files to be copied? Is this true?

jlh1


 
Using -ConfigurationOnly sets it to $true, which is what you want. The rest that you're asking is correct.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top