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 2
Azarudeen MohamedSystem EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Cloud as a Security Delivery Platform for MSSPs

Every Managed Security Service Provider (MSSP) needs a platform to deliver effective and efficient security-as-a-service to their customers. Scale, elasticity and profitability are a few of the many features that a Cloud platform offers. View our on-demand webinar to learn more!

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.