Comments (6)
@IngwiePhoenix I have seen many peoples running datastores on services as high latency as S3 in an other region.
(performance isn't great but this is an other issue).
Have you tried only remotely mounting the .ipfs/blocks
folder ? LevelDB contains some internal book keeping metadata for your node and no IPLD data, it shouldn't grow past a few gigs, I don't think you need to mount it through NFS.
from kubo.
Would symlinking work?
i.e.: /mnt/diskstation/bunker/Services/ipfs/blocks
-> new_ipfs_repo/blocks
?
And as for my node - I think LevelDB is why it's dead. Very unfortunate, since I had set it up with a lot of data... oh well.
from kubo.
Would symlinking work?
Try it, I would guess so but I never checked.
And as for my node - I think LevelDB is why it's dead. Very unfortunate, since I had set it up with a lot of data... oh well.
LevelDB doesn't contain any data, the most valuable thing it contains is your pin list (and your MFS root if you use MFS).
You can (while the node is stopped), save your ipfs/blocks
folder and your ipfs/config
, remove your ipfs
folder, make a new one with ipfs init
, move your config and ipfs/blocks
back in.
Then you can start the node (without garbage collection enabled) and re ipfs pin add
everything you had. It will reread everything from ipfs/blocks
and only download from internet if some blocks has gone missing somehow.
from kubo.
Oh. Well, then I am pretty done for; I used MFS because I liked the idea of working with a pseudo-FS, much cleaner than working with raw CIDs, especially when trying to re-find older things. I'll just make a backup of the whole thing and see if your idea works out!
But, yeah. This situation is why I'd love to see some enhancements to the storage backend. I.e., allow multi-path setup (store blocks here and leveldb there) or possibly allow stricter fs syncing. :)
from kubo.
I spotted a documentation mismatch:
This can be changed manually, however, if you make any changes that require a different on-disk structure, you will need to run the ipfs-ds-convert tool to migrate data into the new structures.
found here: https://github.com/ipfs/kubo/blob/master/docs/config.md#datastorespec
That tool seems outdated, thus the instruction is inaccurate. I am trying to move to badgerds to see if this helps at all - although that's hardly a promise...
I also found out that there is logging control via the environment variable; however, I can't tell which one of the various components have to do with the storage backend - so I can't turn on debug logs for that in particular to see if it shows any complaints.
I am also looking into Kubo plugins... Whilst I am nowhere near an experienced Go developer, I have an idea to address the storage situation; more specifically, by wrapping a regular (flatfs, levelds, ...) into RClone. Since it, too, is written in Go, it'd make for a good target to implement a go-ds-rclone
plugin ontop of. But I haven't found the full specification for the datastore interface. Could you link it, perhaps?
Thanks!
from kubo.
You can (while the node is stopped), save your ipfs/blocks folder and your ipfs/config, remove your ipfs folder, make a new one with ipfs init, move your config and ipfs/blocks back in.
I tried that, but it keeps telling me that my storage config is off and does not fit my config versus the one on disk.
How do I make it aware of my changed (levelds to badgerds) config?
from kubo.
Related Issues (20)
- denylist: `?format=car` does not skip directly blocked CIDs
- Prioritize announcement of pin roots HOT 2
- greetings from an alumnus, and invite to trial Gov4Git for making community management more efficient HOT 2
- panic: Post "http://192.168.1.127:4001/api/v0/version?": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\xdeJ\xd2\xf86\xcd\xf8]\t\x8a\x17\u0381\xadm\x7f$έ³\v\xff\xe8\xaa&" HOT 2
- Improve data onbaording speed: ipfs add and ipfs dag import|export HOT 9
- Include local MFS entity roots in Reprovider.Strategy
- Move and deprecate `bitswap reprovide` to `routing reprovide`
- CVE-2024-22189 quic-go: memory exhaustion attack HOT 1
- Lower healthcheck interval
- Release 0.29 HOT 6
- How do I update the public IP or the config file programmatically HOT 1
- Creating node in Android with gomobile & kubo is failing by saying `GETENT` is not found in path HOT 1
- bug: kubo doesn't announce itself as provider HOT 4
- docs: add GOLOG_LOG_LEVEL debug logging info
- why i upload jpg file, tell me error like this invalid character 'ΓΏ' looking for beginning of value HOT 1
- i clone kubo source code when i run kubo ,tell this error:cannot acquire lock: creation of lock D:\workdir\kubo\127.0.0.1:5001\repo.lock failed: The filename, directory name, or volume label syntax is incorrect HOT 1
- IPNS returns previous result from cache HOT 2
- Get key by name
- websocket: failed to close network connection: close tcp HOT 6
- addon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubo.