Database Mount status report is in yellow but it is mounted

Hi Guys,

The Exchange status health check report attached below is working fine, but i get yellow colour in the report for copy status.. i dont know the meaning of that could any one explain.

i will paste  the corresponding code here along with screenshot



 if ((($status -eq "Mounted") -and ($acpref -eq 1)) -or ($status -eq "Healthy"))
            {
            Add-Content $report "<td bgcolor= 'Aquamarine' align=center>  <B>$status</B></td>"
            }

elseif((($status -eq "Mounted") -and ($acpref -ne 1)) -or ($status -eq "Healthy"))
            {
           Add-Content $report "<td bgcolor= 'Yellow' align=center>  <B>$status</B></td>"
            }

               
       else
            {
            Add-Content $report "<td bgcolor= 'Red' align=center>  <B>$status</B></td>"
            }



im confused about the else if part... any one explain this???
LVL 1
Azarudeen MohamedSystem EngineerAsked:
Who is Participating?
 
Valentina PerezExchange ServersCommented:
HI Azarudeen,

Yes the yellow is to specify mounted but the database in yellow is mounted in server EXC-MB-02 but this database preference is the other server EXC-MB-01. I think it is regarding the preference.

Could you check the following command: Get-MailboxDatabaseCopy | fl identity, *preference*

Regards
Valentina
0
 
Valentina PerezExchange ServersCommented:
HI Azarudeen,

When you run the following command:

Get-MailboxDatabaseCopyStatus *

All database appear mounted and the index status healthy?

Regards
Valentina
0
 
Azarudeen MohamedSystem EngineerAuthor Commented:
yes everything is healthy.... even in this report also it shows healthy... but i don't know whoever created this script made some yellow color... i don't know why...
0
On-Demand: Securing Your Wi-Fi for Summer Travel

Traveling this summer?Check out our on-demand webinar to learn about the importance of Wi-Fi security and 3 easy measures you can start taking immediately to protect your private data while using public Wi-Fi. Follow us today to learn more!

 
Valentina PerezExchange ServersCommented:
Hi,

Regarding the script


elseif((($status -eq "Mounted") -and ($acpref -ne 1)) -or ($status -eq "Healthy"))

It seem that yellow it is used for showing which database are not activated. You have a DAG?

Regards
Valentina
0
 
Azarudeen MohamedSystem EngineerAuthor Commented:
Yes we do have DAG, which database is not activated means?? i think both are mounted and in good status.
0
 
Valentina PerezExchange ServersCommented:
Hi,

When you have DAG. Database are mounted in one server and they are passive in the other server.

I think the colour yellow is for the database preference is different 1.

https://technet.microsoft.com/en-us/library/dd351151(v=exchg.160).aspx

Regards
Valentina
0
 
Azarudeen MohamedSystem EngineerAuthor Commented:
No, see the below screenshot the passive DBs are shows as healthy without any problem,,
Capture.JPG
0
 
Azarudeen MohamedSystem EngineerAuthor Commented:
acpref -eq 1  (acpref is equal to 1 then it is aquamarine)

acpref -ne 1 (acpref is not equal to 1 then it is yellow)


so what is acpref... if we found this then that is the answer for this question... makes any sense??
0
 
Azarudeen MohamedSystem EngineerAuthor Commented:
Mailbox activation preference result:

Identity             : ExchangeDB01\EXch-EXC-MB-01
ActivationPreference :

Identity             : Mailbox Database 17590994\Exch-EXC-MB-01

ActivationPreference :
0
 
Azarudeen MohamedSystem EngineerAuthor Commented:
Sorry i'm not very good in exchange... previously i saw both are aquamarine colour but later i restarted the storage for some reason... i guess that time something happened and after that it shows yellow colour.

Do i need to change anything to make exchange works well... what does activation preference means??? if i leave this as it is does it cause any issues?

As of now i dont have any issues in exchange... please advise on this..
0
 
Valentina PerezExchange ServersCommented:
Hi Azarudeen,

Activation preference number, shows the activation preference number. This is used as part of Active Manager's best copy selection process, and it is used to balance the DAG by redistributing active mailbox databases throughout the DAG.

In your case it seemed it was that regarding the script.

elseif((($status -eq "Mounted") -and ($acpref -ne 1)) -or ($status -eq "Healthy"))
            {
           Add-Content $report "<td bgcolor= 'Yellow' align=center>  <B>$status</B></td>"

The status of database are correct in all. Normally you should not worry.

Let me check more information.
Regards
Valentina
1
 
Azarudeen MohamedSystem EngineerAuthor Commented:
Thank a lot for your time Valentina ;)
0
 
Valentina PerezExchange ServersCommented:
Thank you very much Azarudeen

A pleasure to help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.