If one section does not resolve the issue, continue on to the next section.
Set Primary and Replica
- Log into the Master node as root via SSH or Console.
- Run the following command to stop the vcops service, and ensure the casa service is started:
service vmware-vcops stop; service vmware-casa start
- Change to the /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/ directory:
cd /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/
- Repeat steps 1-3 on all nodes in the Aria Operations Manager cluster.
- Run the following commands on the respective nodes to set the Primary and Replica nodes:
$VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin true --data true --ui true --adminCS IPOfPrimaryNode,IpOfReplicaNode --enableHA true --startServices false
$VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin true --data true --ui true --adminCS IPOfPrimaryNode,IpOfReplicaNode --enableHA true --replica true --startServices false
$VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin false --data true --ui true --adminCS IPOfPrimaryNode,IpOfReplicaNode --enableHA true --startServices false
- Run on Remote Collector nodes
$VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin false --data false --ui false --remoteCollector true --adminCS IPOfPrimaryNode,IpOfReplicaNode --enableHA true --startServices false
Note: Replace IPOfPrimaryNode and IpOfReplicaNode with the IP address of the Primary node, and Replica node respectively.
Example: $VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin true --data true --ui true --adminCS 192.168.3.1,192.168.3.2 --enableHA true --startServices false
- Start the vcops service:
service vmware-vcops start
- Repeat step 6 on all nodes in the Aria Operations Manager cluster.
Rename recovery.conf.bootstrap on Primary
- Log into the Primary node as root via SSH or Console.
- Run the following command to rename the recovery.conf.bootstrap file:
mv $STORAGE_DB_VCOPS/recovery.conf.bootstrap $STORAGE_DB_VCOPS/recovery.conf.bootstrap.bak
- Restart the vcops service:
service vmware-vcops restart
- Repeat step 3 on all nodes in the Aria Operations Manager cluster.
Rename backup_label on Primary
- Log into the Primary node as root via SSH or Console.
- Run the following command to rename the backup_label file:
mv /storage/db/vcops/vpostgres/repl/backup_label /storage/db/vcops/vpostgres/repl/backup_label.bak
- Restart the vcops service:
service vmware-vcops restart
- Repeat step 3 on all nodes in the Aria Operations Manager cluster.
Notes:
If Aria Operations Manager cluster HA needs to be disabled, and the Replica node needs to become a data node, run the following commands in lieu of step 5 under Set Primary and Replica:
$VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin true --data true --ui true --adminCS IPOfPrimaryNode --enableHA false --startServices false
$VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin false --data true --ui true --adminCS IPOfMasterNode --enableHA false --startServices false
$VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin false --data true --ui true --adminCS IPOfMasterNode --enableHA false --startServices false
- Run on Remote Collector nodes
$VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin false --data false --ui false --remoteCollector true --adminCS IPOfMasterNode --enableHA false --startServices false
Note: Replace IpOfMasterNode with the IP address of the Primary node.
Example: $VMWARE_PYTHON_BIN ./vcopsConfigureRoles.py --action configureRoles --admin true --data true --ui true --adminCS 192.168.3.1 --enableHA false --startServices false