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 was tested on Abiquo 56.1.0.

Requirements

...

: Rsync

Migration steps

...

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/

...

  1. (warning) Be

...

  1. careful

...

  1. to

...

  1. put

...

  1. the

...

2. Stop Abiquo Server, Abiquo RS and Abiquo BPM
  1. 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

...

    1. Abiquo Remote Services

    2. Abiquo BPM (V2V)

...

  1. Synchronize the NFS

...

  1. from the destination NFS

...

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

...

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

...


  1. Update the database with the correct value for the repository

    Code Block
    mysql> update repository set URL = "NEW_IP:/opt/vm_repository" where idDatacenter = <YOUR_DATACENTER_ID>;

...


  1. Update mount point on Abiquo

...

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

    Code Block
    #> 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


  2. If you have updated the repository for KVM hypervisors, restart abiquo-aim

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

...


  1. For your

...

  1. ESXi hypervisors, we recommend that you go the Storage view and manually delete the old repository

...

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

...

  1. edit /opt/abiquo/config/abiquo.

...

  1. properties

    1. Modify the abiquo.appliancemanager.repositoryLocation

...

    1. property and

...

    1. set

...

    1. the

...

    1. new

...

    1. IP

...

    1. of

...

    1. the

...

    1. NFS.

...

    1. Code Block
      abiquo.appliancemanager.repositoryLocation = NEW_IP:/opt/vm_

...

7. Start Abiquo BPM, Abiquo RS and Abiquo Server 

...

    1. repository 


  1. Restart the Abiquo Tomcat servers in the

...

  1. following order

...

    1. Abiquo V2V (BPM

...

    1. )

...

    1. Abiquo Remote Services
    2. Abiquo Server