Moved Chia DB (Linux CLI) - Still seems to be syncing to old location

I am moving my Windows Farm to Linux CLI, and I want the Wallet/DB to live on a specially mounted volume.

First I moved the DB dir, and updated config.yaml by updating the following to /mnt/chia/db instead of “data_layer”.

data_layer:
  client_timeout: 15
  database_path: data_layer/chia/db/data_layer_CHALLENGE.sqlite

I rebooted for good measure.

But the OS drive kept filling up and running chia db validate showed a reference to the old location: DATABASE IS VALID: /root/.chia/mainnet/db/blockchain_v2_mainnet.sqlite

Folders were recreated in the original location.

I tried, this time to do something similar, but put in a symlink for the wallet and db dirs.

Same issue.

Any ideas?

I got it to work with symlinking. Had the source and the destination the wrong way round. Also since the dir existed it stuck the dir withing the dir.

Upside down and inside out.

1 Like

Curious about what changes you ended up with in the config.yaml because the data_layer section isn’t what you want for wallet. There is a wallet section in the config.

Example given was for blockchain db. I ended up using default config yamly and symlinking the blockchain db dir and wallet dir to my other drive.