Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: kingdice21 on September 05, 2017, 01:22:21 PM



Title: How Free up Space from my vps with bitcoin-cli ? ubuntu 14.04
Post by: kingdice21 on September 05, 2017, 01:22:21 PM
Hello everyone. ;D

I have a bitcoin client in my vps ubuuntu.

but recently, I have no more space. to continue downloading the blocks of the blockchain.

and search for google. and the only information I found was to remove two directories from the folder bitcoin -> blocks -> chainstate. but when I start the bitcoin client again. in less than 8 hours it again download all the blocks data. so my hdd is up again

my question is. is there any way to erase the database. I do not want to again download all the blocks. jut start from 0
without having to uninstall the bitcoin client


Title: Re: How Free up Space from my vps with bitcoin-cli ? ubuntu 14.04
Post by: ScripterRon on September 05, 2017, 02:36:08 PM
Hello everyone. ;D

I have a bitcoin client in my vps ubuuntu.

but recently, I have no more space. to continue downloading the blocks of the blockchain.

and search for google. and the only information I found was to remove two directories from the folder bitcoin -> blocks -> chainstate. but when I start the bitcoin client again. in less than 8 hours it again download all the blocks data. so my hdd is up again

my question is. is there any way to erase the database. I do not want to again download all the blocks. jut start from 0
without having to uninstall the bitcoin client

You can't run a full client without downloading the complete blockchain.  However, you can run a pruned client which just keeps the latest blocks on disk.  You do this by adding 'prune=n' to bitcoin.conf, where n is the number of MBytes to allocate for stored blocks (n must be greater than 550).  Old blocks will be automatically removed when the prune limit is reached.  Note that a pruned node cannot supply historical blocks to other nodes nor can it do a rescan operation without re-downloading the blockchain.


Title: Re: How Free up Space from my vps with bitcoin-cli ? ubuntu 14.04
Post by: kingdice21 on September 05, 2017, 02:37:56 PM
yeah thanks i fix that!


Title: Re: How Free up Space from my vps with bitcoin-cli ? ubuntu 14.04
Post by: miguelmorales85 on September 09, 2017, 12:07:16 AM
Hello everyone. ;D

I have a bitcoin client in my vps ubuuntu.

but recently, I have no more space. to continue downloading the blocks of the blockchain.

and search for google. and the only information I found was to remove two directories from the folder bitcoin -> blocks -> chainstate. but when I start the bitcoin client again. in less than 8 hours it again download all the blocks data. so my hdd is up again

my question is. is there any way to erase the database. I do not want to again download all the blocks. jut start from 0
without having to uninstall the bitcoin client

You can't run a full client without downloading the complete blockchain.  However, you can run a pruned client which just keeps the latest blocks on disk.  You do this by adding 'prune=n' to bitcoin.conf, where n is the number of MBytes to allocate for stored blocks (n must be greater than 550).  Old blocks will be automatically removed when the prune limit is reached.  Note that a pruned node cannot supply historical blocks to other nodes nor can it do a rescan operation without re-downloading the blockchain.

Good answer but I think you need to clarify if pruned nodes can resolve transactions.


Title: Re: How Free up Space from my vps with bitcoin-cli ? ubuntu 14.04
Post by: ranochigo on September 09, 2017, 02:45:18 AM
You can't run a full client without downloading the complete blockchain.  However, you can run a pruned client which just keeps the latest blocks on disk.  You do this by adding 'prune=n' to bitcoin.conf, where n is the number of MBytes to allocate for stored blocks (n must be greater than 550).  Old blocks will be automatically removed when the prune limit is reached.  Note that a pruned node cannot supply historical blocks to other nodes nor can it do a rescan operation without re-downloading the blockchain.

Good answer but I think you need to clarify if pruned nodes can resolve transactions.
The client will verify blocks and transactions as usual. However, the client will not help other nodes it is connected to to synchronize. A pruned node can only relay new blocks and transactions.


Title: Re: How Free up Space from my vps with bitcoin-cli ? ubuntu 14.04
Post by: miguelmorales85 on September 09, 2017, 09:40:39 PM
You can't run a full client without downloading the complete blockchain.  However, you can run a pruned client which just keeps the latest blocks on disk.  You do this by adding 'prune=n' to bitcoin.conf, where n is the number of MBytes to allocate for stored blocks (n must be greater than 550).  Old blocks will be automatically removed when the prune limit is reached.  Note that a pruned node cannot supply historical blocks to other nodes nor can it do a rescan operation without re-downloading the blockchain.

Good answer but I think you need to clarify if pruned nodes can resolve transactions.
The client will verify blocks and transactions as usual. However, the client will not help other nodes it is connected to to synchronize. A pruned node can only relay new blocks and transactions.

Thanks you very much for your answer, now I can keep my node pruned. I was worried about the reindex time and sync of the whole BC.


Title: Re: How Free up Space from my vps with bitcoin-cli ? ubuntu 14.04
Post by: MFahad on September 13, 2017, 03:35:33 PM
I would not try doing that, but rather get your private keys out, set up and new wallet, probably a lite version would be better, and then import the balances into the new wallet. That way you have safely stored them. Or you could just transfer the coins to a new wallet that is online or whatever works. It is much easier to move coins than to deal with fixing an ailing wallet set up.