Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: turvarya on August 19, 2015, 01:44:11 PM



Title: Using a blockchain on a network-drive in Bitcoin Core
Post by: turvarya on August 19, 2015, 01:44:11 PM
Hi there,

so I am currently finally setting up my raspberry pi to be a full node.
I still want to use my client on my Windows 8-PC to send transactions.
I was wondering, if I just change the directory to the network drive, if there wouldn't be a conflict, when both clients(on raspberry pi and on windows 8 ) are trying to sync the blockchain.

Any suggestions?


Title: Re: Using a blockchain on a network-drive in Bitcoin Core
Post by: achow101 on August 19, 2015, 04:16:04 PM
There will be a problem with having two nodes on the same data directory. It is not possible since the first one will lock the directory. Also, for some reason using a datadir from windows on linux and vice versa always cause a reindex of the blockchain.


Title: Re: Using a blockchain on a network-drive in Bitcoin Core
Post by: vm1990 on August 20, 2015, 12:36:09 AM
might have a look into using the rpc might be some kind of program that lets you do it that way


Title: Re: Using a blockchain on a network-drive in Bitcoin Core
Post by: hexafraction on August 20, 2015, 11:42:22 AM
might have a look into using the rpc might be some kind of program that lets you do it that way

No, it means that one node is doing verification and the other is just asking it to take certain actions. Might be useful, depending on OP use case.

As for the original attempt, it could be worse than simply encountering a lock, since locks are unreliable on network drives. Ignoring the worse search performance, there could be severe corruption if the protocol doesn't lock in a way that the DB layer recognizes, or doesn't lock to begin with.


Title: Re: Using a blockchain on a network-drive in Bitcoin Core
Post by: sungsum253123 on August 20, 2015, 12:12:39 PM
sorry i understand for someting.