moenad
Posts: 3
Joined: Mon Sep 05, 2016 3:59 pm

Best way to deploy for around 50 raspberry pis

Mon Sep 05, 2016 4:15 pm

What's the fastest way to deploy to a high number of raspberry pis rather than manually cloning each and every sd cards for the 50 pis?

I have 1 sd card that I need to clone for all the other raspberry pis.

Any fast and recommended way to do it?

User avatar
Visionario
Posts: 26
Joined: Wed Jun 18, 2014 9:04 pm
Location: Puerto Ordaz, Venezuela
Contact: Website

Re: Best way to deploy for around 50 raspberry pis

Mon Sep 05, 2016 5:31 pm

Hi.

I dont know inside Windows. In Linux i think you can use multiple "dd" commands using each MicroSd on every USB port available.

Best regards
Asdrubal R. Velasquez Lagrave
Puerto Ordaz - Venezuela
https://twitter.com/Visionario

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Best way to deploy for around 50 raspberry pis

Mon Sep 05, 2016 5:33 pm

moenad wrote:What's the fastest way to deploy to a high number of raspberry pis rather than manually cloning each and every sd cards for the 50 pis?

I have 1 sd card that I need to clone for all the other raspberry pis.

Any fast and recommended way to do it?
https://github.com/billw2/rpi-clone/blo ... /README.md
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: Best way to deploy for around 50 raspberry pis

Mon Sep 05, 2016 8:16 pm

moenad wrote:What's the fastest way to deploy to a high number of raspberry pis rather than manually cloning each and every sd cards for the 50 pis?
I have 1 sd card that I need to clone for all the other raspberry pis.
Any fast and recommended way to do it?
Get that 1 card set up like you want it, include some way for the name of each image to increment so there isn't any collisions on the network, physically set up about five of the pi on a network headless, use dd to grab a copy of the sdcard and then copy that image to five flash drives. Get a copy of tiny core for the pi and set that up on a spare sdcard of basically any size, even 32megs. Set it up so that it will automatically have dd available on boot. Then boot each of the five pi one at a time from that single sdcard, which you'd remove from each pi and put in the next after it boots. Then with all those sdcard slots open, because you've removed the cards, put in the first set of sdcards to flash. ssh into each machine from a single controlling machine and run dd in each tab. Once that is done, remove cards, put in new cards, repeat. This can be a script that is just run by hitting the up arrow key and enter. Of course check to make sure you're cards are really burning correctly! Once you get this going, it will likely be so slick you'll wish you had 500 cards to make.

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: Best way to deploy for around 50 raspberry pis

Mon Sep 05, 2016 8:23 pm

fotl's rpi-clone recommendation looks like a 1 to 1 copier, so even if it's super-rapid, it will require frequent manual intervention for card swaps & restarts to make 50 clones.

1 to N copying as hinted at by Visanario is surely preferred. There's a 1 to N version of dd, dcfldd, see http://richardhayler.blogspot.co.uk/201 ... -army.html. Add as many USB ports & readers as you see fit & leave it running overnight, and again during the day, for as many nights/days as you can affford. You can do the maths for number of ports/readers vs time available.

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: Best way to deploy for around 50 raspberry pis

Wed Sep 07, 2016 7:37 am

If you're deploying to 50 Pi3's one option might be to get them net booting a small image which can then do the setup on the individual pi's and copy your image over the network. Once it's setup they should then boot from the SD card.

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Best way to deploy for around 50 raspberry pis

Wed Sep 07, 2016 12:05 pm

Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

Return to “Advanced users”