Wednesday, November 20, 2013

What is Active Manager in Exchange 2010

What is Active Manager in Exchange 2010

Active manager works part of exchange replication service, basically active manager is a organizer, active manager decides which mailbox database is active and which database is passive in DAG or which mailbox database copy should be mounted and which mailbox database copy acts as healthy copy in DAG. This will be decided depending on the mailbox database activation preference number.

Let us know much more details on this Active manager, there are two roles in Active manager
Such as Primary Activation Manager (PAM) and Standby Activation Manager (SAM).

Both the roles monitors the health of the database from the information store level and from the ESE level however PAM  determines which database is active and which is passive.

SAM concentrates on health of the information store which is running on local server, if SAM detects failure of information store or database, it initiates communication with PAM for the database fail over.
Server that hosts PAM initiates the fail over. You may have a question if PAM server is down?
Or PAM server itself is offline then another server seizes the PAM role in DAG and initiates the fail over.  

PAM hosts in cluster quorum resource server, if cluster quorum server fails then PAM moves to where ever cluster quorum resource moves to another server in DAG  

Q:-Which Exchange server holds the SAM role?
A:-All the DAG members holds the SAM server role, responsible for monitoring the respective server databases from the information store level

Q:-Which Exchange server holds the role of PAM
A:-At any given point of time only one server can hold the PAM role in DAG. the server that contains cluster quorum information that server holds the PAM role.

Friday, November 1, 2013

Two node DAG maintenance during the power shutdown activity or electrical maintenance

Two node DAG maintenance during the power shutdown activity or electrical maintenance
We have to put the DAG member servers in maintenance mode during the datacenter maintenance or during the power shutdown activities or installing exchange updates/roll ups. Not necessary to put DAG members in maintenance mode for windows updates because windows updates is for operating system and not for exchange right, however if you feel you want put maintenance mode even in windows updates you can.
To bring the DAG member to the maintenance mode need not follow manual steps but certain planning is essentially required, let me explain you how to carry this activity
Assume that we have DAG configured in two node, now execute the below inbuilt script, you may have question what this command will do. This command makes few changes such as moves all the active database copies to the another DAG member, pause the cluster services and blocks the auto activation,
Now DAG member safe with passive mailbox database copies, this script basically stops all the communication with other DAG member server
During the execution as shown below you observe warning just be patience and ignore
.\StartDagServerMaintenance.ps1 –server ex2010a



After completing the above command check the database status by executing the below command



You can observe whichever the mailbox database moved ‘last inspected logs time stamp’





Now you can safely shutdown the DAG member (the server on which you executed the above script)
Once maintenance activity completed execute the below mentioned script to stop the maintenance



This will makes the server back to DAG communication after that you have to distribute the mailbox databases for that execute the below command
.\RedistributeActiveDatabases.ps1 –DagName DAG01 –BalanceDBsByActivationPreference –Confirm:$false   
Mailboxdatabases distributed across the two DAG members by referring the activation preference number
Brief summary
Shutdown servers in sequence
1. Mailbox server 01 which doesn’t hold any active database copies
2. Dismount the mailbox databases on server02 and shutdown
3. Shutdown the file share witness server (if you shutdown file share witness in before mailbox server then might endup with some issues because DAG will lose the quorum. If you made FS down but mailbox servers still ON then start FS wait for few minutes then shutdown mailbox server and then finally file share witness)
3. then shutdown HT,CAS and EDGE
Switching on the servers in sequence
1.Start File share witness server
2.start server02 and mount the databases
3.start HT CAS Edge servers
4.Observe mail flow by sending couple of mails and once everything settled distribute the mailboxdatabases as explained in earlier steps

Everything is possible keep learning J
If you feel this article helped leave your comments


Saturday, October 19, 2013

Failed and Suspended-Reseeding Mailbox Database in DAG Exchange 2010

When mailbox database copy failed in exchange 2010 DAG
it is necessary to reseed the mailbox server with failed copy

Open EMC and if your able to see failed database copy

Then first we need suspend the replication for the failed database copy

Use the following command to suspend replication

Step1:-Suspend-mailboxdatabaseCopy –identity “Sal it\seqmbx01”

After executing the above command ask for confirmation click Y for yes

Step2:-After executing the above command failed mailboxdatabase will change to ‘failed and suspended”
as shown in below snap


Step3:-Re seed the database now by executing the below command as below and also shown below snap  


Update-MailboxDatabaseCopy -Identity "Sal it\Seqmbx01" -DeleteExistingFiles



Now it will begin the process and depending the database size it will take some time to complete the process after completing this process active mailbox database will be mounted and passive copy will be Healthy 




















Thursday, October 17, 2013

Enable OWA from powershell





MapiExceptionNotFound error while moving the mailbox

Error: MapiExceptionNotFound: Unable to synchronize manifest. (hr=0x8004010f, ec=-2147221233)
Diagnostic context:
    Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=239]
    Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=503][latency=15]

This error will appear due to mailbox corruption to eliminate the above error need repair the mailbox 

execute the following shell command then clear the move request and initiate again move request  

New-MailboxRepairRequest -Mailbox userID -CorruptionType SearchFolder, AggregateCounts, ProvisionedFolder, FolderView

Members can't remove themselves from security groups. Please set the group to Closed for requests to leave

Members can't remove themselves from security groups. Please set the group to Closed for requests to leave

Answer:-if you try to modify the group membership or if you want to change any specific on particular distribution group the above error will appear.
In my case I have universal distribution group the user want to restrict that group for internal communication for this we need to enable ‘internal authentication required’ option in mailflow settings in group properties when I click this option getting error
“Members can’t remove themselves from security groups, please set the group to closed for requests to leave”
Execute the below shell command the above error disappears and then you can modify the group settings


Set-Distributiongroup –identity <DistributionGroupName> –MemberDepartRestriction Closed