Migrate an IntegrationNet Node to MainNet Quick Start Guide
This guide is specifically for migrating your IntegrationNet Node over to MainNet.
β½ Validate the Provisioning Your VPS
An IntegrationNet node should already have the same specifications required to run a MainNet node. However, this is a good time to make sure your Hybrid nodes meets these specifications before continuing.
β½ SSH into Your VPS
Review your notes for the connection string.
ssh -i /path/to/ssh/private/key nodeadmin@vps_ip_address
Refer to SSH Explanation, Mac SSH Guide, and Windows SSH Guide for detailed understanding.
β½ Document Current P12 Details
sudo nodectl view_config --section global_p12
You may need this information moving forward with this Quick Start Guide, please securely record these as temporary notes before continuing with this guide.
IMPORTANT
If your p12 passphrase is encrypted, you will not be able to view it. Please ensure you have your p12 passphrase readily available.
You will be prompted to enter your p12 passphrase later in the migration process.
β½ Verify Auto Restart
We want to make sure auto_restart
is disabled.
sudo nodectl auto_restart status
If you see a SERVICE PROCESS FOUND (PID), continue to the next step.
If you see disabled
, you may skip the Disable Auto Restart
step, and continue directly to the update OS step.
disabled
β½ Disable Auto Restart
sudo nodectl configure -e -cb -d
- Option r
Do you want to [disable] auto_resart? [y] y
Disable all 3 Options:
- auto_restart
- auto_upgrade
- on boot
Option q
β½ Update OS
sudo nodectl upgrade_vps
β½ TUI Messages
If you encounter a purple ascii art GUI (text-based user interface TUI). You should leave any values chosen (if there are options) for you and use the Tab key to advance to the OK or Confirm options. Choose Enter to accept and continue.
β½ Reboot Request
If you are instructed to reboot
continue to the next step; otherwise skip to Validate latest nodectl version.
β½ Reboot
sudo nodectl reboot
- If asked to leave the cluster(s) first, you will choose y.
Once nodectl reboots your Node for you, you will lose access to the terminal session.
- Wait 1 minute to allow your VPS to reboot
- SSH into your VPS again using the Node's administration account
nodeadmin
.
β½ Validate latest nodectl version
Node Control Utility Program
sudo nodectl check_versions
If you are on the latest nodectl version, you may skip the next 2 steps and continue the migration process.
True
β½ Upgrade nodectl
sudo nodectl upgrade_nodectl
Optionally, you may refer to the detailed step-by-step guide.
β½ Migrate nodectl
You may be requested to migrate your Node configuration.
IMPORTANT
The migration must be completed.
We will say y and follow the prompts.
β½ Upgrade nodectl
You may be requested to upgrade nodectl
after the nodectl_upgrade
completes.
If an upgrade is requested, we will say n to this request!
β½ Manually Upgrade nodectl
Issue a nodectl_only
upgrade of nodectl.
sudo nodectl upgrade --nodectl_only --ni
β½ Verify Node Status
sudo nodectl quick_status
If your Node is in any other status other than (not equal to):
Ready
DownloadInProgress
If NOT in the states above, skip to this step.
intnet-l1 State: ApiNotReady
β½ Leave and Stop IntegrationNet Cluster
sudo nodectl stop -p intnet-l0
- Yes y to
leave
first.
sudo nodectl stop -p intnet-l1
- Yes y to
leave
first.
Ready to Migrate!
β½ Apply MainNet configuration
β½ Start Migration
sudo nodectl configure -n -cb -d
β½ Pick Scenario
We will be using Scenario Three.
- Press the 3 key to choose Scenario Three.
2) Scenario 2
3) Scenario 3
4) Scenario 4
Read the warning
and press any key to continue.
β½ Handle Stop Request
We already removed our Node from the previous Constellation Network IntegrationNet
clusters during this step. Choose n.
β½ Choose Predefined Config
- Choose 1 for
mainnet [Hypergraph]
β½ Global P12 details
We will set all profile to global
.
β½ Preserve P12 details
We will preserve our p12 keystore configuration settings.
β½ Clean Up Old Profiles
We need to remove the old profiles from our Node.
This may take a few moments, please exercise patience.
β½ Clean Up Old Services
We need to remove the old service files from our Node.
β½ Build Services
No action needed. nodectl will build your new service files.
β½ Review New Configuration (optional)
Optionally, review the new configuration file.
β½ Complete Install and Quit Configurator
Press any key to continue
Press q to quit back to the terminal prompt.
Join MainNet
At the point, you will no longer be utilizing the old profiles:
intnet-l0
intnet-l1
The new profiles associated with MainNet are:
dag-l0
dag-l1
.
You can review the profile descriptions here.
β½ Collateralize your Node
Up until now, you have been rewarded for your participation on IntegrationNet through the information provided in your Lattice account via daily distributions.
On MainNet, rewards will be sent directly to your nodeβs hot wallet.
Please follow this guide and then return to this document when complete.
β½ Download snapshots (Optional)
If you would like to organically download the MainNet snapshots, you can skip to next step.
Community Tool
We will use the community owned and community supported utility Starchiver Extractor. It can be installed, setup, and executed via a single nodectl command.
Please refer to the Starchiver Extractor documentation if you have any questions.
sudo nodectl execute_starchiver -p dag-l0 --restart
β½ Restart your Node
If you preformed the download snapshots step, your Node should have restarted and you can skip this final step.
We will join the new network by using the nodectl restart
feature.
sudo nodectl restart -p all
Note
If you skipped the download snapshots step, this process may take up to 5 days to complete.
β½ Enable Auto Restart (Optional)
You may want to reenable auto restart.
sudo nodectl configure -e -cb -d
- Option R
Do you want to [enable] auto_resart? [y] y
- Enable all 3 Options:
- auto_restart
- auto_upgrade
- on boot
β½ Handling Old Backups
After completing this migration, any backups will now be rendered irrelevant. During the next upgrade, it should be a good opportunity to clear your backups when prompted by the upgrade command.
β½ Completed
After the final steps your Node should be successfully on the cluster. You can validate that your node is online.
sudo nodectl status
Ready