Skip to content

u/ChemEngJames

In this archive from May 2015 to Jun 2015

1
posts
5
comments
0
media
7
score

I used a big install script. I just booted the Arch install image and then downloaded the script and ran it on each machine.

Then I setup a NAS for large storage that was available to the entire cluster. On the NAS I have a local repo were were put locally compiled packages (either from AUR or custom PKGBUILDs). Then each node can just be updated from the repo. I also use this tmux script for running the same command on each node (such as installing packages, updating, adding users, etc).

I tried Puppet, but it was overkill for what we need.

1 points

Compute server at a university research group lab

20:23:32 up 13 days,  6:12,  1 user,  load average: 0.00, 0.04, 0.05
Linux hostname 4.0.4-1-ARCH #1 SMP PREEMPT Mon May 18 06:43:19 CEST 2015 x86_64 GNU/Linux
linux 4.0.4-2

Looks like I need to reboot.

0 points

This uses tmux to mimic clusterssh without needing X. I can login to our master node and run this. Then whatever I type shows up on all nodes (which are named node2, node3, etc.). Screenshot.

#!/bin/zsh
NNODES=12
tmux has-session -t "clusterssh"
if [[ $? -eq 0 ]]; then
    echo "A cluster management session already exists! You should attached to"
    echo "that one first, or rename it, before proceeding." 
    exit
fi
tmux new-session -s "clusterssh" -d 'ssh node2' 2>/dev/null 1>&2
for i in {3..$NNODES}; do
    tmux split-window -t "clusterssh" -d 'ssh node'$i'' 2>/dev/null 1>&2
    tmux select-layout -t "clusterssh" tiled 2>/dev/null 1>&2
done
tmux set-window-option synchronize-panes on 2>/dev/null 1>&2
tmux attach
1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.