Skip to main content

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.

SERVICE PROCESS FOUND (PID)
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.

NODECTL VERSION MATCH
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-l0 State: ApiNotReady


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

Exit new configuration build to stop profiles? [y] n

β—½ Choose Predefined Config

  • Choose 1 for mainnet [Hypergraph]

β—½ Global P12 details

We will set all profile to global.

Set ALL profile p12 wallets to Global? [y] y

β—½ Preserve P12 details

We will preserve our p12 keystore configuration settings.

Preserve global p12 details? [n] y

β—½ Clean Up Old Profiles

We need to remove the old profiles from our Node.

Remove old profiles? [y] y

This may take a few moments, please exercise patience.

β—½ Clean Up Old Services

We need to remove the old service files from our Node.

Remove old service files? [y] y

β—½ Build Services

No action needed. nodectl will build your new service files.

β—½ Review New Configuration (optional)

Optionally, review the new configuration file.

Review the created configuration? [y] n

β—½ 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
JOIN STATE
Ready