git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@828 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
canape 2007-11-30 10:10:45 +00:00
commit 31c33b7ff4
5 changed files with 117 additions and 0 deletions

View file

@ -0,0 +1,17 @@
name = paradiseo
id =
version = 2
description = Paradiseo
author = clive.canape@inria.fr
filebase = file:///home/lille/ccanape/paradiseo.tgz
filesite = file://grid5000/postinstall/sid-x64-base-1.0-post.tgz
size =
initrdpath = /boot/initrd.img-2.6.18-3-amd64
kernelpath = /boot/vmlinuz-2.6.18-3-amd64
kernelparam =
fdisktype = 83
filesystem = ext2
siteid = 1
optsupport = 0
user = ccanape

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,93 @@
#! /bin/bash
function exe()
{
if [ -e $1 ];
then
kadeploy -e paradiseo -f $1 -p $2
rm $1
PIDS="$PIDS $!"
fi
}
`cat $OAR_NODEFILE | uniq > machines`
NODEFILE=machines
PIDS=""
N=0
for i in `cat machines`;
do
name=${i%-*r}
if [ "$name" = "azur" ];then
echo $i >>machineAzur
let $[N+=1]
fi
if [ "$name" = "sol" ];then
echo $i >>machineSol
let $[N+=1]
fi
if [ "$name" = "helios" ];then
echo $i >>machineHelios
let $[N+=1]
fi
if [ "$name" = "chti" ];then
echo $i >>machineChti
let $[N+=1]
fi
if [ "$name" = "chicon" ];then
echo $i >>machineChicon
let $[N+=1]
fi
if [ "$name" = "capricorne" ];then
echo $i >>machineCapricorne
let $[N+=1]
fi
if [ "$name" = "sagittaire" ];then
echo $i >>machineSagittaire
let $[N+=1]
fi
if [ "$name" = "gdx" ];then
echo $i >>machineGdx
let $[N+=1]
fi
if [ "$name" = "node" ];then
echo $i >>machineNode
let $[N+=1]
fi
if [ "$name" = "grelon" ];then
echo $i >>machineGrelon
let $[N+=1]
fi
if [ "$name" = "grillon" ];then
echo $i >>machineGrillon
let $[N+=1]
fi
done
exe machineSol sda3
exe machineAzur hda3
exe machineHelios sda3
exe machineChti sda3
exe machineChicon sda3
exe machineCapricorne hda3
exe machineSagittaire sda3
exe machineGdx sda3
exe machineNode sda3
exe machineGrelon sda3
exe machineGrillon sda3
wait $PIDS
MASTER=`head -n 1 $OAR_NODEFILE`
scp -o StrictHostKeyChecking=no machines root@${MASTER}:/home/g5k/machines
echo "You can connect to the Master : $MASTER"

View file

@ -0,0 +1,7 @@
if [ $# -eq 2 ];then
oarsub -I -t deploy -l nodes=$1,walltime=0$2:00:00
else
echo "Usage : launch.sh <node-number> <time>"
exit 0;
fi