The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) 马兰馨 IHEP, CAS Setting Up a Repository.

Slides:



Advertisements
Similar presentations
Pakiti.
Advertisements

Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Installing Apache There are several ways to install the Apache web server – in CIT 370, you probably installed it from the CentOS CD-ROM although in fact,
 Visual Studio has great support for building ASP.NET web applications  Real web application development involves more than just copying the files created.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
Installing Linux softwares Sirak Kaewjamnong. 2 Software packets  When Linux developers create their software they typically bundle all the executable.
Linux Operations and Administration
NSDI/NBII Clearinghouse Server Training Slide 1 NSDI/NBII Clearinghouse Server Training Yellowstone to Yukon Initiative 7. December University of.
Downloading & Installing Software Chapter 13. Maintaining the System Yum Pirut BitTiorrent Rpm Keeping Software Up To Date Up2date Red Hat Network Wget.
Managing Software using RPM. ♦ Overview In Linux, Red Hat Package Manager referred as RPM is a tool used for managing software packages and its main function.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
Linux Operations and Administration
Dustin Harman VM Workshop 2015 RPM Basics. What is RPM? Red Hat Package Manager Native package manager on RHEL, Fedora, SUSE, some Mandriva RPM/SRPM files.
E-science grid facility for Europe and Latin America UI PnP and UI Installation User and Site Admin Tutorial Riccardo Bruno – INFN Catania.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) VOMS Installation and configuration Bouchra
COSC 4750 Customizing and maintenance. Installing software Redhat/Fedora (and linux in general) has a package installer, called rpm Many programs will.
October, Scientific Linux INFN/Trieste B.Gobbo – Compass R.Gomezel - T.Macorini - L.Strizzolo INFN - Trieste.
E-science grid facility for Europe and Latin America Installation and configuration of a top BDII Gianni M. Ricciardi – Consorzio COMETA.
Microsoft Application Virtualization 5.0: Introduction Mohnish Chaturvedi & Ian Bartlett Premier Field Engineer WCL312.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
1 Introduction to the tutorial for site managers Antonio Fuentes Red.es/RedIRIS EGEE/EUMedGrid/EELA Tutorial for Managers Sevilla,
Introduction to CVMFS A way to distribute HEP software on cloud Tian Yan (IHEP Computing Center, BESIIICGEM Cloud Computing Summer School.
DB server + PHPMyAdmin ดรัสวิน วงศ์ปรเมษฐ์ สาขาวิชาเทคโนโลยีสารสนเทศ คณะ วิทยาศาสตร์ มรภ. บร. 19/10/56.
CERN Manual Installation of a UI – Oxford July - 1 LCG2 Administrator’s Course Oxford University, 19 th – 21 st July Developed.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Workload Management System + Logging&Bookkeeping Installation.
Network Security: Lab#3 Transport-Level Security Tools J. H. Wang May 12, 2011.
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 LCFGng configuration examples Updated 10/2002
1 / 22 AliRoot and AliEn Build Integration and Testing System.
E-science grid facility for Europe and Latin America Setting up a YUM Repository Gianni M. Ricciardi – Consorzio COMETA Joint EELA-2/EGEE-III.
INFSO-RI Enabling Grids for E-sciencE Installation of an APT+kickstart server Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,
E-infrastructure shared between Europe and Latin America Introduction to the tutorial for site managers Vanessa Hamar Universidad de Los.
SWGData and Software Access - 1 UCB, Nov 15/16, 2006 THEMIS SCIENCE WORKING TEAM MEETING Data and Software Access Ken Bromund GST Inc., at NASA/GSFC.
C. Aiftimiei, E. Ferro / January LCFGng server installation Cristina Aiftimiei, Enrico Ferro INFN-LNL.
Distribution Repository Structure David Groep,
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
EGEE-II INFSO-RI Enabling Grids for E-sciencE YAIM Overview MiMOS Grid tutorial HungChe, ASGC OPS Team.
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
12th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin.
TP: Grid site installation BEINGRID site installation.
INFSO-RI Enabling Grids for E-sciencE Installing & configuring Joachim Flammer Integration Team, CERN EMBRACE Tutorial, Clermont-Ferrand.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) 马兰馨 IHEP, CAS Hands on gLite Security.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) UI Installation and Configuration Dong Xu IHEP,
Presentation of the results khiat abdelhamid
GLite WN Installation Giuseppe LA ROCCA INFN Catania ACGRID-II School 2-14 November 2009 Kuala Lumpur - Malaysia.
First South Africa Grid Training Installation and configuration of BDII Gianni M. Ricciardi Consorzio COMETA First South Africa Grid Training Catania,
MREPO: Yum/Apt repository kickstart installation via PXE GIUSEPPE PLATANIA INFN Catania I Corso di formazione INFN.
APACHE INSTALL Linux: CentOS 6.5 WHAT IS APACHE Apache is an open source application which is governed by the GNU licensing for use and alteration of.
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks BDII Server Installation & Configuration.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.
SciDAC SSS Quarterly Report Sandia Labs January 25, 2005 William McLendon Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Elisa Ingrà Consortium GARR- Roma WMS LB.
9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.
MirrorManager: The Fedora Mirror System Matt Domsch Fedora Mirror Wrangler Linux Technology Strategist Office of the CTO Dell, Inc.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Workload Management System + Logging&Bookkeeping Installation.
APACHE INSTALL AWS Linux (Amazon Web Services EC2)
Overview of software tools for gLite installation & configuration
Packaging and Deploying Windows Applications
COP 4343 Unix System Administration
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
Installation and configuration of a top BDII
Introduction to CVMFS A way to distribute HEP software on cloud
June 2011 David Front Weizmann Institute
Lab 1 introduction, debrief
More Scripting & Chapter 11
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
IS3440 Linux Security Unit 9 Linux System Logging and Monitoring
University of Texas Rio Grande Valley Systems Administration CSCI 6175
WMS LB topBDII Installation and Configuration
Presentation transcript:

