On Linux/Docker nodes, maybe on Windows too (I don’t run any), at node ver. 1.120.4, these are all the main dirs and files in my storagenode location /mnt/hdd1/Storj
:
- main directory:
/Storj/ >
bin (dir)
Backups (dir)
Identity (dir)
orders (dir)
retain (dir)
storage (dir)
trust-cache.json
config.yaml
revocations.db
- storage directory:
/Storj/storage/ >
blobs (dir)
filestatcache (dir)
hashstore (dir)
piece_expirations (dir)
temp (dir)
trash (dir)
storage-dir-verification
*.db
*.db-shm
*.db-wal
The Identity
dir it’s user created. I created the identity files on a diferent machine and copied the entire dir. You can put it werever you want, but it’s a good practice to keep it on the node’s drive, in the storagenode location. One without the other it’s useless.
The Backups
dir it’s also user created. In it I keep a copy of the Identity
dir and storage-dir-verification
file. If some fs problem or bad block hits the main files, I can recover them from here. You can put it on another drive too, your choise.
filestatcache
is created only if you activate badger cache.
*.db-shm
and *.db-wal
are temporal files of the main db files and they should disappear when you stop the node, because they are flashed to main db-es. If they don’t, like it happened to me when I had db-es on USB drive, then you should reconsider your db-es location; maybe move them back to storage drive or on a SSD in local SATA port.
So, in case you have some problems with your node and you want to do a cleanup, you MUST stop
the node first and then you can delete
these:
filestatcache
dirpiece_expirations
dir*.db
,*.db-shm
,*.db-wal
- anything in
temp
older than 10 days. - anything in
trash
older than 10 days.
After this, you must run a successful startup-piece-scan, to recreat everything and hoppefuly show a nice dashboard with real data.