InstallDcache180REFscratch
Installation of a dCache v180 machine (w/o Quattor)
- The instructions to recover maite are here: https://mon.iihe.ac.be/trac/t2b/wiki/InstalldCacheHeadnode
- A reference to the dCache 1.8.0: http://www.dcache.org/downloads/1.8.0/index.shtml
- We have currently dCache 1.8.0-15p2 running.
wget http://quattor.begrid.be/begrid/Central_BEGrid_Repository/noarch_dcache/dcache-server-1.8.0-15p2.noarch.rpm rpm -ivh dcache-server-1.8.0-15p2.noarch.rpm
yum install -y postgresql postgresql-devel postgresql-jdbc postgresql-libs postgresql-python postgresql-server postgresql-contrib /etc/init.d/postgresql start chkconfig postgresql on
- In /var/lib/pgsql/data/pg_hba.conf add
local all all trust host all all 127.0.0.1/32 trust host all all ::1/128 trust
- and restart
/etc/init.d/postgresql restart
- Create db and user
createuser -U postgres --no-superuser --no-createrole --createdb --pwprompt srmdcache createdb -U srmdcache dcache
wget http://quattor.begrid.be/begrid/Central_BEGrid_Repository/noarch_dcache/pnfs-postgresql-3.1.10-7.i386.rpm rpm -ivh pnfs-postgresql-3.1.10-7.i386.rpm
- Copy files from ccq which originally come from dcache180-maite
scp ccq:/root/dCache_essential_config/maite_essential_config/dCacheSetup /opt/d-cache/config/dCacheSetup mkdir /var/log/dcache scp ccq:/root/dCache_essential_config/maite_essential_config/log4j.properties /opt/d-cache/config/log4j.properties scp ccq:/root/dCache_essential_config/maite_essential_config/PoolManager.conf /opt/d-cache/config/PoolManager.conf scp ccq:/root/dCache_essential_config/maite_essential_config/dcache.kpwd /opt/d-cache/etc/dcache.kpwd scp ccq:/root/dCache_essential_config/maite_essential_config/dcachesrm-gplazma.policy /opt/d-cache/etc/dcachesrm-gplazma.policy scp ccq:/root/dCache_essential_config/maite_essential_config/logConfig.xml /opt/d-cache/etc/logConfig.xml scp ccq:/root/dCache_essential_config/maite_essential_config/node_config /opt/d-cache/etc/node_config scp ccq:/root/dCache_essential_config/maite_essential_config/srm_setup.env /opt/d-cache/etc/srm_setup.env scp ccq:/root/dCache_essential_config/maite_essential_config/pnfs_config /opt/pnfs/etc/pnfs_config scp ccq:/root/dCache_essential_config/maite_essential_config/pnfsSetup /usr/etc/pnfsSetup scp ccq:/root/dCache_essential_config/maite_essential_config/grid-vorolemap /etc/grid-security/grid-vorolemap scp ccq:/root/dCache_essential_config/maite_essential_config/storage-authzdb /etc/grid-security/storage-authzdb
- Edit some files to set correct hostname etc.
vi /opt/d-cache/config/dCacheSetup vi /opt/d-cache/etc/node_config
- Import database:
cd /opt scp ccq:/root/full_1325818923.gz /var/ scp ccq:/root/full_1325818923-pnfsdb.tar . su – postgres
wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI-trustanchors.repo mv EGI-trustanchors.repo /etc/yum.repos.d/ yum install ca-policy-egi-core yum install lcg-CA
- Install (patch line 314 to RET=localhost)
/opt/d-cache/install/install.sh
- adapt db files
vi /pnfs/fs/admin/etc/config/serverName vi /pnfs/fs/admin/etc/config/dCache/dcache.conf vi "/pnfs/iihe/cms/store/user/odevroed/.(config)(dCache)/dcache.conf" touch /pnfs/fs/admin/etc/config/dCache/'.(fset)(dcache.conf)(io)(on)'
- include keys
scp ccq:/root/dCache_essential_config/keys/dcache_* . cat ~/.ssh/dcache_admin_key.pub >> /opt/d-cache/config/authorized_keys
- annoying problem of pnfsdoors:
echo "/pnfsdoors /0/root/fs/usr/ 0 nooptions" > /pnfs/fs/admin/etc/exports/193.190.247.156
- adapted the routing table to send default through ggw (don't know if strictly needed)
- adapted /opt/d-cache/config/gridftpdoor.batch.orig
set context -c gsiftpAdapterInternalInterface 193.190.247.152