setting up bitcoin data directory on Synology smb share

3 replies 48 views
Posts: 3 · Reputation: 101
#1Jan 7, 2018, 03:55 AM
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!
6 Reply Quote Share
ryan_nodeSenior Member
Posts: 204 · Reputation: 859
#2Jan 7, 2018, 08:13 AM
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.
5 Reply Quote Share
Posts: 3 · Reputation: 101
#3Jan 8, 2018, 02:45 AM
@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
2 Reply Quote Share
LuckyCoinLegendary
Posts: 832 · Reputation: 4795
#4Jan 8, 2018, 05:49 AM
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.
2 Reply Quote Share

Related topics