Showing posts with label Exchange 2010. Show all posts
Showing posts with label Exchange 2010. Show all posts

Thursday, April 19, 2012

Get-PublicFolderStatistics - Couldn't find public folder on server


Using the Exchange Management Shell in Exchange 2010, if you try to get the statistics of a Public Folder PFolder on server ExchangeServer01 using the cmdlet Get-PublicFolderStatistics, you might get an error like the following

Get-PublicFolderStatistics PFolder -server ExchangeServer01
Couldn't find public folder {PFolder} on server {ExchangeServer01}
+ CategoryInfo          : InvalidData: (PFolder :PublicFolderIdParameter) [Get-PublicFolderStatistics], InvalidOperationException
+ FullyQualifiedErrorId : 785BD1AB,Microsoft.Exchange.Management.MapiTasks.GetPublicFolderStatistics

This seems to be a bug since the PublicFolder "PFolder" does exist!

A workaround for this is to add the parameters -ResultSize unlimited to the cmdlet. So modifying the above example with the new parameters,

Get-PublicFolderStatistics PFolder -server ExchangeServer01 -ResultSize unlimited

gives the correct results.

I hope this helps people since it surely had me baffled for a while.

The above is from http://mykbit.blogspot.com.au/2011/05/couldn-find-public-folderwhen-get.html

Tuesday, March 6, 2012

The cluster service has determined that this node does not have the latest copy of cluster configuration data

A few days ago I got a big surprise on my Exchange 2010 Servers. While doing a routine daily check via Exchange Management Console, I noticed that one of my DAG servers was reporting its status as Failed. This looked really weird since the server itself was online and I could ping it.

I RDP'd to the problematic server and checked the eventlogs. To my dismay, I found that the following was being logged in the system logs

Event ID 1564 - File share witness resource 'File Share Witness (\\Server1.domain.com\DAG.domain.com)' failed to arbitrate for the file share '\\Server1.domain.com\DAG.domain.com'. Please ensure that file share '\\Server1.domain.com\DAG.domain.com' exists and is accessible by the cluster.

I opened the Failover Cluster Manager and found that the above server had been marked as down. This explained why the server was being reported with a status of Failed in the Exchange Management Console.

I checked the permissions on the DAG share above. The NTFS permissions looked alright. However, the share permissions had an unresolved SID. I took this to be the culprint and doing a bit of googling I found that the cluster computer account should be listed in the share permissions with Full Control. Since this was not listed, I took the liberty of adding in DAG$ in the share permissions with Full Control (my DAG name is called DAG .. yea yea very original).

After doing the above, I noticed that the above error was no longer being shown,  but instead the following error appeared.
"Event ID 1561 The cluster service has determined that this node does not have the latest copy of cluster configuration data."

And to add salt to my injury,  the server was still marked as down in Failover Cluster Manager. I googled the error and managed to find some articles on it. One of the support articles from Microsoft said to start all the other nodes and if they started, then the affected node will read the configuration off them and start. However, since I already had a node running (the other DAG server), this didnt quite apply.

I tried restarting the cluster services on the affected server, but even this did not resolve the issue. Restarting the server was no help either.

Finally, with a stroke of genius (and luck), I decided to restart the cluster. So from the Failover Cluster Manager,  I right clicked on the cluster name (which quite originally was called dag.domain.com) and then under More Actions  I selected Shut down Cluster. A prompt came up asking if I really wanted to shut down the cluster. I chose Yes.

After a few minutes (well actually 2min), with fingers crossed, I started the cluster (from Failover Cluster Manager, right click on the DAG name and from More Actions select Start Cluster). Viola, both the DAG servers came back online!

I quickly checked Exchange Management Console and saw that both the servers were now being reported as online. The problematic server was now being updated from the other server (you might see a huge CPU spike on the problematic server while the updates are copied to it)

Take care and until the next time. And remember, with windows, you restart :)

Saturday, February 11, 2012

Exchange 2010 Service Unavailable during SMTP transactions. Exchange Server is not accepting any incoming emails

I must say that my dear old friend Murphy paid me a visit this week. For those of you that are unaware of Murphy, you can get more information here . Basically Murphy's Law says that "Anything that can go wrong will go wrong"

Anyway, not to get side tracked. This week, one of my legacy Exchange Servers (Exchange 2003) broke down. Or that was what it seemed superficially. I am still trying to work through the migration of my Exchange 2003 servers to Exchange 2010. I still have a handful of users left on my legacy server and so am trying my best to move them across. As it happened, on this day, users on my Exchange 2010 started receiving Delay notifications when sending emails to users on Exchange 2003. Users on Exchange 2003 were also receiving the same when they tried sending emails to anyone on Exchange 2010 or to those outside the organisation.

I checked the queues and found that the Exchange 2003 queues were increasing with time and Exchange 2010 queues with emails destined to Exchange 2003 were suffering from the same fate.

My first reaction was that network issues might have cropped up, causing havoc between Exchange 2010 and Exchange 2003. Since Exchange 2003 was configured to deliver emails using Exchange 2010 for out-of-organization recipients, this theory  made perfect sense. But then when I checked the network connectivity between the two servers, there did not seem to be any problems :(

I then looked at the SMTP logs on Exchange 2003. To my surprise I found that one of the things logged was "Service Unavailable".  This meant that the Exchange 2010 CAS server was not receiving emails. I opened up a command line and tried connecting to the Exchange 2010 SMTP service, but after the handshake, I also received "Service Unavailable".

I RDP'd to my Exchange 2010 CAS server and checked the event logs. To my surprise I found that it was throttling the incoming email transactions. This was because the used diskspace on the disk that stores the queues had gone beyond 94%. This is known as BackPressure.

The simple solution was to find and remove all unnecessary files on the Exchange 2010 CAS server to bring the free diskspace up. As I looked through the eventlogs I saw Exchange reporting that the load on the resources had lessened and as such the limitations on the incoming queues was being removed.

Phew!. I forced the messages in the retry queues in both Exchange 2010 and Exchange 2003 and watched as the numbers reduced.

For those of you that would like to read more on Exchange 2010 Back Pressure, you can click through to the following articles
Technet - Understanding Back Pressure
MSExchange.org Back Pressure in Exchange 2010

I would recommend the MSExchange Article ;)