| Home | Kaiming |


Create a storage group: Kinko Storage Group
new-StorageGroup -Server 'test1' -Name 'Kinko Storage Group' -LogFolderPath 'C:\Kinko Storage Group\' -SystemFolderPath 'C:\Kinko Storage Group\' -HasLocalCopy $true -CopyLogFolderPath 'E:\Kinko Storage Group\' -CopySystemFolderPath 'E:\Kinko Storage Group\'
new-mailboxdatabase -StorageGroup 'test1\Kinko Storage Group' -Name 'Staff mailbox database' -EdbFilePath 'C:\Kinko Storage Group\Staff Mailbox Database.edb' -HasLocalCopy $true -CopyEdbFilePath 'E:\Kinko Storage Group\Staff Mailbox Database.edb'
Mount-Database -Identity 'Kinko Storage Group\Staff Mailbox Database'
The "First Storage Group" has "Mailbox Database" and "Public Folder" database. I cannot enable the "Local Continuous Replication" on First Storage Group. If there are more than one Public Folder database in the Exchange Organization, you cannot enable "Local Continuous Replication" for the storage group with a Public Folder database.
Suppose the Kinko Storage Group does not have the LCR enabled;
You enable the LCR for the database first and then the Kinko Storage Group.
enable-DatabaseCopy -Identity 'test1\Kinko Storage Group\Staff Mailbox Database' -CopyEdbFilePath 'E:\Kinko Storage Group\Staff mailbox database.edb'
enable-StorageGroupCopy -Identity 'test1\Kinko Storage Group' -CopyLogFolderPath 'E:\Kinko Storage Group\' -CopySystemFolderPath 'E:\Kinko Storage Group\'
hen you database cannot be mounted, the first defence is to run the Restore-StorageGroupCopy.
Suppose the Kinko Storage Group\Staff mailbox database.edb cannot be mounted.
Dismount-Database -Identity 'Kinko Storage Group\Staff mailbox database'
restore-StorageGroupCopy -Identity 'test1\Kinko Storage Group' -ReplaceLocations
Mount-Database -Identity 'Kinko Storage Group\staff mailbox database'
Local Continuous Replication will be disabled.
Get-StorageGroup -Identity "Kinko Storage Group" | fl Name,HasLocalCopy
Name : Kinko Storage Group
HasLocalCopy : False
enable-DatabaseCopy -Identity 'TEST1\Kinko Storage Group\Staff mailbox database' -CopyEdbFilePath 'C:\Kinko Storage Group\Staff Mailbox Database.edb'
enable-StorageGroupCopy -Identity 'TEST1\Kinko Storage Group' -CopyLogFolderPath 'C:\Kinko Storage Group' -CopySystemFolderPath 'C:\Kinko Storage Group'
To use Eseutil.exe to verify an LCR passive copy (in C: drive)
suspend-StorageGroupCopy -Identity 'test1\Kinko Storage Group' -SuspendComment 'Administrator initiated Update-StorageGroupCopy'
C:\Program Files\Microsoft\Exchange Server\Bin>.\eseutil.exe /k "C:\Kinko Storage Group\Staff Mailbox Database.edb"
Seeding--copying the active mailbox database to the LCR location.
Automatic seeding only occurs during the creation of a new server, creation of a new storage group and database, or on a database that has never been backed up.
Why do you do that?
You have a corrupt LCR copy and you want to invalidate the passive copy.
suspend-StorageGroupCopy -Identity 'test1\Kinko Storage Group' -SuspendComment 'Administrator initiated Update-StorageGroupCopy'
update-StorageGroupCopy -Identity 'test1\kinko Storage Group' -DeleteExistingFiles