Hello! I’ve started my first node a week ago. And by today it accumulated a total of 205GB. But then it decided to auto-update to v1.131.7 and restart. Consequently the dashboard showed only 24GB of used space. After one more restart it is now sitting at 22GB.
I’m using ubuntu server, with 2 ironwolf 12tb hdds in zfs mirror. I heard zfs is not welcome here, but I’m using these drives for my own data too. config.yaml is untouched. du -sh shows 205GB of used space.
There are no significant errors in the docker container logs.
I waited for a couple of hours for everything to reindex but nothing happend. I also tried turning lazy file walker on and off, but it does not change anything.
used-space-filewalker run duration is suspiciously short:
There’s nothing wrong with ZFS: many use it. And it already sounds like you know you have to wait for the default filewalker to complete after a restart (which can take awhile). You may just be dealing with trash: a satellite can tell your node to throw data out (which is reflected in the UI quickly)… but it takes a week for the data to actually be deleted (so it’s still shown by du).
Just let your node run: you’ll get email if it goes offline. And take a look in a week to see if your “du” size has started to reduce to the UI size. It’s normal to always have some trash waiting for final deletion - at the same time you may be receiving new data… so the UI/CLI numbers rarely match.
What?! ZFS is the only filesystem worth using today. Please quote who said otherwise.
Create a separate dataset for storagenode data, separate dataset for databases, and follow zfs optimization guide, you can find it on this forum. It talks about atime, sync, and small_blocks_size mostly.
Keep eveyrhing at defaults. Check log, if your node is sending and receiving data – nothing else to do, ignore the dashboard. Dashboard is a mess and is lying to you.
Node loses files on restart
BTW your post title is wrong. Node does not lose files. All files are in place and you can very easily verify that, and you somewhat contradict yourself in the post body where you discuss amount of data on disk
So the node has been running for 16 more hours and occupied space in dashboard increased from 24GB > 42GB. But it all came from new ingress.
Here is what I got with du -sh
8.4G trash/
223G blobs/
The workaround actually helped! It immediately showed me 223G used. But why can it not recover by itself? Is 16 hours not enough?
How can I see that the filewalker is running? Yesterday I tried using docker top but it showed nothing related to filewalker.
This is how the filewalker continuation is implemented, it also prevents a rescan in the same day. So if for some reason (e.g. “database is locked”) the prefix database was not updated or corrupted, it may show zero used space on the dashboard. This is a reporting issue, but it also may prevent the ingress, if the resulting stat would tell the satellite, that the node is full.
So, if that database wasn’t corrupted, just not updated (or has zero used space record), then it would behave like this until restart on the next day to force a rescan. Or use the mentioned workaround.