Something very interesting happened the other day when I decided to use the Move-Mailbox cmdlet in Exchange 2007 to move about 350 mailboxes from one storage group to another. I ran the following command first:
Get-Mailbox -Database mailsrvr\SG07\SG07-DB01 -ResultSize unlimited Move-Mailbox -TargetDatabase mailsrvr\SG01\SG01-DB01 -MaxThreads 15 -PreserveMailboxSizeLimit -ReportFile C:\MoveResultAll.txt
It just took forever to move mailboxes. Note that I used 15 threads to move mailboxes thinking that it would move 15 mailboxes at once. The size of mailboxes on average was 150-200 MB. I was expecting this to finish within 3-4 hours. I finally decided to cancel the task and started to investigate as to why it took this long for these to move. I finally came to the conclusion that it was because some the large mailboxes took forever to move and caused bottle neck for other many smaller mailboxes. But I was kind of surprised because my own mailbox is nearly 800 MB and it took 10 minutes to move. I mean we have a pretty heavy duty Exchange server. So next day I tried the following script to larger mailboxes will be moved first and then all smaller ones.
Get-MailboxStatistics -Database mailsrvr\SG08\SG08-DB01 Sort-Object TotalItemSize Move-Mailbox -TargetDatabase mailsrvr\SG10\SG10-DB01 -MaxThreads 30 -PreserveMailboxSizeLimit -ReportFile C:\MoveResult_All.txt
It still took forever and after 2 hours it had moved only 15 mailboxes. Note that this time I even used 30 threads to move mailboxes.
I finally decided to move mailboxes using Move mailbox wizard. You an use up to five mailboxes at a time with default of 5 threads and with 10 wizard windows open.
This turned out to be very fast as I was move 50 mailboxes on an average of 30 minutes.
I am surprised that there was too much delay when using PowerShell to move mailboxes on the same server on Exchange 2007. I used same commands to move mailboxes from Exchange 2000 to Exchange 2007 during the migration. However, there I was using multiple shell window to run Move-Mailbox cmdlet using different OUs.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2010
(56)
-
►
March
(10)
- MX Toolbox FREE Blacklist (RBL) Monitoring
- VMware HA Schematics
- VMware HA Quick Guide
- FREE Online Tools for E-mail Administrators
- Change boot order in Windows 7
- Vmware Site Survey
- How to remove Storage Groups in EMC Navisphere?
- MPIO & Multihoming Windows Server to iSCSI SAN wit...
- PowerCLI Script for Snapshot Reporting (vSphere)
- How to Restore Mailbox using Recovery Storage Grou...
-
▼
February
(10)
- Enable RPC/HTTP (Outlook Anywhere) in Exchange 200...
- Moving Mailboxes - Exchange 2007 SP1
- How to search items in a list against another list...
- How to remove empty rows in Excel?
- SSL Traffic and Microsoft ISA 2006 Server
- Use CLI to add new port groups in VMware ESX 3.5 o...
- Vmkernel Default Gateway in ESX
- Use man UNIX command to see all esxcfg commands in...
- Display routing table on ESX / Linux
- Software iSCSI Rescan HBAs Commands in vSphere (ES...
-
►
January
(30)
- VBScript to Move Files
- Restart Windows services on remote computers
- Batch File To Turn Power On and Off Monitor or LCD...
- Get notify about TrendMicro OfficeScan anti-virus ...
- Update timestamp on multiple files in multiple fol...
- A tool to archive old IIS logs.
- Replace file extensions for multiple files in a fo...
- Creational Design Patterns Quick Reference
- Change name for multiple files in a folder in a ba...
- A Quick Reference & Tutorial for ASP.NET
- How to calculate SQL table sizes?
- A Quick Reference for T-SQL
- A Quick C# Programming Language Reference
- Nslookup & Service Records ( SRV Records )
- How to locate authorized and non-authorized (rouge...
- Get the MAC address of remote desktop or server in...
- Windows 2008 Disk Resize Fix - Error 0xc0000225
- How to change SRV records priorities and weight fo...
- MTU Maximums (Jumbo Frames) for ESX 4.0, Windows 2...
- Windows 2008 License Activation Quick Overview - K...
- Exchange 2007 OWA Address Book Search Bug
- iSCSI SAN & Multihoming
- How to reset system folders in Outlook?
- A Quick Guide to Windows Terminal Server Setup
-
►
March
(10)
0 comments:
Post a Comment