• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 50
  • Last Modified:

mailbox database failover

Hi ,

I need a cmdlet or script which can be used in below task.

15 databases are mounted in on DAG which consist 4 member servers. All db's are mounted on MBX01 and MBX02,MBX03 and MBX04 has healthy copy of dbs.

I want to mount all 15 dbs on MBX02 adn reboot the MBX01 and then again i want to mount all dbs back to MBX01.

Please help
0
Manish Kumar
Asked:
Manish Kumar
  • 2
2 Solutions
 
Joseph DalyCommented:
You could probably do something like below.

Get-MailboxDatabase * | Move-ActiveMailboxDatabase -ActivateOnServer 'servername' -MountDialOverride 'None' -Confirm:$false -TerminateOnWarning

This will move all mailboxes to the server you specify.

Alternatively if you want to be more specific you can do

Get-MailboxDatabase {databasename} | Move-ActiveMailboxDatabase -ActivateOnServer 'servername' -MountDialOverride 'None' -Confirm:$false -TerminateOnWarning
0
 
Will SzymkowskiSenior Solution ArchitectCommented:
I personally would not do this via a script as you want to make sure that databases are transferred correctly one by one. You also need to take into consideration what version of Exchange you are running. If you are only running standard then you are limited to 5 databases on a single server.

I don't see the need to use a script for this, be patient and wait for the mailboxes to fail-over and monitor this activity.

Will.
0
 
Manish KumarSr. Technical ConsultantAuthor Commented:
Thanks Joseph,

It was exactly what i need.
0
 
Manish KumarSr. Technical ConsultantAuthor Commented:
Thanks Will,

Your suggestion is really valuable and i performed it one bye one by using cmdlet.

Task has been completed successfully
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

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

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now