diff --git a/Setting-up-a-Hub.md b/Setting-up-a-Hub.md index 35da64b..ad17e68 100644 --- a/Setting-up-a-Hub.md +++ b/Setting-up-a-Hub.md @@ -41,10 +41,11 @@ sudo systemctl enable containerd.service ### create lbcd and rocksdb volumes ```bash -mkdir -p /home/lbry/docker-volumes/lbcd /home/lbry/docker-volumes/rocksdb +mkdir -p /home/lbry/docker-volumes/lbcd /home/lbry/docker-volumes/rocksdb /home/lbry/docker-volumes/es01 # sudo chown -R 999:999 /home/lbry/docker-volumes ## not needed unless you encounter problems docker volume create --driver local --opt type=none --opt device=/home/lbry/docker-volumes/lbcd --opt o=bind lbry_lbcd docker volume create --driver local --opt type=none --opt device=/home/lbry/docker-volumes/rocksdb --opt o=bind lbry_rocksdb +docker volume create --driver local --opt type=none --opt device=/home/lbry/docker-volumes/es01 --opt o=bind es01 ``` @@ -98,7 +99,20 @@ wait for it to sync ## Elastic and Elastic Sync -### first start elastic and wait for it to load the snapshot +### download snapshot + +```bash +mkdir /home/lbry/elastic-snapshot +cd /home/lbry/elastic-snapshot +wget -c https://snapshots.lbry.com/hub/es_snap.tar -O - | tar x +sudo mv es_snap/lbry_es01/_data/nodes /home/lbry/docker-volumes/es01/ +sudo chown -R lbry:root /home/lbry/docker-volumes/es01 +sudo chmod -R 775 /home/lbry/docker-volumes/es01 +sudo cp es_snap/es_info /home/lbry/docker-volumes/rocksdb/ +sudo chown -R 999:999 /home/lbry/docker-volumes/rocksdb/es_info +``` + +### start elastic first and wait for it to load the snapshot ```bash docker compose up -d es01