clush (Linux) - allanrogerr/public GitHub Wiki
Initial file copy of ssh key from local MacOS to remove Linux box
chmod 600 "public.pem"
ssh -i "public.pem" [email protected]
# Save a backup
# scp -i "public.pem" -o "ServerAliveInterval=5" -o "ServerAliveCountMax=100000" -o "StrictHostKeyChecking=off" [email protected]:/etc/hosts ~/Downloads/ec2-hosts-bkp
scp -i "public.pem" -o "ServerAliveInterval=5" -o "ServerAliveCountMax=100000" -o "StrictHostKeyChecking=off" "~/ec2-hosts" [email protected]:/home/ec2-user/hosts
# Save a backup
# scp -i "public.pem" -o "ServerAliveInterval=5" -o "ServerAliveCountMax=100000" -o "StrictHostKeyChecking=off" "/Users/allanreid/Documents/MinIO/crowdstrike/iam tests/minio-cluster" [email protected]:/home/ec2-user/minio-cluster
scp -i "public.pem" -o "ServerAliveInterval=5" -o "ServerAliveCountMax=100000" -o "StrictHostKeyChecking=off" "public.pem" [email protected]:/home/ec2-user/public.pub
Get clush
sudo dnf install python pip -y
pip install --user ClusterShell
Modify /etc/hosts
sudo cp /etc/hosts /etc/hosts.bkp
sudo cp hosts /etc/hosts
e.g
vi /etc/hosts
10.192.10.224 pool-0-1.multiregion.min.dev
10.192.10.212 pool-0-2.multiregion.min.dev
10.192.10.30 pool-0-3.multiregion.min.dev
10.192.10.188 pool-0-4.multiregion.min.dev
10.192.10.163 pool-0-5.multiregion.min.dev
10.192.10.161 pool-0-6.multiregion.min.dev
Create hosts file
~/minio-cluster
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
...
Test
sudo mkdir -p /etc/clustershell
sudo vi /etc/clustershell/clush.conf
###
[Main]
ssh_options: -i /home/ec2-user/public.pub -o "StrictHostKeyChecking=off"
###
clush --hostfile /home/ec2-user/minio-cluster "uname"