Get-MailboxDatabase komuut ile Exchange Üzerindeki tanımlı DB lerin bilgilerini sorgulayabiliriz.
Get-MailboxDatabase | Format-List Name, EdbFilePath, LogFolderPath
Get-MailboxDatabase komutu ile mevcut DB’nin bulunduğu alanı kontrol edelim. Taşıma işlemini yapacağımız DB ve LOG için alanlarımızı belirleyelim.
Taşıma işlemini gerçekleştireceğimiz DB Adı ve DB, LOG alan bilgilerini girelim.
[PS] C:\>Move-DatabasePath "BBR-DB01" -EdbFilePath "E:\DB\BBR-DB01\DB01.edb" -LogFolderPath "F:\LOG\BBR-DB01\" Confirm Are you sure you want to perform this action? Moving database path "BBR-DB01". [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): A Confirm To perform the move operation, database "BBR-DB01" must be temporarily dismounted, which will make it inaccessible to all users. Do you want to continue? [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): A [PS] C:\>
Klasörlerin oluşup veritabanımız ve log dizinlerimizin taşındığını kontrol edelim.
Eski DB klasörünü temizlemeyi unutmayalım.
Sorunsuz şekilde silme işlemini gerçekleştirdim ancak herhangi nedenden dolayı silme işlemini yapamazsanız, dosya şuan kullanımda ve benzeri.. Powershell ile aşağıdaki cmdleti çalıştırıp ilgili servisleri yeniden başatalım. Ardından silme işlemini tekrardan gerçekletşrelim.
PS C:\> Get-Service -Name "HostControllerService","MSExchangeFastSearch" | Restart-Service WARNING: Waiting for service 'Microsoft Exchange Search Host Controller (HostControllerService)' to stop... WARNING: Waiting for service 'Microsoft Exchange Search Host Controller (HostControllerService)' to stop... WARNING: Waiting for service 'Microsoft Exchange Search Host Controller (HostControllerService)' to stop... WARNING: Waiting for service 'Microsoft Exchange Search Host Controller (HostControllerService)' to stop... WARNING: Waiting for service 'Microsoft Exchange Search Host Controller (HostControllerService)' to stop... PS C:\>
Taşıma sonrası DB ve LOG dizininin yerini doğrulayabiliriz.
[PS] C:\>Get-MailboxDatabase | Format-List Name, EdbFilePath, LogFolderPath Name : BBR-DB01 EdbFilePath : E:\DB\BBR-DB01\DB01.edb LogFolderPath : F:\LOG\BBR-DB01 Name : BBR-DB02 EdbFilePath : C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 1244408385\Mailbox Database 1244408385.edb LogFolderPath : C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 1244408385 [PS] C:\>