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
IPFS repo cannot be stored on a NAS (SMB, etc.). #8005
Comments
|
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
|
Unfortunately, SMB doesn't support file locks which are required by go-ipfs. Furthermore, performance is likely going to be absolutely terrible if you want to put your entire repo on a remote machine so the likelihood of anyone trying to make this work in the future is pretty low. If you want to do this, I recommend mounting your SMB directory under |
As simple as that eh? That was what I wanted to know anyway. How to move the actual data onto an external HDD. I thought it might involve a lot of complex config jiggery-pokery. There's enough room on the Raspberry Pi to store the other 'stuff' but the actual file data needs to be somewhere else. I'll give this a go and see if it works. |
|
Yep, as long as you're using the default datastore configuration (if you see a "blocks" directory, putting that directory on the NAS should do it). |
madranet commentedMar 23, 2021
Version information:
go-ipfs version: 0.8.0
Repo version: 11
System version: amd64/darwin
Golang version: go1.15.8
OSX Version: 10,14,8
Description:
As per title. IPFS worked fine with default setup [ie. storing data locally]. I then tried to move my repo to a NAS [mounted via SMB] by adding
export IPFS_PATH=/Volumes/stuzbot/IPFSto my~/.zshrcfile and re-initialising.Now, when I run
ipfs daemonI get the following error:I've tried both reinitialising the repo from scratch at the new NAS location with
ipfs initand also copying over the existing contents from the old default~/.ipfslocation. But I get the same error each time. I can see that, after runningipfs daemona zero bytesrepo.lockfile is actually created in the repo directory but the error message still persists.I have full read/write permissions for the NAS itself and for the directory I am trying to use as my IPFS repo.
The text was updated successfully, but these errors were encountered: