I installed my chia plotter/farmer in a linux PC more than a year ago, using a small M.2 SSD drive. The plots were generated for farming on a pool, and are stored in external HDD disks. That plots have been working fine for all this time. The process at the time created the /home/user/.chia/mainnet directory, where the blockchain (db), wallet and other config files related are created. I have this .chia directory properly backuped (223GB)
After 1 year, that root disk is almost without free space to store the chia blockchain. Now I want to move that /home/user/.chia directory to a new 1TB SSD, and setup chia daemon to run using that external SSD mounted in /media/disk/, so a directory /media/disk/.chia/mainnet should be used instead.
Many daemons for diferent cryptos use a --datadir optarg directory for that (BTC, ETH, and others). I am searching something similar for chia. I am using 1.6.2 chia version, built from sources. But I don’t know how can I run the chia daemon to use a directory different to default /home/user/.chia.
I have tried using CHIA_ROOT=/media/disk/.chia/mainnet. This creates 2 directories:
/media/disk/.chia/mainnet/db
/media/disk/.chia/mainnet/wallet
but the /home/user/.chia/mainnet/config/ssl is still regenerated in my /home/user folder (created inside my root drive). So it is not using the /media/disk/.chia/mainnet/config/*. This for example has the problem that plots created for the pool are not found.
Please help with this would be appreciated. Thanks!