www.epikh.eu The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration Bouchra RAHIM ([email protected]) Joint EPIKH/EUMEDGRID-Support Event in Rabat Morocco, 30.05.2011
20
Embed
Overview of software tools for gLite installation & configuration
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
www.epikh.eu
The EPIKH Project(Exchange Programme to advance e-Infrastructure Know-How)
Overview of software tools for gLite installation & configurationBouchra RAHIM ([email protected])
4Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Root password:
grid2011
Screen Command
• Unreliable network connection with the remote PC.• You can start some long command and go for break
without worrying about losing the connection.
5
Interface PC Remote PCSsh connection
Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Screen Command usage
• To download and install the screen package:• # yum install screen• To create a screen:• # screen –p screen_name• To list the current screens:• # screen –ls• To open an existed screen:• # screen –x <name of screen listed by the previous
command>
6Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
YUM package manager
• Package manager is an automatic updater
and package installer/remover for rpm systems
• It automatically computes dependencies and figures out what things should occur to install packages
• Files in /etc/yum.repos.d/package_name.repo will point to the repository path where the package rpms are located.
• Yum install gLite_service will invoke the download and the installation in one step
7Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Local repository
• Why?– gLite includes a large number of tools and software to download– Download from remote servers can require too much time
• When?– Many server to install
Large server farms Training events
– Slow connection
• How?– gLite repository are managed by mrepo tool
8Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Local repository
• The mrepo service retrieves rpms from mirror sites and creates a repository with YUM meta-data
• Manages the local YUM repository for OS and middleware• Requires configuration• Publish the packages on the web
9Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Local repository installation
• Prepare a Scientific Linux 5.4 machine• The minimal Hard Disk storage is 160 GB• Starting from a Linux machine, retrieve the mrepo and
createrepo tools, and ensure that httpd server is running
(if you see a file /etc/yum.repos.d/dag.repo you can install mrepo more simply with yum --enablerepo=dag install mrepo.)
10Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Local repository installation (cont.)
• Edit the /etc/bin/mrepo script as follows:*** /usr/bin/mrepo 2010-03-22 01:57:41.000000000 +0100
11Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Local repository installation (cont.)
• After installing the package, edit /etc/mrepo.conf file to read more or less as follows:
• [main]• srcdir = /data2/mrepo• # Make wwwdir to point to a directory served by the webserver• wwwdir = /var/www/mrepo• confdir = /etc/mrepo.conf.d• arch = x86_64• metadata=yum repomd• # option -P=4 will be passed to lftp, to allow parallel downloads• #-P=4 option sometimes gives troubles...# lftp-mirror-options = -c -P=4 -X
"*/Fermi/*" -X "*/example/*"• lftp-mirror-options = -c -X "*/Fermi/*" -X "*/example/*"• # Option -d is used to make 'yum groupinstall' work: it can be used ONLY: from
createrepo 0.4.11 onwards.• # If you have an older version of createrepo, comment out the following line• createrepo-options = -d -p
12Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Local repository installation (cont.)
• Go to /etc/mrepo.conf.d directory and put here a
Distribution file for each repository you want to mirror
• #mrepo –ugfv : run mrepo with generate and update actions, to generate the local repository structure and update it from the remote repository
Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 13
Setting ALL the needed variables in the configuration file is essential for a successful configuration.
15Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011
Yaim Command
Note that the SAME identical /root/siteinfo/ can be used to configure the whole site so you can either substitute /root/siteinfo with an NFS-shared path, or synchronize /root/siteinfo between servers: rsync -e ssh -av <server1>:/root/siteinfo /root/
A full documentation for the configuration variables is listed here:https://twiki.cern.ch/twiki/bin/view/LCG/Site-info_configuration_variables
• Running the yum configuration script should be from the following path: /opt/glite/yaim/bin/yaimwhich invokes a set of bash_script
with a modular structure, depending on the
type of site, Grid service to be configured
16Rabat, Joint EPIKH/EUMEDGRID Support Site Admin 30.05.2011