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.

We will explain the migration for an environment with the following separate elements:

  • Abiquo Server

  • Abiquo RS

  • Abiquo BPM (V2V)

  • KVM hypervisor

  • ESX hypervisor

This procedure was tested on Abiquo 6.1.0.

...

To migrate the NFS, do these steps 

  1. 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/

    (warning) Be careful to put the slash (/) at the end of the folder name, to make the copy correctly, as in the example

  2. Stop the Tomcat servers in the correct order:

    1. Abiquo Server

    2. Abiquo Remote Services

    3. Abiquo BPM (V2V)

  3. Synchronize the NFS from the destination NFS again. Here

...

  1. we repeat the synchronization in case there are any changes

  2. 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)
  3. Update the database with the correct value for the repository

    Code Block
    mysql> update repository set URL = "

...

  1. <NEW_

...

  1. IP>:/opt/vm_repository" where idDatacenter = <YOUR_DATACENTER_ID>;

...

  1. On Abiquo Remote Services, Abiquo V2V (BPM), and all KVM hypervisors

...

  1. , update the mount point

    1. Edit the /etc/fstab

...

    1. files. Change the old IP to the NEW_IP. Save the file

      Code Block
      ** 

...

    1. Change:
      ** 10.60.13.25:/opt/vm_repository /opt/vm_repository  nfs defaults    0 0
      ** 

...

    1. To:
      ** 

...

    1. <NEW_

...

    1. IP>:/opt/vm_repository /opt/vm_repository  nfs defaults    0 0

...

    1. Unmount and remount the repository

      Code Block
      #> umount -l /opt/vm_repository
      #> mount /opt/vm_repository
  1. If you have updated the repository for KVM hypervisors, restart abiquo-aim

    Code Block
    #> /etc/init.d/abiquo-aim restart
  2. For your ESXi hypervisors, we recommend that you go the Storage view and manually delete the old repository

  3. On Abiquo Remote Services and Abiquo BPM (V2V), edit /opt/abiquo/config/abiquo.properties

    1. Modify the abiquo.appliancemanager.repositoryLocation property and set the new IP of the NFS.

      Code Block
      abiquo.appliancemanager.repositoryLocation = NEW_IP:/opt/vm_repository 
  4. Restart the Abiquo Tomcat servers in the following order

    1. Abiquo V2V (BPM)

    2. Abiquo Remote Services

    3. Abiquo Server