Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

...

This document describes the steps to migrate the NFS repository to a new NFS destination. This procedure have has been tested on Abiquo ???2.4. We will explain the migration for an environment with the next separated following separate elements:

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

Migration steps

...

1. Synchronize the NFS from the destination NFS (you will need rsync)
Code Block
#> 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

...

Stop the servers in the correct order: 1. Abiquo Server, 2. Abiquo RS, 3. Abiquo BPM (V2V)

3. Synchronize

...

the NFS again from the destination NFS

...

It is necessary to repeat the synchronization in case there are any changes

...

4. Update database and set the correct value for the repository
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)

mysql> update repository set URL = "NEW_IP:/opt/vm_repository2";

...

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

Code Block
#> /etc/init.d/abiquo-aim restart

...

 For your ESX hypervisors, you don't need to

...

do anything, but we advise you

...

to delete the old repository from the storage view manually

6. Edit /opt/abiquo/config/abiquo.properties on Abiquo RS
Code Block
** Modify the property abiquo.appliancemanager.repositoryLocation and set the new ipIP of the NFS.
abiquo.appliancemanager.repositoryLocation = NEW_IP:/opt/vm_repository
** Do the same if you have set the nextfollowing values in your environment:
abiquo.virtualfactory.hyperv.repositoryLocation
abiquo.virtualfactory.xenserver.repositoryLocation
7. Start Abiquo BPM, Abiquo RS and Abiquo

...

Server 

Restart the servers in the correct order: 1. Abiquo BPM (V2V), 2. Abiquo RS, 3. Abiquo Server