RPi Bitscope Cluster - open-mpi/aws-pmix-scale-testing GitHub Wiki

There are two Pis I'll refer to. The powerPi is the Raspberry Pi (RPi) that uses the powerPi script to turn on the cluster. The krakenPi is the RPi that contains the Kraken scripts, as well as the boot images for the compute nodes.

Booting and shutting down cluster

Plug the power cord into the back of the RPi cluster. Make sure the powerPi is connected to a monitor. Once the pi is booted up, use user pi and password raspberry to login.

On the krakenPi, you'll need to run the kraken script. The kraken script will distribute the images and send out dhcp acknowledgements. If the krakenPi is not on, turn it on. User: pi Pass: raspberry

cd ~/go/bin
sudo ./kraken        //Will run script
alt+F2               //This will open up a new shell window so that kraken can run in the background
alt+F1               //Will take you back to the kraken window (You can have any number of these open)

Within the RPi cluster chassis, locate the three switches that connect all of the pis. There will be square lights on them. You'll need to WAIT to do anything beyond this until the lights on the switches stop blinking.

Now, on the powerPi. In the home directory:

cd /go/bin
./piPower -a -on           //Turns all compute nodes on
./piPower -r 1-10 -on      //Would turn on pis 1 to 10 on (Another option instead of turning them all on)

On the top of the chassis, when you use the piPower script to turn the compute nodes on, you'll see red lights on all of the pis appear. When you turn on the pis, each will be pulling the compute node image down from the krakenPi. When the image has booted for the compute node pis, there will now be a green blinking light next the red light. Now you can connect to the image.

On the krakenPi, in the current directory, you'll find a kraken.yaml file. If you read that, you'll be able to find the range of IPs that the compute nodes occupy. From the krakenPi you can ssh into the compute nodes.

ssh -p2222 {IP-address}     //Allows ssh connection to compute node pi (If ssh exists on the Pi)
exit                        //Exits ssh

On the powerPi:

./piPower -a -off     //Turns off all compute nodes

Unplug the power from the RPi cluster so the fans shut off.

On the krakenPi:

ctrl+c        //Kills the kraken file. Make sure you're in the right window (alt+Fnumber}

The Cluster should be shutdown now

krakenPi

Boot image

cd /home/pi/go/bin/boot

The boot image for the pi is contained in the boot folder

ls -al initramfs.cpio.gz

If you look at the output, this is a symlink pointing to an image file within the boot folder. To switch images, delete the initramfs.cpio.gz file, and re-symlink it to a new image file. This will switch the image the compute nodes boot off of.