Skip to content

Latest commit

 

History

History
66 lines (51 loc) · 2.15 KB

clusterhat_notes.md

File metadata and controls

66 lines (51 loc) · 2.15 KB

Clusterhat CPU Mining Mini-Cluster

ClusterHat Resources

Load SSH keys to Pi0's

This is done on the RPi Cluster Controller

ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa && \
mkdir -p /var/lib/clusterhat/nfs/p{1,2,3,4}/home/pi/.ssh/ && \
cat ~/.ssh/id_rsa.pub >> /var/lib/clusterhat/nfs/p1/home/pi/.ssh/authorized_keys && \
cat ~/.ssh/id_rsa.pub >> /var/lib/clusterhat/nfs/p2/home/pi/.ssh/authorized_keys && \
cat ~/.ssh/id_rsa.pub >> /var/lib/clusterhat/nfs/p3/home/pi/.ssh/authorized_keys && \
cat ~/.ssh/id_rsa.pub >> /var/lib/clusterhat/nfs/p4/home/pi/.ssh/authorized_keys

Start zero cluster

clusterhat on && \
sudo rpiboot -d /var/lib/clusterhat/boot/ -o -l -v

Ansible Update cluster

  • Create local SSH keys
  • SSH copy local keys to controller and PiZs
  • Update and Upgrade all hosts
  • Clean up apt

Creating Backup images

https://medium.com/@mabrams_46032/kubernetes-on-raspberry-pi-c246c72f362f

Find the End of the drive

sudo fdisk -l /dev/$SD_DRIVE

ON MAC-OSX

diskutil list

Copy the Image up to the END

sudo dd if=$SD_DRIVE of=/Users/jdev/Documents/sd_backup.img bs=512 count=124928

Ansible install Docker on all devices

Pizero's need docker.service edited for Docker to run

pizero sudo apt install docker.io --fix-missing

still need to get swarm working

Docker on Raspberry Pi Zero W

docker service create --name miner \