How to install the LFC JeanPhilippe Baud Sophie
How to install the LFC ? • Jean-Philippe Baud - Sophie Lemaitre • IT-GD, CERN • May 2005
How to install the LFC ? (1/4) • This is about LFC version 1. 3. 2 • 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 CERN IT-GD
How to install the LFC ? (1/4) • Create LFC user “lfcmgr” • Security : • Whole security stack (globus RPMs, etc. ) • Host certificate : [root@pccms 5 root]# ls -al /etc/grid-security/lfcmgr/ -rw-r--r-- 1 lfcmgr 1631 May 26 14: 26 lfccert. pem -r---- 1 lfcmgr 891 May 26 14: 26 lfckey. pem • gridmapdir / pool accounts : [root@pccms 5 root]# ls -al /etc/grid-security/ | grep grid drwxrwxr-x 2 root lfcmgr 8192 May 26 15: 48 gridmapdir -rw-r--r-- 1 root 67581 May 26 14: 03 grid-mapfile • Install the RPMs : • My. SQL-client (and server if on the same box) • lcg-dm-common • LFC-server-mysql, LFC-client CERN IT-GD
How to install the LFC ? (2/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@pccms 5. cmsfarm 1. ba. infn. it > /opt/lcg/etc/NSCONFIG • Check the permissions : • NSCONFIG : [root@pccms 5 root]# ls -al /opt/lcg/etc/NSCONFIG -rw-rw---- 1 lfcmgr 44 May 26 12: 07 /opt/lcg/etc/NSCONFIG • Log file : [root@pccms 5 root]# ls -al /var/log/lfc/log -rw-r--r-- 1 lfcmgr 10249 May 26 15: 53 /var/log/lfc/log CERN IT-GD
How to install the LFC ? (2/4) • Run the LFC daemon : • Modify /etc/sysconfig/lfcdaemon if necessary • Then run : service lfcdaemon start • Create the VOs directories : export LFC_HOST=pccms 5. cmsfarm 1. ba. infn. it lfc-mkdir /grid/dteam lfc-chmod 775 /grid/dteam lfc-setacl -m d: u: : 7, d: g: : 7, d: o: 5 /grid/dteam • Publish the LFC in your Information System • And this is finished ! CERN IT-GD
- Slides: 5