Tuesday, 29 November 2011

Changing Public Folder replication message priority to urgent in bulk

When you are migrating away from Exchange 2003 to Exchange 2007/2010 you must mive all public folders off from the old server. This is done by using the Move all replicas option under the public folders menu. To speed things up each public folder should have its message priority set to urgent. But what happens if you have 1000's of folders? The solution I found is to use PFDAVadmin which can be found on the Microsoft website. Make sure you have a working backup before you begin. Stopping MSExchangeIS and copying the pub1.edb elsewhere works nicely!


First you need to connect to the Exchange server and AD.
Then select Custom Bulk operation.

Then click add and select Other folder properties. This process needs repeating for system folders too.


Select Modify and in the property drop-down find PR_REPLICATION_MESSAGE_PRIORITY and enter the value 1
Next click OK


PFDAVadmin works through the database altering the values. This can take some time if you have lots of folders.


When we inspect the setting on any of the folders you can see the Replication message priority has been altered.

Tuesday, 15 November 2011

Slow network performance on ESXi hosts with link aggregation

I was getting really slow network throughput from all VMs on a 4GB LAG using ESXi 5.0.0 with the IP hash load balancing policy. 250MB file was taking 20 minutes!! This was with a Dell PowerConnect 5524 in a two switch stack. The LAG was configured correctly.


PowerConnect#conf
PowerConnect(Conf)#interface gi1/0/1-2,gi2/0/1-2
PowerConnect(Conf-if)# spanning-tree portfast
PowerConnect(Conf-if)# channel-group 1 mode on
PowerConnect(Conf-if)# exit
PowerConnect(Conf)#exit
PowerConnect#copy running-config startup-conf


The LAG was up as this command showed.
PowerConnect#sh interface status po1

We tested the connection between the VM and my laptop using iperf 


From the VM we ran:
c:\>iperf -s


From my laptop:
c:\>iperf -c 172.x.x.x -i5 -t120 -w1492k


The throughput was not acceptable, giving approx 600Kbps


We broke the stack by pulling power out on the bottom switch and reran the iperf. As you can see things where great again.




Turns out you can't use HDMI 1.3 cables for the stack uplink. It must be HDMI 1.4 which supports EtherLink 


The moral of the story is don't use cheap HDMI cables. Thanks to Mike for is input diagnosing this.


Tuesday, 9 August 2011

SBS 2011 Migration - Active Directory replication is taking longer than expected


If you encounter this message during setup: “Active Directory replication is taking longer than expected”, do this:

Active Directory replication is taking longer than expected. You can choose whether to continue waiting.
If you choose not to wait, the migration may fail. Unless you are sure that replication is working correctly, it is recommended that you continue waiting.
Do you want to wait for the replication to finish? (Yes/No)
Most Common Cause: You will only get this dialog after the SBS setup has waited for 25 minutes and the new server has not been able to properly contact the source DC to initialize the file replication service (FRS), this is preventing the new server from becoming a domain controller. Clicking No on this dialog will almost certainly mean a failed setup. The source server is most likely in journal wrap or having FRS issues.
Resolution Summary: 
Correct the FRS issues on the source server, do not reboot the new server or close down the setup, leave the popup dialog open while you troubleshoot, once the FRS issues are corrected on the source server, you can open a command prompt on the new server by using Shift-F10 and restart the Netlogon and FRS services, then confirm that SYSVOL and NETLOGON are shared on the new server by using NET SHARE, only then you should click Yes to continue waiting, after 5 minutes the setup will go on.

Wednesday, 3 August 2011

Understanding Write Cache Policy

The cache controller writes a block of data to cache memory, which is much faster than writing to the physical disk. The cache controller sends an acknowledgement of data transfer completion to the host system. 


Write-Back Versus Write-Through
In write-through caching, the controller sends a data transfer completion signal to the host system when the disk subsystem has received all the data in a transaction. 


In write-back caching, the controller sends a data transfer completion signal to the host when the controller cache has received all the data in a transaction. The controller then writes the cached data to the storage device when system activity is low or when the write buffer approaches capacity. The cached data is not written to the storage device immediately. 


The risk of using write-back cache is that the cached data can be lost if there is a power failure before it is written to the storage device. This risk is mitigated by using a BBU on selected PERC 6 controllers. 


Write-back caching has a performance advantage over write-through caching. 


NOTE: 
The default cache setting is write-back caching.  


NOTE: 
Certain data patterns and configurations perform better in a write-through cache policy.  




Conditions Under Which Write-Back is Employed
Write-back caching is used under all conditions in which the battery is present and in good condition. 


Conditions Under Which Write-Through is Employed
Write-through caching is used under all conditions in which the battery is missing or in a low-charge state. Low-charge state is when the battery is not capable of maintaining data for at least 24 hours in the case of a power loss. 


Conditions Under Which Forced Write-Back With No Battery is Employed
Write-Back mode is available when the user selects Force WB with no battery. When Forced Write-Back mode is selected, the virtual disk is in Write-Back mode even if the battery is not present

Tuesday, 19 July 2011

List mailbox sizes is EMS

Get-MailboxStatistics -database “Mailbox Database” | Select DisplayName, LastLoggedOnUserAccount, ItemCount, TotalItemSize, LastLogonTime, LastLogoffTime | Format-Table

Exchange 2010 Setup fails with Property CustomerFeedbackEnabled can't be set on this object because it requires the object to have version 0.1 (8.0.535.0) or later. The object's current version is 0.0 (6.5.6500.0)

Hub transport setup fails on Windows 2008 r2 sp1 DC on a VM with :


Property CustomerFeedbackEnabled can't be set on this object because it requires the object to have version 0.1 (8.0.535.0) or later. The object's current version is 0.0 (6.5.6500.0)


Steps taken to resolve this.


Re-enable IPv6 if it was disabled as part of troubleshooting. IPv6 IS required on a DC running Exchange 2010
Delete the HubTransport key from the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\HubTransportRole
Uninstall Exchange 2010: setup /m:uninstall
Reboot
Remove any files from c:\program files\Microsoft\exchange\
Remove any traces from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\
Remove any exchange services from :HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services
Remove the new exchange server name with ADSI edit
Correct any issues raised my the Microsoft IT environment scanner.
Check AD Schema level is the same on all DCs. http://support.microsoft.com/kb/556086
Check time sync is correct and not syncing with the host if its a VM.
Disable any AV software.
rerun setup from elevated CMD prompt: setup /preparead
rerun setup /m:install /r:ht,mt,ca,mb


This worked for me! Don't forget to create the connectors between the new and old servers if this is a transition from Exchange 2003