...
Synchronize the NFS from the destination NFS
Code Block #> mount -t nfs ORIGIN_IP:/opt/vm_repository /mnt #> mkdir /opt/vm_repository #> rsync -avvv /mnt/ /opt/vm_repository/
Be careful to put the slash (
/)
at the end of the folder name, to make the copy correctly, as in the exampleStop the Tomcat servers in the correct order:
Abiquo Server
Abiquo Remote Services
Abiquo BPM (V2V)
Synchronize the NFS from the destination NFS again. Here we repeat the synchronization in case there are any changes
Get the current value for the repository and datacenter
Code Block mysql> select * from repository; +--------------+--------------+--------------------+---------------------------------+-----------+ | idRepository | idDataCenter | name | URL | version_c | +--------------+--------------+--------------------+---------------------------------+-----------+ | 1 | 1 | virtual image repo | 10.60.13.25:/opt/vm_repository | 0 | +--------------+--------------+--------------------+---------------------------------+-----------+ 1 row in set (0.00 sec)
Update the database with the correct value for the new repository
Code Block mysql> update repository set URL = "<NEW_IP>:/opt/vm_repository" where idDatacenter = <YOUR_DATACENTER_ID>;
On Abiquo Remote Services, Abiquo V2V (BPM), and all KVM hypervisors, update the mount point
Edit the
/etc/fstab
files. Change the old IP to the NEW_IP. Save the fileCode Block ** Change: ** 10.60.13.25:/opt/vm_repository /opt/vm_repository nfs defaults 0 0 ** To: ** <NEW_IP>:/opt/vm_repository /opt/vm_repository nfs defaults 0 0
Unmount and remount the repository
Code Block #> umount -l /opt/vm_repository #> mount /opt/vm_repository
If you have updated the repository for KVM hypervisors, restart
abiquo-aim
Code Block #> /etc/init.d/abiquo-aim restart
For your ESXi hypervisors, we recommend that you go the Storage view and manually delete the old repository
On Abiquo Remote Services and Abiquo BPM (V2V), edit
/opt/abiquo/config/abiquo.properties
Modify the
abiquo.appliancemanager.repositoryLocation
property and set the new IP of the NFS.Code Block abiquo.appliancemanager.repositoryLocation = NEW_IP:/opt/vm_repository
Restart the Abiquo Tomcat servers in the following order
Abiquo V2V (BPM)
Abiquo Remote Services
Abiquo Server
...