Bitcoin Forum
May 06, 2024, 03:53:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: "Disk space is too low! - running bitcoind  (Read 193 times)
nlavji (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 14


View Profile
April 24, 2022, 03:53:09 PM
Merited by ABCbits (1)
 #1

Hello,

I am a newbie.  I installed Ubuntu and ran bitcoind from my user account.  After a little while, I got the following message:

2022-04-23T03:48:14Z *** Disk space is too low!
2022-04-23T03:48:14Z Error: Disk space is too low!
2022-04-23T03:48:14Z FlushStateToDisk: write coins cache to disk (4827382 coins, 685726kB) completed (0.00s)
2022-04-23T03:48:14Z ForceFlushStateToDisk: failed to flush state (Disk space is too low!)
2022-04-23T03:48:14Z FlushStateToDisk: write coins cache to disk (4827382 coins, 685726kB) started
2022-04-23T03:48:14Z *** Disk space is too low!
2022-04-23T03:48:14Z Error: Disk space is too low!
2022-04-23T03:48:14Z FlushStateToDisk: write coins cache to disk (4827382 coins, 685726kB) completed (0.00s)
2022-04-23T03:48:14Z ForceFlushStateToDisk: failed to flush state (Disk space is too low!)
2022-04-23T03:48:15Z Shutdown: done

I allocated 500GB to / during installation.  When I checked the disk space usage, I got the following:

root@simba:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            7.8G     0  7.8G   0% /dev
tmpfs           1.6G  2.0M  1.6G   1% /run
/dev/sda4       492G  467G   90M 100% /
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/loop0      249M  249M     0 100% /snap/gnome-3-38-2004/99
/dev/loop1       62M   62M     0 100% /snap/core20/1328
/dev/loop2      128K  128K     0 100% /snap/bare/5
/dev/loop3       66M   66M     0 100% /snap/gtk-common-themes/1519
/dev/loop4       55M   55M     0 100% /snap/snap-store/558
/dev/sda1       256M   90M  167M  36% /boot/efi
tmpfs           1.6G  136K  1.6G   1% /run/user/1000
/dev/loop6      111M  111M     0 100% /snap/core/12834
/dev/loop7      9.0M  9.0M     0 100% /snap/canonical-livepatch/132
/dev/loop8       62M   62M     0 100% /snap/core20/1405
/dev/loop9       44M   44M     0 100% /snap/snapd/15177
/dev/loop10      45M   45M     0 100% /snap/snapd/15534
/dev/loop5      9.0M  9.0M     0 100% /snap/canonical-livepatch/138
root@simba:~#

I am lost as to why so much space is being used by bitcoind.  I would appreciate if someone can shed light on this.
1714967589
Hero Member
*
Offline Offline

Posts: 1714967589

View Profile Personal Message (Offline)

Ignore
1714967589
Reply with quote  #2

1714967589
Report to moderator
1714967589
Hero Member
*
Offline Offline

Posts: 1714967589

View Profile Personal Message (Offline)

Ignore
1714967589
Reply with quote  #2

1714967589
Report to moderator
1714967589
Hero Member
*
Offline Offline

Posts: 1714967589

View Profile Personal Message (Offline)

Ignore
1714967589
Reply with quote  #2

1714967589
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
April 24, 2022, 04:08:09 PM
Merited by LoyceV (6), vapourminer (1), ABCbits (1), hosseinimr93 (1)
 #2

It downloads and stores the entire blockchain, and it also has its own databases. All of that is 430+ GB now. With an OS also on that disk, 500 GB is not enough.

You could enable pruning and that would delete the vast majority of the blockchain. It reduces the stored data to around 5 GB (with the default setting) but at the cost of being unable to serve old block or to lookup historical transactions. However your node will still download and verify all blocks and transactions so it is still a full node. It will just delete them when they get old enough.

Pruning can be enabled by adding prune=550 to your bitcoin.conf file.

If you want to store the entire blockchain, you will need to get a bigger hard drive.

jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
April 24, 2022, 04:36:17 PM
 #3

/dev/sda4       492G  467G   90M 100% /

Your drive is completely full according to both bitcoind and your filesystem.

I'd recommend trying to move off something before the next shutdown and restart so it doesn't start up and run extremely slowly - depending on the os - (normally about 1GB is enough).
seoincorporation
Legendary
*
Offline Offline

Activity: 3150
Merit: 2930


Top Crypto Casino


View Profile
April 27, 2022, 01:36:49 AM
 #4

/dev/sda4       492G  467G   90M 100% /

Your drive is completely full according to both bitcoind and your filesystem.

I'd recommend trying to move off something before the next shutdown and restart so it doesn't start up and run extremely slowly - depending on the os - (normally about 1GB is enough).


The current blockchain size is 402.55 GB for Apr 25 2022
https://ycharts.com/indicators/bitcoin_blockchain_size

Op should have some extra files than the bitcoin node on that disk, move them to a USB or external drive and it should work fine.

And I would recommend a bigger disk, at least 1TB to avoid this kind of problems. The blockchain is growing up fast.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
ABCbits
Legendary
*
Offline Offline

Activity: 2870
Merit: 7464


Crypto Swap Exchange


View Profile
April 27, 2022, 09:35:27 AM
Merited by LoyceV (6), hosseinimr93 (1)
 #5

--snip--
The current blockchain size is 402.55 GB for Apr 25 2022
https://ycharts.com/indicators/bitcoin_blockchain_size

Op should have some extra files than the bitcoin node on that disk, move them to a USB or external drive and it should work fine.

That data is either not accurate or obtained from different full node implementation. Blockchain size on my device (using Bitcoin Core) is almost 430GB. You also need to include chainstate which has size about 4.7GB and index (txindex and blockfilter) which has size 43GB.

And I would recommend a bigger disk, at least 1TB to avoid this kind of problems. The blockchain is growing up fast.

I agree.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
FuloosIO
Copper Member
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
April 27, 2022, 09:47:49 AM
 #6

Hello,

I am a newbie.  I installed Ubuntu and ran bitcoind from my user account.  After a little while, I got the following message:

2022-04-23T03:48:14Z *** Disk space is too low!
2022-04-23T03:48:14Z Error: Disk space is too low!
2022-04-23T03:48:14Z FlushStateToDisk: write coins cache to disk (4827382 coins, 685726kB) completed (0.00s)
2022-04-23T03:48:14Z ForceFlushStateToDisk: failed to flush state (Disk space is too low!)
2022-04-23T03:48:14Z FlushStateToDisk: write coins cache to disk (4827382 coins, 685726kB) started
2022-04-23T03:48:14Z *** Disk space is too low!
2022-04-23T03:48:14Z Error: Disk space is too low!
2022-04-23T03:48:14Z FlushStateToDisk: write coins cache to disk (4827382 coins, 685726kB) completed (0.00s)
2022-04-23T03:48:14Z ForceFlushStateToDisk: failed to flush state (Disk space is too low!)
2022-04-23T03:48:15Z Shutdown: done

I allocated 500GB to / during installation.  When I checked the disk space usage, I got the following:

root@simba:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            7.8G     0  7.8G   0% /dev
tmpfs           1.6G  2.0M  1.6G   1% /run
/dev/sda4       492G  467G   90M 100% /
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/loop0      249M  249M     0 100% /snap/gnome-3-38-2004/99
/dev/loop1       62M   62M     0 100% /snap/core20/1328
/dev/loop2      128K  128K     0 100% /snap/bare/5
/dev/loop3       66M   66M     0 100% /snap/gtk-common-themes/1519
/dev/loop4       55M   55M     0 100% /snap/snap-store/558
/dev/sda1       256M   90M  167M  36% /boot/efi
tmpfs           1.6G  136K  1.6G   1% /run/user/1000
/dev/loop6      111M  111M     0 100% /snap/core/12834
/dev/loop7      9.0M  9.0M     0 100% /snap/canonical-livepatch/132
/dev/loop8       62M   62M     0 100% /snap/core20/1405
/dev/loop9       44M   44M     0 100% /snap/snapd/15177
/dev/loop10      45M   45M     0 100% /snap/snapd/15534
/dev/loop5      9.0M  9.0M     0 100% /snap/canonical-livepatch/138
root@simba:~#

I am lost as to why so much space is being used by bitcoind.  I would appreciate if someone can shed light on this.


Bitcoin Blockchain is roughly 389 gigabytes, you also have additional directories using 8GB, 2GB, and the files you may have installed, and package upgrades will eventually start to take up more and more.

You can find information about the Blockchain Size here: https://www.statista.com/statistics/647523/worldwide-bitcoin-blockchain-size/
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16600


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 27, 2022, 11:03:45 AM
Merited by ABCbits (1)
 #7

The current blockchain size is 402.55 GB for Apr 25 2022
Bitcoin Blockchain is roughly 389 gigabytes
Both are inaccurate. Achow101 was correct. Mine is 428 GB (459 billion bytes).

root@simba:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda4       492G  467G   90M 100% /
You can reduce the reserved blocks space as a temporary solution. The default is 5%, if you make it 2%, you gain 15 GB. See for instance this site.

nlavji (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 14


View Profile
April 29, 2022, 08:46:03 PM
 #8

The current blockchain size is 402.55 GB for Apr 25 2022
Bitcoin Blockchain is roughly 389 gigabytes
Both are inaccurate. Achow101 was correct. Mine is 428 GB (459 billion bytes).

root@simba:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda4       492G  467G   90M 100% /
You can reduce the reserved blocks space as a temporary solution. The default is 5%, if you make it 2%, you gain 15 GB. See for instance this site.

Thank you for tips.  I checked the tunefs and got following:

root@simba:~# tune2fs -l /dev/sda4 | grep 'Reserved'
Reserved block count:     6553600
Reserved GDT blocks:      1024
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)

This doesn't seem like 15GB.  Am I correct?
nlavji (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 14


View Profile
April 29, 2022, 08:56:10 PM
 #9

The current blockchain size is 402.55 GB for Apr 25 2022
Bitcoin Blockchain is roughly 389 gigabytes
Both are inaccurate. Achow101 was correct. Mine is 428 GB (459 billion bytes).

root@simba:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda4       492G  467G   90M 100% /
You can reduce the reserved blocks space as a temporary solution. The default is 5%, if you make it 2%, you gain 15 GB. See for instance this site.

Thank you for tips.  I checked the tunefs and got following:

root@simba:~# tune2fs -l /dev/sda4 | grep 'Reserved'
Reserved block count:     6553600
Reserved GDT blocks:      1024
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)

This doesn't seem like 15GB.  Am I correct?


Never mind.  I just realized this is the number of blocks.  Thank you for this tip.  It gave me back 15GB! Smiley
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16600


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 30, 2022, 05:55:50 AM
 #10

It gave me back 15GB! Smiley
Note the word "temporary" for the solution: having a disk this full will make it slower. I set it to 2% too on my own disks, but it's better not to fill it all the time.

nlavji (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 14


View Profile
April 30, 2022, 03:57:07 PM
Merited by LoyceV (4), o_e_l_e_o (4), NeuroticFish (2), BitMaxz (1), DdmrDdmr (1), Husna QA (1)
 #11

It gave me back 15GB! Smiley
Note the word "temporary" for the solution: having a disk this full will make it slower. I set it to 2% too on my own disks, but it's better not to fill it all the time.

Thank you very much for the help.  After I got back the 15GB, I went to my Windows 11 installation and shrunk that volume to get additional space of 300GB (using Disk Management in W11).  Then after a lot of head scratching on how to append this to root partition, someone on AskUbuntu had suggested using Gparted from a bootable USB.  This helped tremendously.  It allowed me to add the 300GB to the root partition and now I have 800GB of space.

I ran Bicoincore last night and voila, I have all the blocks downloaded and syncd.

Thank you everyone for your valuable assistance  Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!