crypto:chia:cli:farm:farming_on_many_machines
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crypto:chia:cli:farm:farming_on_many_machines [2021/07/01 08:27] – created peter | crypto:chia:cli:farm:farming_on_many_machines [2021/07/01 09:58] (current) – [Create Plots] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Crypto - Chia - CLI - Farm - Farming on many machines ====== | ====== Crypto - Chia - CLI - Farm - Farming on many machines ====== | ||
+ | |||
+ | Run a harvester on each machine, without having to run a full node, wallet, and farmer on each one. | ||
+ | |||
+ | This keeps the system simpler, uses less bandwidth, space, CPU, and also keeps the keys safer. | ||
+ | |||
+ | This should also make the overall farming process quicker and more efficient when replying to challenges. | ||
{{: | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== On Main PC ===== | ||
+ | |||
+ | |||
+ | ==== Shut down Chia on the main computer ==== | ||
+ | |||
+ | <code bash> | ||
+ | chia stop -d all | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Find the IP address on the main computer ==== | ||
+ | |||
+ | <code bash> | ||
+ | ip a | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Make a copy of the main machine CA directory ==== | ||
+ | |||
+ | The CA directory is located in **~/ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** Copy the CA file. | ||
+ | |||
+ | This file can be shared via USB stick, or through a network copy to each harvester. | ||
+ | |||
+ | The new ssl/ca directory must be copied with each version of chia-blockchain. | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | |||
+ | Each harvester must have a different set of TLS certificates for your main machine to recognize it as different harvesters. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== In the new Harvester ===== | ||
+ | |||
+ | ==== Install Chia ==== | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Shut down Chia ==== | ||
+ | |||
+ | <code bash> | ||
+ | chia stop -d all | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Modify Chia Config ==== | ||
+ | |||
+ | Edit the ~/ | ||
+ | |||
+ | Search for **enable_upnp**: | ||
+ | |||
+ | <file bash ~/ | ||
+ | enable_upnp: | ||
+ | </ | ||
+ | |||
+ | and change to | ||
+ | |||
+ | <file bash ~/ | ||
+ | enable_upnp: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Search for **harvester: | ||
+ | |||
+ | <file bash ~/ | ||
+ | harvester: | ||
+ | farmer_peer: | ||
+ | host: localhost | ||
+ | </ | ||
+ | |||
+ | and change the **localhost** to the IP address of the main PC. | ||
+ | |||
+ | <file bash ~/ | ||
+ | harvester: | ||
+ | farmer_peer: | ||
+ | host: 192.168.1.51 | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Initialize Chia ==== | ||
+ | |||
+ | <code bash> | ||
+ | chia init -c [directory] | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * **[directory]** is the **copy** of the main machine CA directory and its network location. <WRAP important> | ||
+ | **WARNING: | ||
+ | |||
+ | * Place the copy of the main machine /ca directory into a temp directory on the harvester. | ||
+ | * The harvester will use these files temporarily. | ||
+ | * This temporary directory can then be deleted. | ||
+ | |||
+ | </ | ||
+ | |||
+ | For example, assuming the main PC CA was placed into \main_ca: | ||
+ | |||
+ | <code bash> | ||
+ | chia init -c \main_ca | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Start Chia on the main PC ===== | ||
+ | |||
+ | <code bash> | ||
+ | chia start farmer | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Start the new harvester ===== | ||
+ | |||
+ | On the new PC. | ||
+ | |||
+ | <code bash> | ||
+ | chia start harvester -r | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | It will make a full copy of the blockchain to get to normal sync. | ||
+ | |||
+ | Ensure that firewall rules allow the harvester to connect to the main machine. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check the new harvester is working ===== | ||
+ | |||
+ | On the main PC: | ||
+ | |||
+ | * Navigate to the **Farm** tab. | ||
+ | * At the bottom select **Hide Advanced Options**. | ||
+ | * The **Your Harvester Network** should show additional Node IDs for each harvester. | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | On the main PC **Farm** tab: | ||
+ | |||
+ | * **Last Attempted Proof**: | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Create Plots ===== | ||
+ | |||
+ | New plots can now be created on the new machine. | ||
+ | |||
+ | <code bash> | ||
+ | chia plots create -f farmer_key -p pool_key | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * **farmer_key**: | ||
+ | * **pool_key**: | ||
+ | |||
+ | Plots can also be copied over. | ||
+ | |||
+ | Farming will only happen once full sync is completed. | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <code bash> | ||
+ | chia plots check | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// |
crypto/chia/cli/farm/farming_on_many_machines.1625128022.txt.gz · Last modified: 2021/07/01 08:27 by peter