This article explains how to migrate the database of Host PowerTools for VMware from one appliance to another. This is useful if you want to create a new instance of Host PowerTools for VMware, while retaining the data from an existing appliance.
The database contains information about snapshots taken with PowerTools and more information used internally by the tool.
This article assumes that you have two PowerTools appliances deployed - one with data to migrate (the "first appliance") and a new instance to migrate the data to (the "new appliance").
Step 1 - Stopping the service on the appliances
Using ssh (or putty on Windows), log in to both the first appliance and the new appliance.
You can find the IP of an appliance using the "Summary" view of the appliance in the vCenter client.
Use the following credentials:
- For the User, enter
- For the Password, enter the value set for the Host PowerTools for VMware password. If a value has not been set, enter
On both appliances, run the following commands:
Step 2 - Copying the database file
Use the scp command to copy the database file from the first appliance to the new appliance.
Log in to the new appliance and run the following command (fill in the IP address of the first appliance):
scp root@<first-appliance-ip>:/opt/infinidat/host-power-tools-for-vmware/data/redis.aof /opt/infinidat/host-power-tools-for-vmware/data/redis.aof
Use the same password from above.
For example, if the IP of the appliance is 172.16.90.228, this command will copy the database:
Note: this command assumes that there is IP connectivity between the two appliances. In case there is no direct connectivity, you can copy the database file from the first appliance to an intermediate location that is accessible to both appliances and then copy it to the new appliance.
Step 3 - Starting the service on the new appliance
On the new appliance, run the following commands: