One Page View of all vCD 10.X commands

Loading

Blog Series

Note – This page is currently under continuous development, please check back at a later date

Login to the primary vCD Cell. All vCD logs are present in this location.

Core vCD Directories

PathPurpose
/opt/vmware/vcloud-director/logs/cell.logConsole output
/opt/vmware/var/log/vcd/setupvcd.log NFS Storage Logs
/opt/vmware/var/log/vcd/Replication Manager (repmgr) logs
/opt/vmware/vcloud-director/logs/vcloud-container-info.logInfo, Warning and Errors
/opt/vmware/vcloud-director/logs/vmware-vcd-watchdog.logCell Crashes, Restarts etc
/opt/vmware/vcloud-director/logs/server-group-communicationsServer group communications from the cell
/opt/vmware/vcloud-director/logs/vcloud-container-info.logWarnings or errors encountered by the cell.
/opt/vmware/vcloud-director/logs/vcloud-container-debug.logDebug-level log messages from the cell.
/opt/vmware/vcloud-director/logs/diagnostics.logCell diagnostics log if enabled
/opt/vmware/vcloud-director/logs/vmware-vcd-watchdog.log
Info about Cell restarts, service outages etc
  1. Log in directly or SSH to the VMware Cloud Director appliance console as root.
  2. Navigate to the appropriate log file.
    • If the vamicli update –check fails, navigate to /opt/vmware/var/log/vami/vami.log.
    • If the vamicli update –install latest fails, navigate to /opt/vmware/var/log/vami/updatecli.log.
  3. Examine the log file.

Inspecting vCD Services

  • systemctl status vmware-vcd.service
  • systemctl status vpostgres.service
  • systemctl start vpostgres.service
  • systemctl stop vpostgres.service
  • systemctl reload vpostgres.service
  • systemctl start vmware-vcd.service
  • systemctl stop vmware-vcd.service
  • systemctl reload vmware-vcd.service

vCD Maintainence

Check Cell Status

root@vcd-cell-01 [ ~ ]# /opt/vmware/vcloud-director/bin/cell-management-tool -u administrator cell –status

Please enter the administrator password:

Job count = 28

Is Active = true

In Maintenance Mode = false

Pause Cell to prevent new jobs

/opt/vmware/vcloud-director/bin/cell-management-tool -u administrator cell –quiesce true

Please enter the administrator password:

root@photon-machine [ ~ ]#

Check Cell Status

/opt/vmware/vcloud-director/bin/cell-management-tool -u administrator cell –status

Please enter the administrator password:

Job count = 0

Is Active = false

In Maintenance Mode = false

Shutdown vCD Cell

/opt/vmware/vcloud-director/bin/cell-management-tool -u administrator cell –shutdown

Useful Commands for HA Cluster Operations

These are show commands and you can run to have deep inside of vCD HA cluster status.

Show Cluster Components

# sudo -i -u postgres /opt/vmware/vpostgres/current/bin/repmgr -f /opt/vmware/vpostgres/current/etc/repmgr.conf cluster matrix

Check the Replication Status of a Node in a Database High Availability Cluster

# sudo -i -u postgres /opt/vmware/vpostgres/current/bin/repmgr -f /opt/vmware/vpostgres/current/etc/repmgr.conf node status

Check the Status of a Database High Availability Cluster via replication manager tool suite

sudo -i -u postgres /opt/vmware/vpostgres/current/bin/repmgr cluster show && repmgr daemon status

Check the cluster events log

sudo -i -u postgres /opt/vmware/vpostgres/current/bin/repmgr -f /opt/vmware/vpostgres/current/etc/repmgr.conf cluster event

Switch the Roles of the Primary and a Standby Cell in a Database High Avail Cluster

Unregister a Failed or Unreachable Standby Node in a Database High Availability Cluster

sudo -i -u postgres /opt/vmware/vpostgres/current/bin/repmgr cluster show

sudo -i -u postgres /opt/vmware/vpostgres/current/bin/repmgr primary unregister –node-id=23275 –dry-run

sudo -i -u postgres /opt/vmware/vpostgres/current/bin/repmgr primary unregister –node-id=23275

Unregister a Running Standby Cell in a Database High Availability Cluster

sudo -i -u postgres /opt/vmware/vpostgres/current/bin/repmgr standby unregister –node-id=23275 -f /opt/vmware/vpostgres/current/etc/repmgr.conf

(Visited 1,267 times, 1 visits today)

By Ash Thomas

Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.

Leave a Reply