<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=InstallDcache180REFscratch</id>
	<title>InstallDcache180REFscratch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=InstallDcache180REFscratch"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=InstallDcache180REFscratch&amp;action=history"/>
	<updated>2026-04-21T02:37:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=InstallDcache180REFscratch&amp;diff=131&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; == 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 refer...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=InstallDcache180REFscratch&amp;diff=131&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:38Z</updated>

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