Strumenti Utente

Strumenti Sito


grid:grid-serv

Note di installazione

Sistema Operativo

Installato SLC 4.5

Partizioni:
/          /dev/sda1  10GB   
/var/rep   /dev/sdb1  45GB 

######### crontab

00 04 * * * crontab -l > /etc/crontab.backup
01 04 * * * rsync -a   /etc/crontab.backup       /misc/mirror/etc/
02 04 * * * rsync -a   /etc/dhcpd/grid.conf      /misc/mirror/etc/
03 04 * * * rsync -a   /etc/yam.conf             /misc/mirror/etc/
04 04 * * * rsync -a   /etc/mrepo.conf           /misc/mirror/etc/
05 04 * * * rsync -a   /etc/gmetad.conf          /misc/mirror/etc/
10 04 * * * rsync -a  /var/www/html/install/ks/   /misc/mirror/ks/
11 04 * * * rsync -a  /var/www/html/install/post/ /misc/mirror/post/
20 04 * * * rsync -a --delete /tftpboot/linux-install/pxelinux.cfg/  /misc/mirror/pxelinux.cfg/

# prima disattivare cron.daily
30 20 * * * yam -gux -d slc304,ig_sl3,glite_sl3  > /dev/null 2>&1
30 22 * * * mrepo -gux -d slc45                  > /dev/null 2>&1


######### UPDATE
cat >> /etc/profile.d/local.sh << EOF
alias redhat-config-packages="redhat-config-packages --path=/var/rep/sl/304/i386/"
export EDITOR=pico
export CVSROOT=infn-parma@grid-it.cnaf.infn.it:/rep/cvs/grid-conf"
export CVS_SH=/usr/bin/ssh" 
EOF

rpm -ivh http://grid-it.cnaf.infn.it/apt/ig_sl3-i386/RPMS.utils/ig-installserver-0.9-slc304.noarch.rpm

APT cache limit

Se i client APT falliscono

apt-get update 
E: Dynamic MMap ran out of room

Occorre aumentare il cache-limit del client in /etc/apt/apt.conf:

APT::Cache-Limit "141943904";

yam

Install INFN-GRID 3.0.0

rpm -ivh http://grid-it.cnaf.infn.it/apt/ig_sl3-i386/RPMS.utils/ig-yam-0.7.2-5.noarch.rpm

cat > /etc/yam.conf << EOF

[main]
srcdir     = /var/rep
wwwdir     = /var/www/html/rep
createrepo = no
apt        = yes
yum        = no
EOF

yam-slc304

* Aggiornamento SLC3

#############
# SLC 3.0.4 #
#############

####################################################
[slc304]
name      = Scientific Linux CERN 3.0.4 (i386)
arch      = i386
os        = http://linuxsoft.cern.ch/cern/slc304/i386/apt/RPMS.os/
updates   = http://linuxsoft.cern.ch/cern/slc30X/i386/apt/RPMS.updates/
extras    = http://linuxsoft.cern.ch/cern/slc30X/i386/apt/RPMS.extras/
# Copy here your additional packages
localrpms = file:///var/rep/slc304-i386/localrpms/
####################################################

/usr/bin/yam -guxvv -d slc304

mkdir  /tftpboot/linux-install/slc304-i386 
cd     /tftpboot/linux-install/slc304-i386 
wget http://linuxsoft.cern.ch/cern/slc304/i386/images/pxeboot/initrd.img
wget http://linuxsoft.cern.ch/cern/slc304/i386/images/pxeboot/vmlinuz
chmod 0644 vmlinuz initrd.img
cd /var/www/html/rep/slc304-i386/base
wget -l1 -nd -c -r -R '*.html,*.gif' http://linuxsoft.cern.ch/cern/slc304/i386/SL/base/
mkdir                                /var/www/html/install/slc304-i386/
ln -s /var/www/html/rep/slc304-i386/ /var/www/html/install/slc304-i386/SL

yam-glite

#############
# INFN-GRID #
#############
########################################################################
[ig_sl3]
name  = INFN-GRID middleware (i386)
arch  = i386
utils = http://grid-it.cnaf.infn.it/apt/ig_sl3-i386/RPMS.utils/
3_0_0 = http://grid-it.cnaf.infn.it/apt/ig_sl3-i386/RPMS.3_0_0/

[glite_sl3]
name            = gLite middleware (i386)
arch            = i386
security        = http://grid-deployment.web.cern.ch/grid-deployment/gis/apt/LCG_CA/en/i386/RPMS.lcg/
3_0           = http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0/rhel30/RPMS.Release3.0/
3_0_externals = http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0/rhel30/RPMS.externals/
3_0_updates   = http://glitesoft.cern.ch/EGEE/gLite/APT/R3.0/rhel30/RPMS.updates/
###################################################################

mrepo

yum install mrepo 

customize: /etc/mrepo.conf

mrepo-slc45

* Aggiornamento SLC4

cd /tftpboot/linux-install/boot/slc45-i386
wget http://linuxsoft.cern.ch/cern/slc45/i386/images/SL/pxeboot/vmlinuz
wget http://linuxsoft.cern.ch/cern/slc45/i386/images/SL/pxeboot/initrd.img

/etc/mrepo.conf:

[slc45]
name      = SL Scientific Linux CERN $release ($arch)
release   = 45
arch      = i386
#arch      = i386 x86_64
metadata  = apt repomd yum
os        = http://linuxsoft.cern.ch/cern/slc$release/$arch/apt/RPMS.$repo/
updates   = http://linuxsoft.cern.ch/cern/slc$release/$arch/apt/RPMS.$repo/
extras    = http://linuxsoft.cern.ch/cern/slc$release/$arch/apt/RPMS.$repo/
dag       = http://linuxsoft.cern.ch/dag/redhat/el4/en/i386/RPMS.dag/
localrpms = file:///var/mrepo/slc$release-$arch/$repo/
mrepo -guxvv -d slc45
cd /var/www/html/mrepo/slc45-i386/base
wget -l1 -nd -c -r -R '*.html,*.gif' http://linuxsoft.cern.ch/cern/slc45/i386/SL/base/

tftpboot/PXE

tftpboot serve per il download delle immagini per l'installazione e per il download di PXE.
Per abilitare tftpboot editare il file /etc/xinet.d/tftp
Le immagini del kernel per l'installazione sono in: /tftpboot/linux-install/boot
L'immagine PXE e' in /tftpboot/linux-install/pxelinux.0
I file di configurazione di PXE sono nellla dir: pxelinux.cfg

ig-bootselect e' lo script con cui viene gestito in modo visuale la configurazione di PXE
Il cgi /cgi-bin/install_ack.cgi eseguito al termine dell'installazione, riporta la configurazione di PXE al boot da disco.

Wikipedia, TFTP: Trivial File Transfer Protocol
Wikipedia, PXE: Preboot Execution Environment

dhcpd

Il file /etc/dhcpd/grid.conf contiene le definizioni dhcp per i nodi grid.

WWW

/var/www/html/dokuwiki/data/pages/grid/grid-serv.txt · Ultima modifica: Y/m/d H:i da