Home > Exchange > PowerShell Commands which help to troubleshoot Exchange Server DAG Cluster

PowerShell Commands which help to troubleshoot Exchange Server DAG Cluster


 

Get Exchange services status

Get-services *exchange*

 

Get variety of configuration settings, status, and other information about a database availability group (DAG)

Get-DatabaseAvailabilityGroup –Identity <DAGName> | FL

 

Check all aspects of replication and replay, or to provide status for a specific Mailbox server in a database availability group (DAG)

Test-ReplicationHealth

 

Administer a node in a server cluster or to view its status

Cluster node /status

 

Check the current activation policy on the server

Get-MailboxServer <MailBoxServerName> | fl Name,DatabaseCopyAutoActivationPolicy

 

Find the owner of the cluster core resources group

cluster.exe <DAGFQDN> group

 

Verifying the file share witness server

Get-databaseavailabilitygroup | FL Witness*

 

Retrieve DAG status

Get-DatabaseAvailabilityGroup -Identity DAG –Status

 

Listing status for all available resources

Cluster.exe <DAGFQDN> res

 

Listing status for all available resource groups

Cluster.exe <DAGFQDN> group

 

Bringing resource group ‘Available Storage’ online

Cluster group "Available Storage" /online

 

Get which server is holding PAM

Get-DatabaseAvailabilityGroup -Identity DAG -Status | fl name,primaryactivemanager

 

Move cluster group

Cluster group "Cluster Group" /MoveTo:<DAG Server Name>

 

block all databases hosted on a server from activating.

Set-MailboxServer –identity MAILBOXSERVER –DatabaseCopyAutoActivationPolicy blocked

 

Revert the above command

Set-MailboxServer –identity MAILBOXSERVER –DatabaseCopyAutoActivationPolicy Unrestricted

Advertisements
Categories: Exchange
  1. Yinka
    May 27, 2014 at 9:50 am

    Hi,
    Was reading a posting of yours here (http://social.technet.microsoft.com/Forums/windowsserver/en-US/83611d29-b976-41d1-a9c4-cb376231b226/disk-quota)

    I wanted to know if it eventually got resolved.I have a LUN created which am using for my server. Users sees it as a network share and i wanted to know if its possible to use GPO to restrict quotas on this LUN.

    Hope to hear from you

    Yinka

    • May 27, 2014 at 5:22 pm

      Hi Yinka,

      You cannot use GPO to restrict quotas on LUN’s as they are Logical units.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: