Error when running the following command:
/opt/vmware/vcloud-director/bin/vmware-vcd-support -m -l
2024-12-06 15:36:37 | INFO | VMware vCD support script is already running!
VMware Cloud Director 10.x
The vmware-vcd-support script creates a temp file to identify and block the script from running multiple times.
To resolve this issue, perform the following:
1. Confirm on each cell that the script is not running:
hostname ; ps -auxxx | grep vmware-vcd-support | grep -v grep | tr -s ' ' | cut -d ' ' -f 1,2,12 ; ls /opt/vmware/vcloud-director/data/transfer/tmp.lock
- The above command outputs the cell host name, checks if the service is running and lastly that a tmp.log file exists.
Example output:
VMwarevCloudDirector
root 39833 /opt/vmware/vcloud-director/bin/vmware-vcd-support
/opt/vmware/vcloud-director/data/transfer/tmp.lock
2. If the command is found to be running, indicated but the output above - root 39833 /opt/vmware/vcloud-director/bin/vmware-vcd-support - it will need to be killed:
kill -9 [Process ID found in step 1]
Example:
kill -9 39833
3. Once all cells have been checked, and any running vmware-vcd-support commands have been killed delete the lock file as found in step 1:
rm /opt/vmware/vcloud-director/data/transfer/tmp.lock