guides:farming:upgradedb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
guides:farming:upgradedb [2022/05/17 12:37] – [Download and replace] vleesbanaan | guides:farming:upgradedb [2022/05/18 06:10] – vleesbanaan | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== How to Upgrade the Chia db ===== | ===== How to Upgrade the Chia db ===== | ||
- | Upgrading the Chia db CAN be a very simple process. | + | Upgrading the Chia db from v1 to v2 CAN be a very simple process. |
+ | However, the reason you are reading this guide is most probably because you want to learn how to upgrade AFTER your drive is full and you don't want to sync from scratch. | ||
+ | |||
+ | We will go through three different ways: | ||
+ | - Upgrading the easy way | ||
+ | - Download v2 from a trusted source and replace v1 | ||
+ | - Using an external SSD | ||
+ | |||
+ | |||
+ | ==== Updating the easy way ==== | ||
+ | |||
+ | * in CLI change directory to chia '' | ||
+ | * run '' | ||
+ | * Update your config.yaml under the '' | ||
There are two prerequisites for upgrading the Chia db the easy way. | There are two prerequisites for upgrading the Chia db the easy way. | ||
* enough space on the target directory | * enough space on the target directory | ||
- | * enough space on your temporary directory | + | * enough space on your temporary directory |
- | However, the reason you are reading this guide is most probably because you want to learn how to upgrade AFTER your drive is full and you don't want to sync from scratch. | + | For further reference, see https:// |
- | + | ||
- | We will go through two different ways: | + | |
- | | + | |
- | | + | |
==== Download and replace ==== | ==== Download and replace ==== | ||
The advantage of this method is that it is easy and has minimal downtime. The trick is to download the db right after the snapshot, so your node needs to do minimal syncing to catch up with the latest blockheight. The downside is that you need to trust the source from which you download the snapshot. | The advantage of this method is that it is easy and has minimal downtime. The trick is to download the db right after the snapshot, so your node needs to do minimal syncing to catch up with the latest blockheight. The downside is that you need to trust the source from which you download the snapshot. | ||
- | Make sure your TMP folder has enough space available (size of v1+v2). If not, see the fix under | ||
- Stop all chia processes | - Stop all chia processes | ||
- | - go to DIRECTORY | + | - go to '' |
- | - delete | + | - download |
- | - download | + | - in your your config.yaml, replace under the '' |
- | - edit config.yaml | + | |
==== Using an external SSD ==== | ==== Using an external SSD ==== | ||
+ | |||
* stop all chia processes '' | * stop all chia processes '' | ||
* [[guides/ | * [[guides/ | ||
+ | * Make sure your TMP folder has enough space available (size of v1+v2). If not, see the fix under "Error when TMP folder full". | ||
* in CLI change directory to chia '' | * in CLI change directory to chia '' | ||
* '' | * '' | ||
- | * when done, '' | + | |
+ | | ||
=== Error when TMP folder full === | === Error when TMP folder full === | ||
- | The method above doesn' | + | The method above doesn' |
You will attempt to do so, you get a pop-up with the following window somewhere in the process: | You will attempt to do so, you get a pop-up with the following window somewhere in the process: | ||
Line 51: | Line 63: | ||
* In case you already used '' | * In case you already used '' | ||
* '' | * '' | ||
+ | |||
+ | after you are done, don't forget to set back your temporary folder back to your original folder! |
guides/farming/upgradedb.txt · Last modified: 2022/06/21 08:09 by vleesbanaan