Migrating to Voi Swarm
From host-based based setups
Install Voi Swarm on your server by importing your existing wallet using your mnemonic:
export VOINETWORK_IMPORT_ACCOUNT=1
/bin/bash -c "$(curl -fsSL https://get.voi.network/swarm)"
During the installation, the setup will detect compatible AVM based setups on the same host and offer migration automatically.
If you want to migrate manually after installation run this command:
~/voi/bin/migrate-from-host-setup
This command will do the following steps for you:
- Duplicate telemetry settings, including existing telemetry name and GUID.
- Stop the host-based Voi and Algorand services
- Remove the Algorand debian package, to avoid conficts with the Voi Swarm setup
- Restart Voi Swarm
To migrate your setup to a new server you must first install Voi Swarm on the new server using the installation instructions, after this you can migrate your existing setup by following these steps:
-
Run the following command on the old server to get the telemetry name and GUID:
sudo ALGORAND_DATA=/var/lib/algorand diagcfg telemetry status
-
Copy the telemetry name and GUID to the new server.
-
Run the following command on the new server to set the telemetry name and GUID:
~/voi/bin/set-telemetry-name <telemetry-name> <telemetry-guid>