At first, we need to stop vCloud Services by running the next commands.
# service vmware-vcd stop
And them, copy the information to other location.
# cp -r /opt/vmware/vcloud-director/data/transfer/ /tmp/copy
Them, delete the exiting data.
# rm -fR /opt/vmware/vcloud-director/data/transfer/*
Next, we need to mount the shared NFS by runing this command.
# mount -t nfs 10.161.115.160:/nfs /opt/vmware/vcloud-director/data/transfer
And them copy the information from /tmp to /opt/vmware/vcloud-director/data/transfer/
# cp -r /tmp/copy-of-transfer/* /opt/vmware/vcloud-director/data/transfer/
We will confirm the mount point.
And them we need to make sure the shared NFS is mounted after reboot by editing /etc/export.
# nano /etc/export
10.161.115.168:/nfs /opt/vmware/vcloud-director/data/transfer/ nfs rw 0 0
We have to confirm that the “cells” directory is now owned by vcloud. To configure this:
# chown -R vcloud:vcloud /opt/vmware/vcloud-director/data/transfer/*
Finally, start the vCloud Director service
# service vmware-vcd start
Hoping you have enjoyed this post, see you next time.