You can change the NFS share for your VMware Cloud Director appliance after deployment.

Procedure

  1. Quiesce and stop the vmware-vcd service on all appliances in the VMware Cloud Director server group.
    /opt/vmware/vcloud-director/bin/cell-management-tool -u admin_username cell --shutdown
  2. Stop the appliance-sync.timer service on all appliances in the server group.
    systemctl stop appliance-sync.timer
  3. On the primary appliance, copy the data from the old NFS share to the new one.
    1. Create a new NFS share mount point.
      mkdir /opt/vmware/vcloud-director/data/transfer-new/
    2. Mount the new NFS server share on the new mount point.
      mount -t nfs NFS_server_IP_address:/data/transfer /opt/vmware/vcloud-director/data/transfer-new
    3. Copy the files from the old transfer share to the new transfer share.
      Note: The time it takes to copy the files depends on the number of catalog items cached in the transfer folder share.
      cp -aR /opt/vmware/vcloud-director/data/transfer/* /opt/vmware/vcloud-director/data/transfer-new/
    4. When you copy the files successfully, confirm that the contents of the old NFS share are in new NFS share by verifying the contents of /opt/vmware/vcloud-director/data/transfer-new or running the following command.
      diff -r --brief /opt/vmware/vcloud-director/data/transfer/ /opt/vmware/vcloud-director/data/transfer-new/
    5. Unmount the new NFS share from the temporary mount point.
      umount /opt/vmware/vcloud-director/data/transfer-new/
    6. Delete the temporary mount point.
      rmdir /opt/vmware/vcloud-director/data/transfer-new/
  4. Update the /etc/fstab file, replacing the NFS line with the path to the new NFS server.
    NFS_server_IP_address:/data/transfer_appliance /opt/vmware/vcloud-director/data/transfer/ nfs defaults 0 0
  5. Unmount the old NFS share.
    umount /opt/vmware/vcloud-director/data/transfer/
  6. Mount the new NFS share.
    mount -a
  7. Confirm that you mounted the NFS share successfully by verifying that the output of the mount command lists the mounted NFS share.
  8. Change the ownership of the transfer directory from root to vcloud using the following command.
    chown -R vcloud:vcloud /opt/vmware/vcloud-director/data/transfer
  9. Restart the appliance-sync.timer service.
    systemctl start appliance-sync.timer
  10. Repeat steps 4 through 9 on all the nodes in the server group.
  11. One node at a time, restart the vmware-vcd service.
    systemctl start vmware-vcd
  12. Verify that vmware-vcd works correctly on all nodes in the server group.