Presentation is loading. Please wait.

Presentation is loading. Please wait.

Www.epikh.eu The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.

Similar presentations


Presentation on theme: "Www.epikh.eu The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration."— Presentation transcript:

1 www.epikh.eu The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration Maha Metawei (maha_metawei@eri.sci.eg)maha_metawei@eri.sci.eg Electronic Research Institute (ERI) Joint EPIKH/EUMEDGRID-Support Event in Cairo Egypt, 17.10.2010

2 Agenda Virtual machines PuTTY + WinScp Screen Command Yum command Local repository (mrepo command) Yaim command Passwords & certificates Event links Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 2

3 Virtual Machine Practice on virtual machine till next Tuesday during the site Admin tutorial. Each participant has access to 2 virtual machines that are hosted on his PC (one 64 bit and one 32 bit Linux). All grid nodes will be installed on 64 bit Linux except the WMS. Gilda host certificates are used only on virtual machines. The following UI is available for testing: glite-tutor.ct.infn.it –With users CairoXX and password GridCAIXX where (XX=01 to 30). –ssh cairoxx@glite-tutor.ct.infn.itcairoxx@glite-tutor.ct.infn.it Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 3

4 PuTTY + WinScp Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 4 Root password: cairoschool

5 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. Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 5 Interface PC Remote PC Ssh connection

6 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 Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 6

7 Yum command Yum command is used to download and install the gLite packages on your machine. 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. Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 7

8 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 Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 8

9 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 Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 9

10 Local repository installation Prepare a Scientific Linux 5.4 machine The minimal Hard Disk storage is 160 GB Retrieve the mrepo and createrepo package and install it –Package from(Use the el5 version of the package): wget http://linuxsoft.cern.ch/dag/redhat/el5/en/x86_64/dag/RPMS/mrepo-0.8.7- 1.el5.rf.noarch.rpm –Install with: rpm -Uvh –Ensure that createrepo and httpd rpms are installed on your system wget http://linuxsoft.cern.ch/dag/redhat/el5/en/x86_64/dag/RPMS/createrepo-0.4.10- 1.el5.rf.noarch.rpmhttp://linuxsoft.cern.ch/dag/redhat/el5/en/x86_64/dag/RPMS/createrepo-0.4.10- 1.el5.rf.noarch.rpm Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 10

11 Local repository installation (cont.) Edit the /etc/bin/mrepo script as follows: *** /usr/bin/mrepo 2010-03-22 01:57:41.000000000 +0100 --- mrepo.modified 2010-07-04 20:58:02.000000000 +0200 *************** *** 845,851 **** repoopts = repoopts + ' --cachedir "%s"' % cachedir if os.path.isdir(os.path.join(self.wwwdir, '.olddata')): remove(os.path.join(self.wwwdir, '.olddata')) ! groupfile = os.path.join(cf.srcdir, self.dist.nick, self.name + '-comps.xml') if os.path.isfile(groupfile): symlink(groupfile, os.path.join(self.wwwdir, 'comps.xml')) repoopts = repoopts + ' --groupfile "%s"' % groupfilename --- 845,853 ---- repoopts = repoopts + ' --cachedir "%s"' % cachedir if os.path.isdir(os.path.join(self.wwwdir, '.olddata')): remove(os.path.join(self.wwwdir, '.olddata')) ! # groupfile = os.path.join(cf.srcdir, self.dist.nick, self.name + '-comps.xml') ! groupfile = os.path.join(cf.srcdir, self.dist.nick, self.name + '/comps.xml') ! info(2, 'Groupfile: %s' % (groupfile)) if os.path.isfile(groupfile): symlink(groupfile, os.path.join(self.wwwdir, 'comps.xml')) repoopts = repoopts + ' --groupfile "%s"' % groupfilename Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 11

12 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 Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 12

13 Using the local repository The repo files must be configured to point to the local repository. Then running yum install normally. Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 13

14 Yaim Command YAIM (Yet Another Installation Method) is a software to configure grid services. You need to edit the following configuration file first : /opt/glite/yaim/examples/siteinfo/mysite-info.def Setting ALL the needed variables in the configuration file is essential for a successful configuration. A full documentation for the configuration variables is listed here: Configuration_variables Running the yum configuration script should be from the following path: /opt/glite/yaim/bin/ig_yaim Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 14

15 Passwords & certificates Virtual machine password: cairoschool Gilda host certificates are located on /root/SRVxx.eun.eg on your machine. For UI user certificates are located on /root/user_cert Gilda UI server in Cairo: server2.eun.eg Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 15

16 Event links Site Administration : http://agenda.ct.infn.it/conferenceOtherViews.py?view=standard&c onfId=339 Application porting: http://agenda.ct.infn.it/conferenceOtherViews.py?view=standard&c onfId=340 Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 16

17 References Yaim installation guide: https://twiki.cern.ch/twiki/bin/view/LCG/GenericInstallGuide320#Intr oduction_to_Manual_Installat Local repository installation: http://wiki.eumedgrid.eu/twiki/bin/view/InfrastructureStatus/EumedS iteInstallation Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 17

18 Cairo, Joint EPiKH/EUMEDGRID-Support in Egypt, 17.10.2010 18


Download ppt "Www.epikh.eu The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration."

Similar presentations


Ads by Google