1

Okay so I have a cluster of pi's version 3b running up to date raspbian. I need a quick way to make changes (upload/sync) files to 20 pi's preferably on boot as I have a startup script that will launch the app but would like the newest version of the app to be run. However the boot script is run at rc.local as it need root permissions. So how can I sync files + run as root on startup? Any method will work github/dropbox/nfs/etc. (nfs will be tricky as the network is huge with many subnet so I prefer to avoid it as I am not the network manager and its a pain to get him to set things up for me) so for that reason I prefer some kind of remote file sync.

2
  • Do you want to synchronise application or data? And do you really have a cluster? What clustering solution do you use that leaves you wondering how to sync files?
    – techraf
    Jan 10, 2017 at 6:45
  • 1
    sync application updates. All the data gets synced to a db on a server. Yes its a cluster as all the pi's are working on the same thing but with a different section of data.
    – lesyriad
    Jan 10, 2017 at 16:14

1 Answer 1

1

Try GlusterFS: https://blog.godatadriven.com/rpi-gluster.html

I have never tried it myself on Pi, but we are using it to connect CentOS workstations for the same purpose.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.