TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Baris Aydogmusoglu
(eMicrosoft Partne)
When:
7 Apr 2013 2:38 AM
Revisions:
1
Comments:
0
Options
Subscribe to Article (RSS)
Share this
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
Exchange Server 2010, Mailbox’ların eşit şekilde “move” edilmesine (tr-TR)
Exchange Server 2010, Mailbox’ların eşit şekilde “move” edilmesine (tr-TR)
Article
History
Exchange Server 2010, Mailbox’ların eşit şekilde “move” edilmesine (tr-TR)
Merhaba,
Bu yazımda, Exchange Server 2010 Mailbox database’lerinde saklanan mailbox’ların “move” işlemine dair bir kaç ems cmdlet’inden bahsetmek istiyorum. Geçenlerde bir Mailbox DB içindeki binlerde mailbox’ı, whitespace’ı geri kazanmak amacıyla yeni açtığım 4 adet mailbox database’e yayarak “move” etmek istedim. GUI’den yapmak isterseniz zaten kolay bir işlem herkesin bildiği üzere. Daha hızlı ve daha az efor ile shell’den yapmak için TechNet’e gezindim. Bulduğum cmdlet’leri ve script blok’larını ihtiyacım doğrultusunda derledim. Test’lerimi test ortamımda yapmıştım. Test ortamımda, Exchange Server 2010 ve Service Pack 3 kurulu durumda.
$mbxs = Get-Mailbox -database "User-AZ" | select -first 100
$dbs = "User-AZ-1","User-AZ-2","User-AZ-3"
foreach ($n in 0..($mbxs.count -1)){
New-MoveRequest $mbxs[$n] -TargetDatabase $dbs[($n%3)] -BadItemLimit '10' }
Üstteki code bloğu ile :
User-AZ isimli mailbox database’i içindeki mailbox’ları bir değişkene alıyoruz. Bu değişkene alınan mailbox’lardan ilk 5 tanesini User-AZ-1,User-AZ-2,User-AZ-3 isimli 3 adet mailbox database’e eşit olacak şekilde yayarak “move” edebiliyoruz. (tek sayı çift sayı seçimi önemli değil, ilk 6 tanesini alsam 2+2+2 dağıtıyor, ilk 5 tanesini alınca 2+2+1)
Aşağıda ise üstteki code bloğunun biraz değiştirilmişi mevcut.
$mbxs = Get-Mailbox -database "User-AZ"
$dbs = "User-AZ-1","User-AZ-2","User-AZ-3",”User-AZ-4”
foreach ($n in 0..($mbxs.count -1)){
New-MoveRequest $mbxs[$n] -TargetDatabase $dbs[($n%4)] -BadItemLimit '10' }
Üstteki code bloğunda ile :
User-AZ isimli mailbox database’i içindeki mailbox’ları bir değişkene alıyoruz. Ardında User-AZ içindeki tüm mailbox’ları bir alt satırdaki 4 adet mailbox’a eşit olarak dağıtıyoruz. İşlem bittikten sonra EMC’den yada EMS’den Move Request’leri silmeyi unutmayınız! Eğer komutu test etmek isterseniz –whatif anahtarını kullanabilirsiniz. Örnek aşağıdaki gibi.
$mbxs = Get-Mailbox -database "User-AZ"
$dbs = "User-AZ-1","User-AZ-2","User-AZ-3",”User-AZ-4”
foreach ($n in 0..($mbxs.count -1)){
New-MoveRequest $mbxs[$n] -TargetDatabase $dbs[($n%4)] -BadItemLimit '10' –whatif }
Bu anahtar ile komutu çalıştırmadan bir test yapmak mümkün :) Ardından User-AZ isimli mailbox database’ine ait dosyaları ilgili path’lerden silebiliriz! Böylece whitespace’ı kazanmış oluruz.
Üstteki resim’de –whatif ile bir alıntı mevcut. Aktaracağım mailbox’lara dair ilk durum görüntüsü aşağıdaki gibi.
Şimdi code bloğunu çalıştırayım. Bu arada bu code’u ps1 dosyası yapmak uygun olacaktır.
Move-Request’ler yapıldı. Kuyruğa alındı.
İşlemin sonucuna dair aşağıda EMC’den bir görüntü mevcut.
İşlem tamamlandı. 13 user, 4 mailbox database’e 4+3+3+3 şeklinde dağıtılmış. Whitespace’i geri kazanmak adına offline defragmentation’da yapılabilir ama önerilmiyor. Özellikle DAG yapısında önerilmiyor! Dolayısıyla “move” işlemi önemli ve önerilen işlem durumunda.
Herkese sorunsuz ve neşeli günler dilerim.
Kaynak:
TechNet Exchange Server Forum
disseminating mailboxes
,
Exchange Server 2010
,
tr-TR
[Edit tags]
Leave a Comment
Please add 3 and 3 and type the answer here:
Post
Wiki - Revision Comment List(Revision Comment)
Wikis - Comment List