The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) 马兰馨 IHEP, CAS Setting Up a 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 2 A repository

The mrepo service retrieves rpms from mirror sites and creates a repository with APT-YUM meta-data Manages the local APT and YUM repository for OS and middleware Requires the configuration of both: mrepo and httpd service Supports for ftp, http, sftp, rsync, rhn and other protocals 3 MREPO

Prepare a Scientific Linux 5.x machine Retrieve the mrepo package and install it –Package from(Use the el5 version of the package): wget 1.el5.rf.noarch.rpm –Install with: rpm -Uvh –Ensure that createrepo and httpd rpms are installed on your system wget 1.el5.rf.noarch.rpmhttp://linuxsoft.cern.ch/dag/redhat/el5/en/x86_64/dag/RPMS/createrepo el5.rf.noarch.rpm 4 Repository Installation

Modify the mrepo script, since the path to the comps.xml file is not composed properly *** /usr/bin/mrepo :57: mrepo.modified :58: *************** *** 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 , 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 5 mrepo Script

/etc/mrepo.conf ### The [main] section allows to override mrepo's default settings ### The mrepo-example.conf gives an overview of all the possible settings [main] srcdir = /var/mrepo wwwdir = /var/www/mrepo confdir = /etc/mrepo.conf.d arch = i386 x86_64 metadata=yum repomd lftp-mirror-options = -c -X "*/Fermi/*" -X "*/example/*" #lftp-mirror-options = -c -P=10 -X "*/Fermi/*" -X "*/example/*" createrepo-options = -d –p #(If you mirrot from infngrid, add it) mailto = smtp-server = localhost #rhnlogin = username:password 6 General Settings

