Using Bitcoin mac version: v25.0.0
macOS version: 14.0 (23A344)
I attempted to configure the data directory on a Synology DSM with Version 7.2.
When I create a new directory, the Bitcoin program successfully sets up the blocks directory, the settings.json file, and the .lock file in the share. Then I hit a roadblock with this error:
Cannot obtain a lock on data directory /Volumes/btc. Bitcoin Core might already be running.
There’s no other Bitcoin process active on my Mac. I’ve tried every smb protocol version on the Synology but no luck. All access permissions have been verified. The user has full rights to read, write, and manage everything.
Anyone got any ideas?
Oh, and one more thing:
Instead of using the Mac version, I tested the Windows version on a W11 VM running on macOS with the same Synology share, and it works without a hitch!
It's generally inadvisable to use a network share for your Bitcoin Core data directory. Bitcoin Core does a lot of disk I/O and it depends on files existing on disk where it expects them to be and at all times. Since networks are not always reliable, any hitch in the network can cause Bitcoin Core to crash unexpectedly and possibly corrupt the data in its data directory. You just shouldn't try doing that.
@achow11:
Thanks for your advise.
I hoped I could use my diskarray and their automatic backup functions to secure the data instead of separate discs.
regards
uwe
Also, SMB connections tend to close unexpectedly. And I have tried to get samba shares to automount during boot but it was only after I mounted the shares manually that I was able to access the files inside. Of course, part of it might have been because of my use of Kerberos (because it is, you know, a network share), but even if that concern is excluded, SMB read and write speeds are horribly slow, much slower than HDD drives.