The script create-db-backup fails
search cancel

The script create-db-backup fails

book

Article ID: 321865

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • The script /opt/vmware/appliance/bin/create-db-backup fails.
  • The script believes a previous NFS mount for /opt/vmware/vcloud-director/data/transfer is still being used.

<NFS Server>:/path is not mounted. Ensure that the NFS is mounted before reinvoking this script. Script will exit now.


Environment

VMware Cloud Director for Service Provider 10.x
VMware Cloud Director for Service Provider 9.7.x

Cause

The ovf environment variable vcloudapp.nfs_mount.VMware_vCloud_Director for the appliance did not update when the NFS mount changed. It will need to be changed manually.

Resolution

  1. SSH into one of the cells.
  2. Run the command:
ovfenv

root@vcd97cell [ ~ ]# ovfenv
[vami.DNS.VMware_vCloud_Director]=192.168.69.2
...
[vcloudapp.nfs_mount.VMware_vCloud_Director]=192.168.69.7:/mnt/NFS/vcd97
...
[vm.vmname]=VMware_vCloud_Director


Note:  The ovfenv command will show a list of all the variables. One of these will be vcloudapp.nfs_mount.VMware_vCloud_Director. That variable should show the old NFS mount point.
  1. To change the value of the variable, execute the following command:

ovfenv --key vcloudapp.nfs_mount.VMware_vCloud_Director --value new mount path

  1. Run the ovfenv command to validate the change has been made.