1 / 9

How to install the LFC ?

How to install the LFC ?. Jean-Philippe Baud - Sophie Lemaitre IT-GD, CERN May 2005. Documentation and Help. Documentation (LFC & DPM): http://goc.grid.sinica.edu.tw/gocwiki/AdministrationFaq -> Data Management section : LFC/DPM Admin Guides RLS to LFC migration script

ziazan
Download Presentation

How to install the LFC ?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to install the LFC ? Jean-Philippe Baud - Sophie Lemaitre IT-GD, CERN May 2005

  2. Documentation and Help • Documentation (LFC & DPM): • http://goc.grid.sinica.edu.tw/gocwiki/AdministrationFaq -> Data Management section : • LFC/DPM Admin Guides • RLS to LFC migration script • Useful presentations (architecture, implementation, installation, etc.) • Help : • Archived support mailing lists : hep-service-lfc@cern.ch hep-service-dpm@cern.h CERN IT-GD

  3. Requirements • What kind of machine ? • Service machine with : • 2GHz processor with 512 MB of memory (not hard req.) • Dual power supply • Mirrored system disk • Size of the DB ? • Depends on the size of the file/directory names, and on the number of replicas per file • ~ 1GB for one million entries in the LFC • Backups & Recovery • This is the site’s responsibility ! CERN IT-GD

  4. Database backend • MySQL : • LFC-client depends on MySQL-client >= 4.0.20 • Oracle : • LFC-client depends on oracle-instantclient-basic-lcg-10.1.0.3 -> works with Oracle DB server 7, 8, 9i, 10g CERN IT-GD

  5. How to install the LFC ? (1/4) • This is about LFC version 1.3.4included in LCG-2_5_0 • This is very slightly different from LFC version 1.2.6 (included in LCG-2_4_0) : • Different RPM dependencies • lfcdaemon runs as “lfcmgr” instead of root • Automatic installation via YAIM (for MySQL) : • ./install_node site-info.def lcg-LFC_mysql • ./configure_node site-info.def LFC_mysql CERN IT-GD

  6. How to install the LFC ? (2/4) • Create LFC user “lfcmgr” • Security : • Whole security stack (globus RPMs, etc.) • Host certificate : [root@pccms5 root]# ls -al /etc/grid-security/lfcmgr/ -rw-r--r-- 1 lfcmgr lfcmgr 1631 May 26 14:26 lfccert.pem -r-------- 1 lfcmgr lfcmgr 891 May 26 14:26 lfckey.pem • gridmapdir / pool accounts : [root@pccms5 root]# ls -al /etc/grid-security/ | grep grid drwxrwxr-x 2 root lfcmgr 8192 May 26 15:48 gridmapdir -rw-r--r-- 1 root root 67581 May 26 14:03 grid-mapfile • Install the RPMs : • MySQL-client (and server if on the same box) • lcg-dm-common • LFC-server-mysql, LFC-client CERN IT-GD

  7. How to install the LFC ? (3/4) • Database : • LFC database user “lfc” • Tables : mysql –u lfc –p < /opt/lcg/share/LFC/create_lfc_tables_mysql.sql • Configuration file : echo lfc/lfc_pwd@mysql_server_host > /opt/lcg/etc/NSCONFIG • Check the permissions : • NSCONFIG : [root@pccms5 root]# ls -al /opt/lcg/etc/NSCONFIG -rw-rw---- 1 lfcmgr lfcmgr 44 May 26 12:07 /opt/lcg/etc/NSCONFIG • Log file : [root@pccms5 root]# ls -al /var/log/lfc/log -rw-r--r-- 1 lfcmgr lfcmgr 10249 May 26 15:53 /var/log/lfc/log CERN IT-GD

  8. How to install the LFC ? (4/4) • Run the LFC daemon : • cp -p /etc/sysconfig/lfcdaemon.templ /etc/sysconfig/lfcdaemon • Modify /etc/sysconfig/lfcdaemon if necessary • Then run : service lfcdaemon start • Create the VOs directories : export LFC_HOST=<your_lfc_host> lfc-mkdir /grid lfc-mkdir /grid/<VO> lfc-chmod 775 /grid/<VO> lfc-setacl -m d:u::7,d:g::7,d:o:5 /grid/<VO> • Publish the LFC in your Information System • And this is finished ! CERN IT-GD

  9. LFC for Oracle backend • oracle-instantclient-basic-lcg-10.1.0.3 • This is just the client, works with Oracle DB server 7, 8, 9i and 10g • NSCONFIG : lfc_user/lfc_password@Oracle_DB_SID • In /etc/sysconfig/lfcdaemon : • $TWO_TASK -> Name of the DB Oracle SID • $TNS_ADMIN -> Directory where tnsnames.ora resides CERN IT-GD

More Related