chia - how to convert database to version 2 when there is not enough disc space?

chia db upgrade
there is probably not enough free space on the volume where the output database will be written:


- stop chia processes

- write v2 database to another directory: chia db upgrade --output /opt/nfs_nas01/blockchain_v2_mainnet.sqlite

- change your config.yaml file (can be found for example in .chia/mainnet/config on a linux system )
-- replace under the full_node: section from database_path:
---- db/blockchain_v1_CHALLENGE.sqlite to
---- database_path: db/blockchain_v2_CHALLENGE.sqlite

- move v1 database or delete it: cd $HOME/.chia/mainnet/db
-- move blockchain_v1_mainnet.sqlite /to/somewhere
-- rm blockchain_v1_mainnet.sqlite

- copy backup new v2 file to $HOME/.chia/mainnet/db

- start chia


computer2know :: thank you for your visit :: have a nice day :: © 2024