State pruning is a feature we implemented in harmony node to prune redundant state node from the state DB before it was written to DB. State pruning will reduce the blockchain size from current 80+G (as of Feb/25/2020) to <2G. Validators should be able to reduce the disk size significantly to save the cloud cost.
If you are currently running a validator node, you may create a new node using existing blskey and with state pruning enabled to make sure your account can keep earning block rewards. You should backup your blskey and transport it to the new node.
curl -LO https://harmony.one/node.shchmod +x node.sh
Please refer to the rclone document for more details. Replace <ShardID> with your shard id.
rclone sync mainnet:pub.harmony.one/mainnet.min/harmony_db_<ShardID> harmony_db_<ShardID>
sudo tac latest/zerolog*.log | grep -m 1 blockShard.:[1-3] | grep -oE blockNumber.:[0-9]+
You may also reuse existing node, but you may have to stop the node for a few minutes. The process is like,
stop current harmony node process
remove harmony_db_<ShardID> directory, and harmony_db_0 directory
use rclone to sync the state pruned snapshot, both your own shard and shard 0
restart the harmony node process