Version 2 (modified by pruth, 7 years ago)

--

Using Flukes

Overview

Post Boot Scripts

Flukes allows a post boot script to be associated with each node or node group. Post boot scripts are the preferred way to create customized instances from a shared image. Specifically, a post boot script can contain an arbitrary script that is a executed immediately after the instance has booted.

For added functionality, ORCA uses velocity templates to create the scripts (general velocity template user's guide).

Examples

  # Test script 
   echo "hello from neuca script"
   mkdir -p /opt/pegasus      
   echo 'rnas.edc.renci.org:/euca/data/pruth /opt/pegasus nfs vers=3,proto=tcp,hard,intr,timeo=600,retrans=2,wsize=32768,rsize=32768 0 0' >> /etc/fstab
   #echo 'condor-master:/var/nfs /opt/pegasus nfs vers=3,proto=tcp,hard,intr,timeo=600,retrans=2,wsize=32768,rsize=32768 0 0' >> /etc/fstab
   echo $CondorWorkers.get(0) condor-master >> /etc/hosts
   mount -a
#set ( $size = $CondorWorkers.size() - 1 )
#foreach ( $i in [1..$size] )
   echo $CondorWorkers.get($i) condor-w$i >> /etc/hosts
#end
#if ( $MY_ADDR_INDEX == 0)
   echo condor-master > /etc/hostname
   cp /opt/pegasus/condor-configs/condor_config.master /etc/condor/condor_config
#else
   echo condor-w$MY_ADDR_INDEX > /etc/hostname
   cp /opt/pegasus/condor-configs/condor_config.worker /etc/condor/condor_config
#end
   /bin/hostname -F /etc/hostname
   echo export CONDOR_CONFIG="/opt/pegasus/condor-master/etc/condor_config"  >> /home/pruth/.bashrc
   echo export  PATH="/opt/pegasus/pegasus-3.1.0/bin:/opt/pegasus/condor-master/bin:$PATH" >> /home/pruth/.bashrc
   /etc/init.d/condor start
   echo /opt/pegasus/apps/SC11-demo/libs/l_cprof_p-11.1.072/mkl/lib/em64t >> /etc/ld.so.conf
   echo /opt/pegasus/apps/SC11-demo/libs/l_cprof_p-11.1.072/intel64 >> /etc/ld.so.conf
   echo /opt/pegasus/apps/SC11-demo/libs/l_cproc_p-11.1.072/lib/intel64 >> /etc/ld.so.conf
   /sbin/ldconfig 

Attachments