How to install Xrootd gateway on a dCache site

admin.dcache.org:/pnfsdoors /pnfs/pi.infn.it  nfs  ro,intr,noac,hard,nfsvers=2,addr=193.205.76.16  0   0
  • usermod -g 0 xrootd
  • configure certificates:
mkdir /etc/grid-security/xrd
cp /etc/grid-security/hostcert.pem /etc/grid-security/xrd/xrdcert.pem
cp /etc/grid-security/hostkey.pem /etc/grid-security/xrd/xrdkey.pem
chown xrootd. /etc/grid-security/xrd/xrdcert.pem
chown xrootd. /etc/grid-security/xrd/xrdkey.pem
  • make a link to work around a problem with dcap library:
ln -s /pnfs/pi.infn.it/data/cms/store /store
  • configure /etc/xrootd/xrootd.cfg
# Port specifications; only the redirector needs to use a well-known port
# "any" will cause rooted to bind to any available port.  Change as needed for firewalls.
xrd.port 7070 

# The roles this server will play.
all.role server
all.role manager if xrootd.ba.infn.it
# The known managers
all.manager all xrootd-cms.infn.it+ 1213
#all.manager xrootd.ultralight.org:1213

# Allow any path to be exported; this is further refined in the authfile.
all.export / r
oss.localroot /pnfs/pi.infn.it/data/cms 

# Hosts allowed to use this xrootd cluster
cms.allow host *

### Standard directives
# Simple sites probably don't need to touch these.
# Logging verbosity
xrootd.trace emsg login stall redirect
ofs.trace none
xrd.trace conn
cms.trace all

# Integrate with CMS TFC, placed in /etc/storage.xml
#oss.namelib /usr/lib64/libXrdCmsTfc.so file:/etc/xrootd/storage.xml?protocol=dcap

# Turn on authorization
ofs.authorize 1
acc.authdb /etc/xrootd/Authfile
acc.audit deny grant

# Security configuration
sec.protocol /usr/lib64 gsi -certdir:/etc/grid-security/certificates -cert:/etc/grid-security/xrd/xrdcert.pem -key:/etc/grid-security/xrd/xrdkey.pem -crl:3

xrootd.seclib /usr/lib64/libXrdSec.so
xrootd.fslib /usr/lib64/libXrdOfs.so
ofs.osslib /usr/lib64/libXrdDcap.so
all.adminpath /var/run/xrootd
all.pidpath /var/run/xrootd

cms.delay startup 10
cms.fxhold 60s
cms.perf int 30s pgm /usr/bin/XrdOlbMonPerf 30

if exec xrootd
  xrd.report xrootd.ba.infn.it:3333 every 300s all
  xrootd.monitor all flush 5s mbuff 1k window 1s dest files io info user xrootd.ba.infn.it:3334 dest files io info stage user xrootd.ba.infn.it:9930
fi

#oss.xfr 

-- GiacintoDonvito - 09-Feb-2011

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2014-04-14 - TommasoBoccali
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback