-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lotus-miner seems to be retaining a lot of space in LOTUS_MINER_PATH/datastore/staging #5569
Comments
may be related #5291 |
@nonsense It is safe to delete the whole /staging-folder if you have stopped you miner, and don't have any deals currently sealing, it will be re-created when you start up the miner again. From my experience it seems like unfinished deal-transfers (online deals) are left behind in the staging-folder, so over time it will grow just larger if/when more deal-transfers error-out / fails. |
This needs fixing, though. GC should be automatic. Having to manually delete the directory every now and then it's not good UX for miners. |
It seems like the cleanup process in this folder is ok for successful deals. The failed deals, stalled transfers and other issues dont seem to clear out unless you manually delete it. Im not to sure when it is ok to delete this folder. There always seems to be deal activity, whether is sending/receiving, pending publish, waitdeals or actually sealing. My concern with deleting the folder is messing up deals I have coming in or waiting to seal. |
I think this issue can be closed now? As the /staging-dir is not retaining a lot space any longer. Even if deals has failed / not succeeded they seem to be garbage collected at restart of the markets-node #rengjøring |
Correct @rjan90 Closing ticket. |
Describe the bug
My
LOTUS_MINER_PATH/datastore/staging
database is >100G and this seems like a bug. I believe this datastore is used for retrieval deals, although I am not sure why this space is not reclaimed after the retrieval has finished (successfully or not).Is there a workaround where I could manually delete this datastore and reclaim some of the disk space?
Expected behavior
I expect the
datastore/staging
directory to be mostly empty when there are no ongoing deals.Version (run
lotus version
):Additional context
Files in the
datastore/staging
are weeks old.Disk usage:
The text was updated successfully, but these errors were encountered: