Hello,
I want to deploy XROOTD here in RCF RHIC and I would like to ask for one
question.
1) Can redirector server be a data server ? (i.e if data can be stored
in redirector server and clients can access them)
I started redirector server (xrd and olb) on node
rcas6001.rcf.bnl.gov with configuration file redirector.cf (in
attachment) and data server on rcas6003.rcf.bnl.gov.
Then I tried to open file which is located on node rcas6001.
root.exe [1]
gROOT->GetPluginManager()->AddHandler("TFile","^root:","XTNetFile",
"XTNetFile", "XTNetFile(const char*,Option_t*,const char*,Int_t,Int_t)");
root.exe [2] f =
TFile::Open("root://rcas6001.rcf.bnl.gov:1095/starlib/reco/production62GeV/ReversedFullField/P04ie/2004/087/st_physics_adc_5087079_raw_2070001.MuDst.root")
Error in <TXNetConn::Open>: Server [rcas6001.rcf.bnl.gov:1095] did
not return OK message for last request.
Error in <TXNetConn::SendGenCommand>: Server declared error 3005:
'No servers are available to read the file.'
Error in <XTNetFile::CTOR>: Error opening the file
//data1/starlib/reco/production62GeV/ReversedFullField/P04ie/2004/087/st_physics_adc_5087079_raw_2070001.MuDst.root
on host rcas6001.rcf.bnl.gov:1095
I also inclose config files and log files , but I think that there is a
simple question if it is possible or not. If yes, please can you give me
a advice ?
Thank you
Pavel Jakl
# Do not delete this !!!!!!
#
# This is a configuration file for normal node of system XROOTD
#
#
# !!!!!!!!! The XROOTD Section!!!!!!!!!!!!!!!!
#
# It specifies the manager oldb location
# (Mandatory directive)
odc.manager rcas6001 3121
odc.trace all
# Open Load Balancer
olb.allow host rcas*.rcf.bnl.gov
# It specifies the port of XROOTD server
olb.port 3121
olb.path r /
# Subscribe the location of oldb Manager
olb.subscribe rcas6001 3121
olb.wait
# The Open FILE System Section
ofs.redirect remnote rcas6001
ofs.redirect target
# Restrict access to files only for operation read
oss.readonly
# xrd section
xrd.protocol xrootd *
xrd.port 1095
# Here loading the extended file system support for xrootd
xrootd.fslib /afs/rhic.bnl.gov/star/ROOT/4.03.02/.sl302_gcc323/rootdeb/lib/libXrdOfs.so
# It specifies a valid path prefix to file requests
xrootd.export /data0
xrootd.export /data1
xrootd.export /data2
xrootd.export /home
# Here load library for security component
# xrootd.seclib /afs/rhic.bnl.gov/star/ROOT/4.03.02/.sl302_gcc323/rootdeb/lib/libXrdSec.so
# This directive is restriction for hosts that can connect to xrootd
# xrd.allow host *.rcf.bnl.gov
#
# !!!!!!! (SEC) Security authentication copmonent section !!!!!!
#
# This directive binds a set of protocols to one or more hosts
# (parametr only specifies that incoming clients must supply host-based authentification)
# sec.protbind *.rcf.bnl.gov host
# Do not delete this !!!!!!
#
# This is a configuration file for redirector node of system XROOTD
#
# It specifies the manager oldb location
# (Mandatory directive)
odc.manager rcas6001 3121
# Enable tracing for odc component (specially traces request redirection)
odc.trace all
#
# !!!!!!!!!!!!(OLB) Open load balancing Section!!!!!!!!!!!!
# It can be in same file
# Restriction for hosts that can subscribe to the olbd manager
olb.allow host rcas*.rcf.bnl.gov
# Designate the port number to use for incoming requests from client (this is mandatory directive)
olb.port 3121
# s for staging, path here is path parcel, default is r /
olb.path r /
#
# !!!!!!!!! The XROOTD Section!!!!!!!!!!!!!!!!
#
# It specifies the port of XROOTD server
xrd.protocol xrootd *
xrd.port 1095
# Here loading the extended file system support for xrootd
xrootd.fslib /afs/rhic.bnl.gov/star/ROOT/4.03.02/.sl302_gcc323/rootdeb/lib/libXrdOfs.so
# Here load library for security component
# xrootd.seclib /afs/rhic.bnl.gov/star/ROOT/4.03.02/.sl302_gcc323/rootdeb/lib/libXrdSec.so
# It specifies a valid path prefix to file requests
xrootd.export /data0
xrootd.export /data1
xrootd.export /data2
xrootd.export /home
# This directive is restriction for hosts that can connect to xrootd
# xrd.allow r*.rcf.bnl.gov
#
# !!!!!!! (SEC) Security authentication copmonent section !!!!!!
#
# This directive binds a set of protocols to one or more hosts
# (parametr only specifies that incoming clients must supply host-based authentification)
# sec.protbind *.rcf.bnl.gov only host
050221 16:15:09 001 (c) 2004 Stanford University/SLAC xrd version 20041124-0752_dbg
050221 16:15:09 001 [log in to unmask] initialization started.
050221 16:15:09 001 Using configuration file /star/u/pjakl/config/redirector.cf
050221 16:15:09 001 Optimizing for 256 connections; maximum is 1024
050221 16:15:09 001 (c) 2003 Stanford University/SLAC XRootd (eXtended Root Daemon).
050221 16:15:09 001 XRootd seclib not specified; strong authentication disabled
050221 16:15:09 001 ofs_Init: (c) 2004 Stanford University/SLAC, Ofs Version 20041124-0752_dbg
050221 16:15:09 001 ofs_Config: File system initialization started.
050221 16:15:09 001 odc_Config: Remote redirection initialization started
050221 16:15:09 001 odc_Config: Distributed cache initialization completed.
050221 16:15:09 001 odc_Config: 1 manager(s) started.
050221 16:15:09 001 ofs_Config: File system initialization completed.
/star/u/pjakl/config/redirector.cf ofs configuration:
ofs.authorize
ofs.redirect remote
ofs.fdscan 9 120 1200
ofs.maxdelay 60
ofs.trace 0
050221 16:15:09 001 oss_Init: (c) 2003, Stanford University, oss Version1.0.0
050221 16:15:09 001 oss_config: Storage system initialization started.
050221 16:15:09 001 oss_config: Storage system initialization completed.
/star/u/pjakl/config/redirector.cf oss configuration:
oss.alloc 0 0 0
oss.cachescan 600
oss.compdetect *
oss.fdlimit 512 1024
oss.maxdbsize 0
oss.trace 0
oss.xfr 1 9437184 30 10800
050221 16:15:09 001 oss_Init: No remote file paths specified; local mode assumed
050221 16:15:09 001 Prep log directory not specified; prepare tracking disabled.
050221 16:15:09 001 Exporting /data0
050221 16:15:09 001 Exporting /data1
050221 16:15:09 001 Exporting /data2
050221 16:15:09 001 Exporting /home
050221 16:15:09 001 XRootd protocol version 2.2.0 build 20041124-0752 successfully loaded.
050221 16:15:09 001 [log in to unmask]:1095 initialization completed.
050221 16:15:09 11497 odc_Manager: Connected to rcas6001
050221 16:33:10 11497 XrootdXeq: User logged in as pjakl.19113:12@rcas6025
050221 16:33:10 11497 odc_Receive: Server: Received from rcas6001: 0 !wait 5
050221 16:33:10 11497 odc_Locate: user=pjakl.19113:12@rcas6025 wait :5 by rcas6001 path=/data1/starlib/reco/production62GeV/ReversedFullField/P04ie/2004/087/st_physics_adc_5087079_raw_2070001.MuDst.root
050221 16:33:15 11497 odc_Receive: Server: Received from rcas6001: 1 ?err No servers are available to read the file.
050221 16:33:15 11497 odc_Locate: user=pjakl.19113:12@rcas6025 error: No servers are available to read the file.:0 by rcas6001 path=/data1/starlib/reco/production62GeV/ReversedFullField/P04ie/2004/087/st_physics_adc_5087079_raw_2070001.MuDst.root
050221 16:36:29 11497 XrdLink: pjakl.19113:12@rcas6025 disconnected after 0:03:19
050221 16:15:09 001 olb_Config: (c) 2004 SLAC olbd version 20041124-0752_dbg initializing as Manager
050221 16:15:09 001 olb_Config: Round robin scheduling in effect.
050221 16:15:09 001 olb_Config: Manager initialization completed.
050221 16:15:09 11507 olb_Manager: Director rcas6001.rcf.bnl.gov logged in.
050221 16:16:39 11507 olb_Config: Service enabled.
050221 16:17:16 11507 olb_Manager: Server rcas6003.rcf.bnl.gov:1095 logged in.
|