<?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=InstallDcache195Ext</id>
	<title>InstallDcache195Ext - 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=InstallDcache195Ext"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=InstallDcache195Ext&amp;action=history"/>
	<updated>2026-04-21T02:36:32Z</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=InstallDcache195Ext&amp;diff=133&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; == Installing dCache 1.9.5 on machine with extended Quattor template ==  *This page describes the steps needed to get dCache up and running on a machine that was deployed w...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=InstallDcache195Ext&amp;diff=133&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Installing dCache 1.9.5 on machine with extended Quattor template ==  *This page describes the steps needed to get dCache up and running on a machine that was deployed w...&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;
== Installing dCache 1.9.5 on machine with extended Quattor template ==&lt;br /&gt;
&lt;br /&gt;
*This page describes the steps needed to get dCache up and running on a machine that was deployed with a quattor template that was extended for dCache&lt;br /&gt;
&lt;br /&gt;
*The dCache 1.9.5 manual  http://www.dcache.org/manuals/Book-1.9.5/&lt;br /&gt;
**The steps below follow basically what is described in the manual &lt;br /&gt;
&lt;br /&gt;
*Start postgresql, Quattor will take care of this after reboot&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/postgresql start&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;
*Generate keys&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-keygen -b 768 -t rsa1 -f /opt/d-cache//etc/server_key -N &amp;quot;&amp;quot;&lt;br /&gt;
ssh-keygen -b 1024 -t rsa1 -f /opt/d-cache//etc/host_key -N &amp;quot;&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Import pnfs database:&lt;br /&gt;
**go to jefke.wn and in /storage/userbackup/Maite_Db_backup/ find the last files and copy to the machine&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scp jefke.wn:/storage/userbackup/Maite_Db_backup/full_1334628123-pnfsdb.tar /var&lt;br /&gt;
scp jefke.wn:/storage/userbackup/Maite_Db_backup/full_1334628123.gz /var&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Untar it in the correct location. &amp;#039;&amp;#039;Hint:&amp;#039;&amp;#039; tar -tf to see where the tree structure of the tarball. &lt;br /&gt;
**This configures contains the metadata for the pnfs database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt&lt;br /&gt;
tar -xvf /var/full_1334628123-pnfsdb.tar&lt;br /&gt;
mv opt/pnfsdb/ . &lt;br /&gt;
rm -rf opt/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Populate the pnfs database&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su – postgres&lt;br /&gt;
zcat /var/full_1334628123.gz | psql postgres&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*A whole set of config files need to be adapted [[InstallDcache195ExtConfigFiles]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Run install script of dcache.&lt;br /&gt;
**Before you do this you have to remove /pnfs, it is put there by quattor to make all /store/user/username directories.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rm -rf /pnfs/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Make sure pnfs is running&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/pnfs/bin/pnfs start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Needed a little hack in the script to mount fs from localhost (really needed, I don&amp;#039;t think so)&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;
**with line 260 replace &amp;#039;&amp;#039;RET=${RET:-localhost}&amp;#039;&amp;#039; by &amp;#039;&amp;#039;RET=&amp;quot;localhost&amp;quot;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*The poolmanager.conf can be found here [[InstallDcache_PoolManagerConf]]&lt;br /&gt;
&lt;br /&gt;
*In case the machine name is not anymore maite.iihe.ac.be some additional changes need to be performed:&lt;br /&gt;
**/pnfs/fs/admin/etc/config/serverName&lt;br /&gt;
**/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;
**more info in the dcache book in the section Global Configuration with Wormholes &lt;br /&gt;
**Run this&lt;br /&gt;
&amp;lt;pre&amp;gt;&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;
*To be able to use the admin interface:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root/.ssh&lt;br /&gt;
scp ccq:/root/dCache_essential_config/keys/dcache_admin_key .&lt;br /&gt;
scp ccq:/root/dCache_essential_config/keys/dcache_admin_key.pub .&lt;br /&gt;
scp ccq:/root/dCache_essential_config/keys/dcache_admin_config .&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;
**Go to the admin interface&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -F /root/.ssh/dcache_admin_config admin@localhost&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>