Last active
May 29, 2019 19:18
-
-
Save sirneb/7e48e82f5ca49952ceaf1c29f6cfcfba to your computer and use it in GitHub Desktop.
5/25/2019 Athens Upgrade Full Guide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This builds off the setup here: https://gist.github.com/sirneb/8419e41aea4f2d5770555301006cea20 | |
// This is upgrade storage version (node won't start otherwise) AND convert from archive mode to full mode with a fairly recent snapshot | |
Step 1: Update the docker-compose.yml from above to include "upgrader" and "importer" service. For this guide, you | |
will need to update the <LOCAL_PATH_TO_SNAPSHOT_FILE> line to: | |
"- /home/<USERNAME>/mainnet-BLy4Y4M1LtPJRDaiM1QRQog1a7HRfns2J6HKCFacwLBYMUFCG6P.full:/snapshot" | |
(Remember to change <USERNAME>) | |
Example: | |
// docker-compose.yml | |
... | |
upgrader: | |
image: tezos/tezos:mainnet | |
hostname: node | |
command: tezos-upgrade-storage | |
volumes: | |
- node_data:/var/run/tezos/node | |
- client_data:/var/run/tezos/client | |
importer: | |
image: tezos/tezos:mainnet | |
hostname: node | |
command: tezos-snapshot-import | |
volumes: | |
- node_data:/var/run/tezos/node | |
- client_data:/var/run/tezos/client | |
- /home/<USERNAME>/mainnet-BLy4Y4M1LtPJRDaiM1QRQog1a7HRfns2J6HKCFacwLBYMUFCG6P.full:/snapshot | |
... | |
Step 2: Stop your node | |
> docker-compose down | |
Step 3: Upgrade Storage, this should be very fast | |
> docker-compose pull && docker-compose up upgrader | |
// NOTE: If you want to keep your node as archive, at this point, you don't need to do anything else, just start as usual | |
Step 4: Destroy your existing chain data and download a recent snapshot | |
> docker volume rm <USERNAME>_node_data | |
> wget https://s3.us-east-2.amazonaws.com/tezos-snapshot/mainnet-BLy4Y4M1LtPJRDaiM1QRQog1a7HRfns2J6HKCFacwLBYMUFCG6P.full | |
Step 5: Convert to full mode and import snapshot (this step might take 30+ minutes, be patient!) | |
> docker-compose pull && docker-compose up importer | |
DONE! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment