I have a Raspberry Pi 2 and i am setting it to be my 4nd node with NFS mount on a Synology DS115.
Data are on NFS links, my question is about Syncthing IO for the hash database. I have 310Go and 270000 files and i think that Syncthing will destroy quickly my MicroSD Card if it write the hash database on it.
What will the best ? setting Syncthing to use a NFS link on the Synology for database ? Or use a small SSD on USB port for this ?
I see on forums, that with a classic LAMP server ont Raspberry Pi, a good SD Card will die every 8 to 10 month. But this depend of the usage and trafic.
Ech month i stop my Raspberry Pi to make an image of the card.
Yeah, I don’t think the SD card is the way to go. I also use to have them be corrupted quite often as well. They are not fast enough for constant writes, especially small ones.
This really depends on your preference although, without doing any benchmarks or testing, keeping the Ethernet as clear as possible might be a good idea. As it is you will be retrieving the data from the NAS hashing/encrypting it then sending it back out the same port to other syncthing devices.
If the Ethernet is the bottleneck the SSD may be faster.
I run a few R-Pi with Syncthing and there’s 570gb sync’d between them - they’ve been running with very little supervision for over 8 months or so.
If you’re changing and deleting a large number of files frequently the situation might get tough on the card.
Yet if it’s ‘regular usage’ - so files added daily, but only a few files deleted / changed daily - then I doubt you’ll have any problems.
If you wanted to stop worrying about sd cards altogether and stick within the price range of an R-Pi, then I really recommend an odroid C1+ as you can use an eMMC card with them - and thrash as much as you like.
The only slightly more expensive odroid XU4 is ideal if you’re planning a home / small office server with Syncthing, NFS, motion, owncloud and the like.
The CloudShell for XU4 is very interesting, it is a little biger than my Intel NUC but lower in price. I think it will be a good node if i install it in the datacenter at my office.
interesting discussion! I own a Pi and thinking of a use like this (home server with an instance of syncthing)
But since I have little knowledge on embedded devices and pros-cons of cards… Do you all mean that a piece like ODROID-XU4, is better than a Raspberry-Pi due to the fact that an eMMC can handle more read-writes than an SD card ?
Is this true and is this your point, or I am misunderstanding something ?
“the fact that an eMMC can handle more read-writes than an SD card”
That’s the gist of it.
Also eMMCs are more stable with power fluctuations, abrupt power loss and that sort of thing.
Issues that plagued the early Pi though not the later models as much.
Nonetheless, eMMCs will our-perform sd cards in speed and longevity. So for something like a home server which may go from little activity to sustained bursts that extra edge of speed and stability are worth it. I’ve used a C1+ as a passable desktop computer, but with a SD card instead of an eMMC it’s slow enough to annoy.
I’m looking forward to getting mine probably in a month or two, but it looks like a very interesting entry in this space. I backed the PocketCHIP, so I’m hoping to be able to carry around a real pocket-sized Linux PC instead of a tablet. Syncthing will, of course, play a significant role in the success or failure of this use case.
I have the exact setup you describe. When I first started with my raspberry pi I had constant corruption requiring a full reformat of the SD card each time. I moved everything except the boot sector to a USB SSD and have never had any problems again.
At the time my research suggested that there was a lot of luck involved in the choice of SD card, some will be fine, others will suffer constant frustrating corruption.