#!/bin/bash # rebuild node; removing partitions # works for t2-dcx type nodes (see t2-dcx.xml) # setup token for dd of disk # the installer need to run within 20 minutes for dd to be done # (time is verified by user of the token...) /export/rocks/install/tools/make-token.sh rocks-dd-parts.$1 rocks remove host partition $1 rocks set host boot $1 action=install # this statement is slow. # only needed if runaction changed --- should check if needed... #rocks set host runaction $1 action=os # this might also be needed if it has been goofed up #rocks set host installaction cc-106-1 action=install # update cfengine #HOSTIP=`host $1 | awk '{print $4}'` #sh /var/cfengine/gen-rocks-attr.sh $HOSTIP export SSH_NO_PASSWD=1 /opt/rocks/sbin/shoot-node $1 > /dev/null 2>&1 & # should check if node is pingable, and if not suggest ipmi.sh or power.sh...