Verify database status#
Database health#
This procedure ensures that the database is in a healthy state.
Log in on any unified node (multinode unified topology) / database node (modular cluster topology).
Run the following command:
database configVerify that the stateStr of each node is one of the following values:
stateStr: PRIMARY
stateStr: ARBITER
stateStr: SECONDARY
If any node has a stateStr not listed above, contact VOSS L2 helpdesk.
Important
Provisioning must not take place if any of the database nodes are in the following states:
STARTUP
STARTUP2
RECOVERING
Primary database#
This procedure ensures that the primary database is the correct node
Log in on any unified node (multinode unified topology) / database node (modular cluster topology).
Run the following commands:
database primaryand
cluster run database database primaryEnsure the IP address matches the intended primary database expected.
If a failover has occurred for any reason and the primary database has changed from what is expected, refer to the “Check General Cluster Health” section.
Database weights#
Database weights are used to determine how a new primary node is elected in the event of database primary node failover. Although any values can be used, recommended weights are:
For 4 database nodes: weight of 40/30/20/10
For 6 database nodes: weight of 60/50/40/30/20/10
These weight numbers ensure that if a re-provision occurs (when the primary data center goes offline for an indeterminate time), the remaining nodes have weights that will allow a new primary to be chosen.
Log in on any unified node (multinode unified topology) / database node (modular cluster topology).
Run the following commands:
database configVerify that weights are set with highest numbers in primary Data Center (DC), and lesser weights in secondary DC.
To resolve any issues, fix database weights to have the highest numbers at primary DC.