This guide provides instructions for migrating a SKALE node and SGXWallet to a new server following the recommended migration process.Documentation Index
Fetch the complete documentation index at: https://docs.skale.space/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before starting the migration, ensure you have:- Access to both the current and new servers
- Administrative privileges on both systems
- Secure network connection between servers
Migration Steps
Migrate SGX
-
Setup new SGX server
Prepare a new server with:
- Ubuntu 22.04 LTS (Jammy Jellyfish)
- SGX-enabled Intel processor
- 8 physical cores
- 16 GB RAM
- 200 GB disk mounted as /
- Swap size equals to half (1/2) of RAM size
-
Install packages required for SGX
-
Verify processor supports Intel SGX
-
Disable automatic updates
It’s recommended to only update the SGXWallet server if there are critical security fixes. This is because SGXWallet is based on low
level technology, and kernel updates may break the system. Currently SGX is tested on 5.15* kernels. It’s best to avoid minor version updates too.
To make sure
apt updatewon’t update the kernel you should use apt-mark hold command:Also if you configured unattended upgrades, you should make sure kernel won’t update automatically. To do this, add the following lines to/etc/apt/apt.conf.d/50unattended-upgradesfile:Output - Configure firewall between SGX and node servers
-
Download SGXWallet source code
Clone SGX Wallet Repository to your machine:
-
Enable SGX on the new server
SGX Wallet repository includes the sgx_enable utility. To enable SGX run:
Install SGX driver:System Reboot:Check driver installation: To check that isgx device is properly installed run this command:Reboot your machine after driver install!If you don’t see the isgx device, you need to troubleshoot your driver installation from here.
-
Copy sgx_data folder to the new server
From your old server, securely transfer the SGX data:
-
Set the version and -b flag in docker-compose.yml
Edit the
sgxwallet/run_sgx/docker-compose.ymlfile:- Change the image version to:
skalenetwork/sgxwallet:1.9.0-stable.4 - Add
-bto the existing command section (don’t replace the entire command, just add-bto it)
- Change the image version to:
-
Run docker-compose up -d
Migrate Node
-
Setup new node server
Prepare a new server with:
- Ubuntu 22.04 LTS (Jammy Jellyfish)
- 8 physical cores
- 32 GB RAM
- 100 GB disk mounted as /
- 2Tb additional disk (not mounted)
-
Install packages required for the node
-
Disable automatic updates
Currently SKALE Node is tested on 5.15* kernels. It’s best to avoid minor version updates too.
To make sure
apt updatewon’t update the kernel you should use apt-mark hold command:Also if you configured unattended upgrades, you should make sure kernel won’t update automatically. To do this, add the following lines to/etc/apt/apt.conf.d/50unattended-upgradesfile: -
Run node backup on old server
This will create a backup tarball (e.g.,
skale-node-backup-YYYY-MM-DD-HHMMSS.tar.gz) -
Copy backup tarball and .env config to the new server
-
Download node-CLI version
-
Restore node from backup
