Chaindata Change
💡 THIS GUIDE IS BASED ON Amazon Linux 2
CN Node Migration STEP
Create new disk
Preparing new disk (3,500GB disk) or creating new path on the current disk (It must have 3,500GB available.)
💡 Assuming that the new path is `/var/kcnd2`
Option 1 - New disk (more than 2500GB)
Attach the disk to EC2 and run the command below
Mount it following the process below
Option 2 - Current Disk (not recommended)
Create New Folder
Download the latest chaindata
Download Chain Data to the data of the new Klaytn Data DIR. (You can check the details on Chain Data in https://packages.klaytn.net/cypress/chaindata/)
Download with the following command
Decompress
Configure DATA_DIR & LOG_DIR
Option 1 - Swap the old & new path
🚨 TBD
Stop klaytn daemon process before swap
IMPORTANT Remove CN node in Klaytn council if the node type is CN
💡 You can get packages for EN in the Startup the CN.
Swap the old and new path
New Disk
💡 These commands should be executed with the appropriate privileges.
Current Disk
(Optional) Delete the old path if it is not required anymore
Option 2 - Update DATA_DIR & LOG_DIR in klaytn config file
Klaytn DIR Path Change
Option 1 - New disk
Change
fstab
value from old disk to new disk
Option 2 - Current disk
change the DIR Path from
kcnd.conf
Restart Process(or Reboot Instance)
💡 If reboot is required to add an additional disk, reboot the instance.
IMPORTANT Remove CN node in Klaytn council if the node type is CN
Restart process or reboot instance
Last updated