xCache Installation and Setting


  • CentOS 7 for head node and worker nodes

Links to documentation:


Package installation

Install prepare packages:

yum install http://repository.egi.eu/sw/production/umd/4/centos7/x86_64/updates/umd-release-4.1.3-1.el7.centos.noarch.rpm -y
yum install http://linuxsoft.cern.ch/wlcg/centos7/x86_64/wlcg-repo-1.0.0-1.el7.noarch.rpm -y 
yum -y install wget vim telnet
yum install -y ca-policy-egi-core
yum install -y wlcg-voms-alice wlcg-voms-atlas wlcg-voms-dteam fetch-crl
yum install -y lcmaps-plugins-verify-proxy lcmaps-common-devel lcmaps-devel lcmaps-plugins-voms lcmaps-plugins-basic globus-proxy-utils cmake git gcc-c++

Xrootd packages:

yum install -y xrootd-client xrootd-server xrootd-libs xrootd-server-libs xrootd-client-lib xrootd-server-devel xrootd-devel xrootd-client-devel 

Xrootd Lcmaps:

cd /opt/
git clone https://github.com/opensciencegrid/xrootd-lcmaps.git
cd xrootd-lcmaps/
mkdir build
cd build/
cmake ../
make install

Data space configuration

mkdir /data
mkdir /data/namespace
mkdir /data/namespacedcp
mkdir /data/xrootd
mkdir /data/xrootddcp
chown -R xrootd: /data

Downlod confg files:

wget http://v009.pnpi.nw.ru/xcache/lcmaps.db -O /etc/lcmaps/lcmaps.db
wget http://v009.pnpi.nw.ru/xcache/grid-xrdmapfile -O /etc/grid-security/grid-xrdmapfile
wget http://v009.pnpi.nw.ru/xcache/xrootd-renew-proxy.timer -O /usr/lib/systemd/system/xrootd-renew-proxy.timer
wget http://v009.pnpi.nw.ru/xcache/xrootd-renew-proxy.service -O /usr/lib/systemd/system/xrootd-renew-proxy.service
wget http://v009.pnpi.nw.ru/xcache/xrootd-cache.cfg -O /etc/xrootd/xrootd-cache.cfg
For distributed cache:
wget http://v009.pnpi.nw.ru/xcache/xrootd-dc.cfg  -O /etc/xrootd/xrootd-dc.cfg
wget http://v009.pnpi.nw.ru/xcache/xrootd-dcmanager.cfg -O /etc/xrootd/xrootd-dcmanager.cfg

Change permission for hostcert

chown xrootd: /etc/grid-security/host*

Change config files

export XRDUID=`grep xrootd /etc/passwd | awk -F: '{print $3}'`
sed s/x509up_u995/x509up_u$XRDUID/g -i /usr/lib/systemd/system/xrootd-renew-proxy.service
For distributed cache:
sed s/v008.pnpi.nw.ru/$HOST/g -i  /etc/xrootd/xrootd-server-dcp.cfg
sed s/v008.pnpi.nw.ru/$HOST/g -i  /etc/xrootd/xrootd-dcmanager.cfg

Start proxy services

systemctl daemon-reload
systemctl start xrootd-renew-proxy.timer
systemctl enable xrootd-renew-proxy.timer
systemctl start xrootd-renew-proxy.service
systemctl enable fetch-crl-cron
systemctl start fetch-crl-cron

Open firewall

firewall-cmd --zone=external --permanent --add-port=1095/tcp
firewall-cmd --zone=external --permanent --add-port=1094/tcp
firewall-cmd  --reload

CRIC Configuration speciality

ATLAS Site name = RC name

-- AndreyZarochentsev - 2021-02-15

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2021-07-28 - DanilaOleynik
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 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