TWiki
>
LCG Web
>
LCGGridDeployment
>
LCGSoftware
>
DataManagementTop
>
DataManagementDocumentation
>
LhcbLfcReplicaCheckList
(revision 13) (raw view)
Edit
Attach
PDF
%TOC% ---+ Read-only LFC replica check list This page is aimed to help you setting up a read-only LFC replica server for LHCb. ---++ Check list | *Site* | *Oracle DB* | *Enable Streams* | *LFC machine* | *LFC installation* | *Open ports* | *Test by LHCb* | | CNAF | =OK= | =OK= | =OK= | =OK= | =OK= | =OK= | | Nikhef / SARA | | | | | | | | PIC | | | | | | | | FZK | | | | | | | | IN2P3 | | | | | | | | RAL | =OK= | =OK= | =OK= | =OK= | =OK= | =on going= | ---++ Oracle DB Oracle needs to be available at your site. ---++ Enable Streams You need to setup Oracle Streams at your site to receive the data coming from CERN. Check the [[https://twiki.cern.ch/twiki/bin/view/PSSGroup/ServiceDocs][documents]] provided by [[mailto:Eva.Dafonte.Perez@cern.ch][Eva Da Fonte Perez]]. ---++ LFC machine Dedicate a machine to the LFC service. See [[https://twiki.cern.ch/twiki/bin/view/LCG/LfcAdminGuide#What_kind_of_machine][What kind of machine]] for the minimal requirements. The LFC server is a read-only *replica* of the CERN primary LFC server, used by LHCb for failover. Thus, there is no need for redundancy (i.e. several LFC servers with DNS load-balancing). ---++ LFC installation ---+++ Pre-requisites ---++++ Oracle Client The LFC installation via YAIM will not work unless =oracle-instantclient-basic= and =oracle-instantclient-sqlplus= are installed on the LFC machine. <verbatim> $ rpm -qa | grep oracle </verbatim> *NOTE:* you don't need =oracle-instantclient-jdbc= or =oracle-instantclient-devel= and can safely ignore the corresponding warnings in YAIM. ---++++ Oracle version If your Oracle version is different from *10.2.0.1*, you need to change it in =/etc/sysconfig/lfcdaemon= (after creating it): <verbatim> $ cp /etc/sysconfig/lfcdaemon.templ /etc/sysconfig/lfcdaemon $ grep oracle /etc/sysconfig/lfcdaemon ... # - Oracle Home : export ORACLE_HOME=/usr/lib/oracle/10.1.0.4/client </verbatim> ---++++ tnsnames.ora A =tnsnames.ora= file containing the LFC database description should be present under =/etc= or =/home/lfcmgr/.tnsadmin=. It can be any other directory provided it is defined in =/etc/sysconfig/lfcdaemon= uncommented: <verbatim> $ more /etc/sysconfig/lfcdaemon ... # - Directory where tnsnames.ora resides : export TNS_ADMIN=/another/directory </verbatim> ---++++ ldconfig The Oracle library path appears in =/etc/ld.so.conf= and =/sbin/ldconfig= has been run. <verbatim> $ grep oracle /etc/ld.so.conf /usr/lib/oracle/10.2.0.1/client/lib $ /sbin/ldconfig </verbatim> ---++++ read-only LFC Your LFC should be started as *read-only*, thus you need to change the =/etc/sysconfig/lfcdameon= file: <verbatim> $ grep READONLY /etc/sysconfig/lfcdaemon ... RUN_READONLY="yes" </verbatim> ---++++ disable virtual ids automatic creation Your LFC should be started so that the *automatic creation of virtual ids is disabled*: In LFC version =1.6.7-1= and =1.6.7-2=, this is missing from the =/etc/sysconfig/lfcdaemon= and =/etc/init.d/lfcdaemon= files. * So, replace your =/etc/init.d/lfcdaemon= file with [[http://jra1mw.cvs.cern.ch:8180/cgi-bin/jra1mw.cgi/LCG-DM/ns/lfcdaemon.scripts.oracle?view=log][this one]] * And check this [[http://jra1mw.cvs.cern.ch:8180/cgi-bin/jra1mw.cgi/LCG-DM/ns/lfcdaemon.sysconfig.oracle?view=log][sysconfig file]], and merge it with your own sysconfig file. Disable the virtual ids automatic creation: <verbatim> RUN_DISABLEAUTOVIDS="yes" </verbatim> After starting the LFC, make sure that the =-n= option appears: <verbatim> $ ps aux | grep lfcdaemon lfcmgr 29457 0.0 1.6 235372 4440 ? Ssl 14:51 0:01 /opt/lcg/bin/lfcdaemon -n -t 20 -c /opt/lcg/etc/NSCONFIG -l /var/log/lfc/log </verbatim> ---+++ Installation via YAIM Check the [[https://twiki.cern.ch/twiki/bin/view/LCG/GenericInstallGuide301][YAIM guide]] ---+++ LFC Admin Guide To become familiar with LFC service, Tier-1 administrators are encouraged to read the [[https://twiki.cern.ch/twiki/bin/view/LCG/LfcAdminGuide][LFC admin guide]] These [[https://twiki.cern.ch/twiki/bin/viewfile/LCG/LfcAdminGuide?rev=1;filename=LFC-Tier2-tutorial-15_06_2006.ppt][slides]] might also be helpful The important part is to start the LFC server as [[https://twiki.cern.ch/twiki/bin/view/LCG/LfcAdminGuide#READ_ONLY_LFC][read-only]] For help with the LFC server installation, please contact the [[mailto:hep-service-lfc@cern.ch][LFC support team]] ---++ Open ports Ports =5010=, =8085= and =2170= need to be open to the outside world. See this [[https://twiki.cern.ch/twiki/bin/view/LCG/LfcAdminGuide#Which_ports_need_to_be_open][section of the LFC admin guide]]. ---++ Test the LFC * Test that the LHCb data has actually been replicated to your site and is visible in the LFC: <verbatim> $ lfc-ls /grid/lhcb SAM SFT blouw cnaf-stress data ... </verbatim> * Test that the server has been started in *read-only* mode: <verbatim> $ lfc-mkdir /grid/lhcb/hello cannot create /grid/lhcb/hello: Read-only file system </verbatim> * Contact [[mailto:Roberto.Santinelli@cern.ch][Roberto Santinelli]] to test your freshly installed LFC server. He will be able to test your installation as a member of the LHCb VO. ---++ Troubleshooting ---+++ Could not establish context The user sees: <verbatim> $ lfc-ls /grid/lhcb /grid/lhcb: Could not establish context </verbatim> And the =/var/log/lfc/log= LFC server log shows: <verbatim> 09/14 09:03:54 23479,0 Cns_serv: Could not establish security context: _Csec_get_voms_creds: Cannot find certificate of AC issuer for vo lhcb ! </verbatim> The solution is to install =lcg-vomscert-4.5.0-1=, which creates the =/etc/grid-security/vomsdir= directory and its content. ---+++ Could not get virtual id The user sees: <verbatim> $ lfc-ls / Could not get virtual id: Internal error ! /: No user mapping </verbatim> And the =/var/log/lfc/log= LFC server log shows: <verbatim> 09/14 13:45:48 25609,0 Cns_get_usrinfo_by_name: OPEN CURSOR error: ORA-00980: synonym translation is no longer valid </verbatim> The problem is that the =Cns_groupinfo= and =Cns_userinfo= tables are not replicated to Tier1s. This should be fixed. They cannot be created locally, because the ACLs won't be the same between the different LFC replicas, and there won't be consistency . For more details, ask Roberto... :-) ---------------------------------------------------------------------------------------------------------- -- Main.SophieLemaitre - 10 Dec 2007
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r15
<
r14
<
r13
<
r12
<
r11
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r13 - 2007-12-10
-
SophieLemaitre
Log In
LCG
LCG Wiki Home
LCG Web Home
Changes
Index
Search
LCG Wikis
LCG Service
Coordination
LCG Grid
Deployment
LCG
Apps Area
Public webs
Public webs
ABATBEA
ACPP
ADCgroup
AEGIS
AfricaMap
AgileInfrastructure
ALICE
AliceEbyE
AliceSPD
AliceSSD
AliceTOF
AliFemto
ALPHA
Altair
ArdaGrid
ASACUSA
AthenaFCalTBAna
Atlas
AtlasLBNL
AXIALPET
CAE
CALICE
CDS
CENF
CERNSearch
CLIC
Cloud
CloudServices
CMS
Controls
CTA
CvmFS
DB
DefaultWeb
DESgroup
DPHEP
DM-LHC
DSSGroup
EGEE
EgeePtf
ELFms
EMI
ETICS
FIOgroup
FlukaTeam
Frontier
Gaudi
GeneratorServices
GuidesInfo
HardwareLabs
HCC
HEPIX
ILCBDSColl
ILCTPC
IMWG
Inspire
IPv6
IT
ItCommTeam
ITCoord
ITdeptTechForum
ITDRP
ITGT
ITSDC
LAr
LCG
LCGAAWorkbook
Leade
LHCAccess
LHCAtHome
LHCb
LHCgas
LHCONE
LHCOPN
LinuxSupport
Main
Medipix
Messaging
MPGD
NA49
NA61
NA62
NTOF
Openlab
PDBService
Persistency
PESgroup
Plugins
PSAccess
PSBUpgrade
R2Eproject
RCTF
RD42
RFCond12
RFLowLevel
ROXIE
Sandbox
SocialActivities
SPI
SRMDev
SSM
Student
SuperComputing
Support
SwfCatalogue
TMVA
TOTEM
TWiki
UNOSAT
Virtualization
VOBox
WITCH
XTCA
Welcome Guest
Login
or
Register
Cern Search
TWiki Search
Google Search
LCG
All webs
Copyright &© 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use
Discourse
or
Send feedback