90 likes | 190 Views
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
E N D
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 • Useful presentations (architecture, implementation, installation, etc.) • Help : • Archived support mailing lists : hep-service-lfc@cern.ch hep-service-dpm@cern.h CERN IT-GD
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
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
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
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
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
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
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