xCache Installation and Setting
Requirements
- CentOS 7 for head node and worker nodes
Links to documentation:
Packages
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
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-server-dcp.cfg -O /etc/xrootd/xrootd-server-dcp.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:
HOST=servername
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
fetch-crl
Open firewall
firewall-cmd --zone=external --permanent --add-port=1095/tcp
firewall-cmd --zone=external --permanent --add-port=1094/tcp
firewall-cmd --reload
--
AndreyZarochentsev - 2021-02-15