Exchange 2007 CCR useful commands
Move Clustered mailbox server to another server
Move-ClusteredMailboxServer -Identity:<CMSName> -TargetMachine:<PassiveNodeName> -MoveComment:<Comment>
View Storage group configuration
Get-StorageGroup -Server mbx01 | fl
View the database configuration
Get-PublicFolderDatabase -Identity “mbx01\SG2\Public Folder Store” | Fl
View the status of all storage groups
Get-StorageGroupCopyStatus -Server:<Server>
Or to view the status of a particular storage group
Get-StorageGroupCopyStatus -Identity:<Server\StorageGroupName>
How to view the status of a clustered mailbox server
Get-ClusteredMailboxServerStatus -Identity:<Name>
How to verify the copy of the database
Suspend replication on your passive node
Suspend-StorageGroupCopy -Identity <Server\StorageGroup> -SuspendComment <Comment>
From you %windows%\system32 directory create a shadow copy
Vssadmin create shadow /for=<Volume>
Run this command wherever your ESEUTIL is located to verify the database(default location:%ProgramFiles%\Microsoft\Exchange Server\bin)
Eseutil /k /p20 <Path for VSS Shadow Copy of database>
If ESEUTIL reports non corrupt datbase delete the shadow
Vssadmin delete shadows /For=<Volume>
Moving database location in CCR environment
Suspend replication
Suspend-StorageGroupCopy -Identity <Server\StorageGroupName>
Dismount database
Dismount-Database -Identity <Server\StorageGroupName\DatabaseName>
Move the database in the configuration only
Move-DatabasePath -Identity <Server\StorageGroupName\DatabaseName> -EdbFilePath <NewPath> -ConfigurationOnly
Move the files to the new location on this disks
Mount-database
Resume replication
Resume-StorageGroupCopy -Identity <Server\StorageGroupName>