<?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=Installing_dcache_pool</id>
	<title>Installing dcache pool - 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=Installing_dcache_pool"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Installing_dcache_pool&amp;action=history"/>
	<updated>2026-05-16T11:09:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=Installing_dcache_pool&amp;diff=151&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot;  &#039;&#039;&#039; /!\ This is obsoleted by  this page&#039;&#039;&#039;  === On quattor svn ===  *copy/paste the content of an existing dcache pool profile (e.g. &lt;tt&gt;profil...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Installing_dcache_pool&amp;diff=151&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &amp;#039;&amp;#039;&amp;#039; /!\ This is obsoleted by &lt;a href=&quot;/DcachePoolConfig1912&quot; title=&quot;DcachePoolConfig1912&quot;&gt; this page&lt;/a&gt;&amp;#039;&amp;#039;&amp;#039;  === On quattor svn ===  *copy/paste the content of an existing dcache pool profile (e.g. &amp;lt;tt&amp;gt;profil...&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;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039; /!\ This is obsoleted by [[DcachePoolConfig1912| this page]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== On quattor svn ===&lt;br /&gt;
&lt;br /&gt;
*copy/paste the content of an existing dcache pool profile (e.g. &amp;lt;tt&amp;gt;profile_behar053.iihe.ac.be&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*as we want to use private only address&lt;br /&gt;
**make sure the gridftp door is disabled:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable DOOR_GRIDFTP = false;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**and do the necessary change (static route in maite) to ensure public FQDN (e.g behar053.iihe.ac.be) is mapped to private FQDN (e.g behar053.wn.iihe.ac.be)&lt;br /&gt;
***suggestion: maybe better than static routes, add rules to &amp;lt;tt&amp;gt;/etc/hosts&amp;lt;/tt&amp;gt; in maite. This should be done via quattor of course.&lt;br /&gt;
*in the profile tpl uncomment the line that will make spma failing to allow us to setup the XFS for the pool partitions&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;/software/packages&amp;quot;=pkg_del(&amp;quot;ganglia&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*make sure add all the corresponding changes (e.g. in databases.tpl, os_version_db.tpl,... ) in both CB5 and CB6&lt;br /&gt;
**suggestion: use search command on svn (example: search on behar053)&lt;br /&gt;
*commit, runcheck and prepare for installation (aii-shellfe usual commands)&lt;br /&gt;
&lt;br /&gt;
=== On the pool ===&lt;br /&gt;
&lt;br /&gt;
*on the RAID adapter BIOS configure the RAID arrays&lt;br /&gt;
**use stripe size of 128kB&lt;br /&gt;
**At most 12 disks in RAID6 &lt;br /&gt;
**enable cache write back feature&lt;br /&gt;
**do this for every RAID array&lt;br /&gt;
**after saving the RAID building process may take hours/days to complete&lt;br /&gt;
*restart the box and install (first pass)&lt;br /&gt;
*spma will fail because we explicitly introduce an rpm conflict&lt;br /&gt;
*copy the content of the variable MAKE_FS_SCRIPT to make_xfs.sh&lt;br /&gt;
*adapt the script to the new hardware specs &lt;br /&gt;
**variable sunit=256 for 128kB stripe size&lt;br /&gt;
**variable data_disks=10 for 12 disks in RAID6&lt;br /&gt;
*run the script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 make_xfs.sh&lt;br /&gt;
./make_xfs.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;Notice it may not work entirely at the first try because of various reasons. Make sure all the steps are correctly executed.&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;If not do the necessary changes and commit these changes back to the profile tpl for the record and for further use&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*prepare the pool to restart&lt;br /&gt;
**in the profile tpl comment the line blocking spma and commit to svn&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&amp;quot;/software/packages&amp;quot;=pkg_del(&amp;quot;ganglia&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**run the following command to allow quattor to install the rest of the componenents&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mv ks-post-install.log  ks-post-install.log.1&lt;br /&gt;
reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*After it restarts follow the quattor configuration (second pass) with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail -f /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*When the configuration is finished look at &amp;lt;tt&amp;gt;/storage/1/&amp;lt;/tt&amp;gt;. If it is empty you will have to configure the dcache manually:&lt;br /&gt;
**scp ccqg:./dCacheSetup /opt/d-cache/config/&lt;br /&gt;
**adapt in this file the java version according to the one actually installed&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
java=/usr/java/jdk1.6.0_26/bin/java&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**edit &amp;lt;tt&amp;gt;/opt/d-cache/etc/node_config&amp;lt;/tt&amp;gt; and paste the following content&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ADMINDOOR=no&lt;br /&gt;
ADMIN_NODE=maite.iihe.ac.be&lt;br /&gt;
DCACHE_BASE_DIR=/opt/d-cache&lt;br /&gt;
DCACHE_HOME=/opt/d-cache&lt;br /&gt;
DCAP=yes&lt;br /&gt;
DIRDOMAIN=no&lt;br /&gt;
GPLAZMASERVICE=no&lt;br /&gt;
GRIDFTP=no&lt;br /&gt;
GSIDCAP=yes&lt;br /&gt;
HTTPDOMAIN=no&lt;br /&gt;
INFOPROVIDER=no&lt;br /&gt;
LMDOMAIN=no&lt;br /&gt;
NAMESPACE=pnfs&lt;br /&gt;
NODE_TYPE=pool&lt;br /&gt;
NUMBER_OF_MOVERS=100&lt;br /&gt;
PNFSMANAGER=no&lt;br /&gt;
PNFS_INSTALL_DIR=/opt/pnfs&lt;br /&gt;
PNFS_OVERWRITE=no&lt;br /&gt;
PNFS_ROOT=/pnfs&lt;br /&gt;
PNFS_START=yes&lt;br /&gt;
POOLMANAGER=no&lt;br /&gt;
POOL_PATH=/opt/d-cache/etc&lt;br /&gt;
SERVER_ID=iihe&lt;br /&gt;
SRM=no&lt;br /&gt;
UTILITYDOMAIN=no&lt;br /&gt;
XROOTD=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**run the install script &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;
**edit &amp;lt;tt&amp;gt;/opt/d-cache/config/behar053.poollist&amp;lt;/tt&amp;gt; where behar053 is an example replace accordingly:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@behar053 ~]# cat /opt/d-cache/config/behar053.poollist&lt;br /&gt;
behar053_1  /storage/1/pool  sticky=allowed recover-space recover-control recover-anyway lfs=precious tag.hostname=behar053&lt;br /&gt;
behar053_2  /storage/2/pool  sticky=allowed recover-space recover-control recover-anyway lfs=precious tag.hostname=behar053&lt;br /&gt;
behar053_3  /storage/3/pool  sticky=allowed recover-space recover-control recover-anyway lfs=precious tag.hostname=behar053&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**create the pools&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/d-cache/bin/dcache pool create 18438g /storage/1/pool&lt;br /&gt;
/opt/d-cache/bin/dcache pool create 18438g /storage/2/pool&lt;br /&gt;
/opt/d-cache/bin/dcache pool create 14750g /storage/3/pool&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
   &amp;#039;&amp;#039;&amp;#039;Recompute the size (18438g and 14750g) for 3TB disks and keep a safe margin (few MB smaller that the expected netto formatted size)&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
   &amp;#039;&amp;#039;&amp;#039;22300 for /1 ;27880 for /2 and /3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
**view the result&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@behar053 ~]# /opt/d-cache/bin/dcache pool ls&lt;br /&gt;
Pool       Domain         LFS          Size   Free Path&lt;br /&gt;
behar053_1 behar053Domain precious    18438  18438 /storage/1/pool&lt;br /&gt;
behar053_2 behar053Domain precious    18438  18438 /storage/2/pool&lt;br /&gt;
behar053_3 behar053Domain precious    14750  14750 /storage/3/pool&lt;br /&gt;
Disk space is measured in GiB.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**add necessary lines in maite in /opt/d-cache/config/PoolManager.conf and restart dcache deamons&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/d-cache/bin/dcache restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**back on the pool, configure dcache via quattor&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ncm-ncd --co dcache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**configure symlink via quattor&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ncm-ncd --co symlink&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**last steps&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scp ccqg:./dcache-core /etc/rc.d/init.d/dcache-core&lt;br /&gt;
scp ccqg:./dcache-pool /etc/rc.d/init.d/dcache-pool&lt;br /&gt;
chkconfig --add dcache-core&lt;br /&gt;
chkconfig --add dcache-pool&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**reboot&lt;br /&gt;
**after it restarts follow the configuration&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tail -f /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**you may have to stop gridftp it is not yet the case&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/d-cache/bin/dcache status&lt;br /&gt;
/opt/d-cache/bin/dcache stop&lt;br /&gt;
/opt/d-cache/bin/dcache start&lt;br /&gt;
/opt/d-cache/bin/dcache stop gridftp&lt;br /&gt;
ncm-ncd --co dcache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**run on maite&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ncm-ncd --co dcache&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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>