add image paradiseo
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@826 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
0ebaed7977
commit
b2ddab1f4d
5 changed files with 117 additions and 0 deletions
BIN
image/base/paradiseo.tgz
Executable file
BIN
image/base/paradiseo.tgz
Executable file
Binary file not shown.
17
image/environment/paradiseo.env
Executable file
17
image/environment/paradiseo.env
Executable 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
|
||||||
|
|
||||||
BIN
image/install/sid-x64-base-1.0-post.tgz
Executable file
BIN
image/install/sid-x64-base-1.0-post.tgz
Executable file
Binary file not shown.
93
image/scripts/deploy.sh
Executable file
93
image/scripts/deploy.sh
Executable 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"
|
||||||
|
|
||||||
|
|
||||||
7
image/scripts/launch.sh
Executable file
7
image/scripts/launch.sh
Executable 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
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue