The following are commands that are associated with the control or information of the Cluster Master (CM)
From any VERDE server, type "verde-util -am-i-it" it will display which server is the Cluster Master.
(starting from VERDE 6.6, the new syntax is LD_LIBRARY_PATH=/usr/lib/verde/etc/libs /usr/lib/verde/bin/verde-util --am-i-it )
When a count continues to display in the Management Console's RESERVE column, a forced reset must be done by demoting the CM and forcing a CM fail-over. This will force a clear of the counts in the RESERVE column:
The command to demote the Cluster Master:
Run the command /usr/lib/verde/bin/verde-util --demote
NOTE: This is done assuming the other node is setup as CM + VDI.
The command to promote a VERDE VDI server to a Cluster Master:
Run the command /usr/lib/verde/bin/verde-util --promote
or
/usr/lib/verde/bin/verde-util --force --promote (To force the server to a Cluster Master)
The command to do see if health check is implemented:
Run the command /usr/lib/verde/bin/verde-util --hc
returns 0 if health check successful (i.e. $MC_USER/.verde/dbaddress is fresh)
returns > 0 otherwise
If there are multiple Cluster Masters and to change one CM that is not active to the active CM, do the following:
In a cluster with 2 CM nodes, say CM1 and CM2. CM1 is active. By demoting CM1, now both CM1 and CM2 race to become the active CM and there's a 50% chance CM1 will become active again. the right way to promote CM2 to active is to perform a "verde-util --force-promote" on CM2.
To check if by chance some other environment's Cluster Master has control and causing your CM not to come up perform the following:
stat /home/vb-verde/.verde-local/dbaddress
Result:
File: `/home/vb-verde/.verde-local/dbaddress'
Size: 76 Blocks: 1 IO Block: 1048576 regular file
Device: 15h/21d Inode: 12041945979643538187 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 501/vb-verde) Gid: ( 501/vb-verde)
Access: 2015-06-03 22:06:14.000000000 +0200
Modify: 2015-06-03 22:06:14.000000000 +0200
Change: 2015-06-03 22:06:14.135685564 +0200
How to set a server to Offline or an Offline server to Online:
Server is ONLINE. Do the following to take it OFFLINE:
verdecmon-ni offlineserver server-id
The server is OFFLINE. Do the following to take it to ONLINE:
verdecmon-ni onlineserver server-id
"server-id" - VERDE_SERVER_UUID from '/VAR/LIB/VERDE/settings.node' file."