/etc/mrepo.conf ### The [main] section allows to override mrepo's default settings ### The mrepo-example.conf gives an overview of all the possible settings [main] srcdir = /var/mrepo wwwdir = /var/www/mrepo confdir = /etc/mrepo.conf.d arch = i386 x86_64 metadata=yum repomd lftp-mirror-options = -c -X "*/Fermi/*" -X "*/example/*" #lftp-mirror-options = -c -P=10 -X "*/Fermi/*" -X "*/example/*" createrepo-options = -d –p (if you mirror the InfnGrid repositories, add this line) mailto = smtp-server = localhost #rhnlogin = username:password 7 General Settings

/etc/mrepo.conf.d/ca.conf ### CA repository [ca] name = lcg-ca arch = noarch production = Mrepo will create: /mrepo/ca-noarch 8 Specific configuration

/etc/mrepo.conf.d/glite32.gridit.conf ### ### gLite Middleware 3.2 ### [glite_ig_sl5] name = gLite Middleware (R3.2 - x86_64) release = R3.2 arch = x86_64 ### Official repositories ( # Generic Repositories generic-externals = generic-release = generic-updates = Mrepo will create: /mrepo/glite_sl5-x86_64/RPMS.generic-externals /mrepo/glite_sl5-x86_64/RPMS. release /mrepo/glite_sl5-x86_64/RPMS.generic-updates 9 Specific configuration

mrepo command options -c, –config=file specify alternative configfile -g, –generate generate mrepo repositories -q, –quiet minimal output -r, –repo=repo1,repo2 restrict action to specific repositories -u, –update fetch updates -v, –verbose increase verbosity (only mrepo info) -vv, -vvv increase verbosity more Example mrepo –guvv mrepo -gvv mrepo –uvv mrepo -guvv gilda sl4 mrepo -guvv -r app 10 MREPO Usage

mrepo command options -c, –config=file specify alternative configfile -g, –generate generate mrepo repositories -q, –quiet minimal output -r, –repo=repo1,repo2 restrict action to specific repositories -u, –update fetch updates -v, –verbose increase verbosity (only mrepo info) -vv, -vvv increase verbosity more Example mrepo –guvv mrepo -gvv mrepo –uvv mrepo -guvv gilda sl4 mrepo -guvv -r app 11 MREPO Usage

MREPO support the creation of several set of metadata for the clients – apt, yum and repomd supported Tools creating the additional metadata should be installed in the system – apt requires genbasedir binary from apt package – yum < 2.4 requires yum-arch binary from yum package – repomd for apt>=0.5.15lorg and yum>=2.4 requires createrepo binary from createrepo package 12 MREPO Metadata

Example repodata]# ls /var/www/mrepo/ca-current/RPMS.production/repodata filelists.sqlite.bz2 filelists.xml.gz other.sqlite.bz2 other.xml.gz primary.sqlite.bz2 primary.xml.gz repomd.xml 13 MREPO Metadata

Example –Apache web server manages the web interface –Mrepo package installs a own configuration file for http in order to define its urls: /etc/httpd/conf.d/mrepo.conf –The default repository web directory is /var/www/mrepo – Add it to the automatic boot and start the service  In SL5 you can use the following commands: /sbin/chkconfig httpd on /sbin/service httpd start 14 WEB server configuration

Verify that mrepo installation created a crontab under /etc/cron.d like this one: ### Enable this if you want mrepo to daily synchronize ### your distributions and repositories at 2:30am * * * root echo "### Mrepo running on: "`date` >> /var/log/mrepo.log 2>&1 ; /usr/bin/mrepo -ugfv >> /var/log/mrepo.log 2>&1 15 Update repo

The machine has to be configure with your repository – E.g. using yum you need to create a repo file in /etc/yum.repos.d/.repo Repo file example –more /etc/yum.repos.d/lcg-ca.repo # # CA repository # [CAs] name = CAs baseurl = enabled = 1 protect = 0 –yum install lcg-CA 16 Using your repo

Official MREPO web page 17 Reference

Official MREPO web page 18

19