Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Introduction:

We are going to describe the steps to migrate the NFS repository to a new NFS destination. This procedure have been tested on Abiquo HF4. We will explain the migration for an environment with the next separated elements:

  • Abiquo Server
  • Abiquo RS
  • Abiquo BPM (v2v)
  • KVM hypervisor
  • ESX hypervisor

Migration steps:

1. Synchronize the NFS from the destination NFS (you will need rsync)
#> mount -t nfs ORIGIN_IP:/opt/vm_repository /mnt
#> rsync -avvv /mnt/ /opt/vm_repository/

Note: Be carefully to put the "/" at the end of the folder as the example, to make the copy correctly
2. Stop Abiquo Server, Abiquo RS and Abiquo BPM (in that order). Please review ..WIKIPAGE..
3. Synchronize again the NFS from the destination NFS (in case any changes)
4. Update database and set the correct value for repository
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)

mysql> update repository set URL = "NEW_IP:/opt/vm_repository2";
5. Update mount point on Abiquo Server, Abiquo RS, Abiquo BPM and KVM hypervisors
#> vi /etc/fstab

** Modify:
** 10.60.13.25:/opt/vm_repository /opt/vm_repository  nfs defaults    0 0
** For:
** NEW_IP:/opt/vm_repository /opt/vm_repository  nfs defaults    0 0

#> umount -l /opt/vm_repository
#> mount /opt/vm_repository

If you have updated the repository for kvm hypervisors, you need to restart abiquo-aim

#> /etc/init.d/abiquo-aim restart
  • Note: For your ESX hypervisors, you don't need to perform any action to make it work, but you might want to delete the old repository from the storage view manually
6. Edit /opt/abiquo/config/abiquo.properties on Abiquo RS
** Modify the property abiquo.appliancemanager.repositoryLocation and set the new ip of the NFS.
abiquo.appliancemanager.repositoryLocation = NEW_IP:/opt/vm_repository
** Do the same if you have set the next values in your environment:
abiquo.virtualfactory.hyperv.repositoryLocation
abiquo.virtualfactory.xenserver.repositoryLocation
7. Start Abiquo BPM, Abiquo RS and Abiquo Server (in that order)
  • No labels