hi guys, after updating my server to ubuntu 24.04 and migrating to a new SSD, i noticed that its storage usage has dramatically increased.
Although, it runs the same services as before, i.e. bitcoind, electrs, and mempool. It seems like it uses roughly 2G a day. after realizing this, i created a script and cronjob to log the data usage for theses services, and their directories. it looks like they are not using more than earlier.
bitcoin electrs mempool timestamps 711 49 2.9 2024-10-24 711 49 3.1 2024-10-25 712 49 2.9 2024-10-26 712 49 2.8 2024-10-27 712 49 2.7 2024-10-28 713 49 2.8 2024-10-29
so i started looking in other places. i have already looked in:
  • /var/logs/journal = 3G is quiet large, considering that the server was migrated to a "new" SSD
  • other logs or child directories of /var/, like /run/; /cache/; or /run/ are quiet small
so i monitored my journalctl and found that mempool was writing a lot of logs, but added a cronjob to vaccum them more often. do you guys have any other tips & tricks for me to monitor my system's data usage? Have any of you experienced something similar with ubuntu 24.04?
0 sats \ 1 reply \ @nikotsla 10h
To journal logs, you can set this in /etc/systemd/journald.conf like so:
SystemMaxUse=100M
$ systemctl restart systemd-journald
You can force with this
journalctl --vacuum-time=2d
reply
0 sats \ 0 replies \ @1984 OP 7h
thanks. i already used the --vacuum command and put it in a cron job. do you have any other ideas which directories besides my logs (and home) could cause a drastic increase in data usage?
reply
Good question. I run 24.04 in one of my VM test nodes, and I do notice its disk space appetites growing with time. Partly because it likes to install updates, much like Windows. I just resize its virtual disk from time to time, but I'll keep an eye on this thread if someone has better ideas.
reply