Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 3457

Sync DAG powershell issue

$
0
0

Hi guys.

Having issues if I create powershell script that I would need to put some "timeouts inside".

Script contains:

add-mailboxdatabasecopy "database-name" –mailboxServer "exchange2013FQDN" –seedingPostponed:$TRUE
Suspend-MailboxDatabaseCopy -Identity "database-name\EXCHANGE2013" –ActivationOnly
set-mailboxdatabase "database-name" –circularLogging:$TRUE
Dismount-Database -Identity "database-name" –confirm:$false
Mount-Database -Identity "database-name" –confirm:$false
update-mailboxdatabasecopy "database-name\exchange2013FQDN" –deleteExistingFiles:$TRUE –confirm:$false
set-mailboxdatabase "database-name" –circularLogging:$FALSE
Dismount-Database -Identity "database-name" –confirm:$false
Mount-Database -Identity "database-name" –confirm:$false

But i recieve an error:

The seeding operation failed. Error: An error occurred while running prerequisite checks. Error: Replication for databa
se 'DATABASE-name' is not suspended. You must suspend replication before seeding. Use the Suspend-MailboxDatabaseCopy cmdlet t
o suspend replication for the database.

I Guess that between lines:

add-mailboxdatabasecopy "database-name" –mailboxServer "exchange2013FQDN" –seedingPostponed:$TRUE
Suspend-MailboxDatabaseCopy -Identity "database-name\EXCHANGE2013" –ActivationOnly

I should put some "hold", "timeout"... how to achieve that?


bostjanc


Viewing all articles
Browse latest Browse all 3457

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>