<?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=DcachePoolConfig1912</id>
	<title>DcachePoolConfig1912 - 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=DcachePoolConfig1912"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=DcachePoolConfig1912&amp;action=history"/>
	<updated>2026-05-16T08:20:47Z</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=DcachePoolConfig1912&amp;diff=82&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === On quattor svn ===  *copy/paste the content of an existing dcache pool profile (e.g. &lt;tt&gt;profile_behar080.iihe.ac.be&lt;/tt&gt;) *as we want to use private only address **m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=DcachePoolConfig1912&amp;diff=82&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === On quattor svn ===  *copy/paste the content of an existing dcache pool profile (e.g. &amp;lt;tt&amp;gt;profile_behar080.iihe.ac.be&amp;lt;/tt&amp;gt;) *as we want to use private only address **m...&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;
=== 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_behar080.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 behar080.iihe.ac.be) is mapped to private FQDN (e.g behar080.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 behar080)&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;
**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/dcache.conf&amp;lt;/tt&amp;gt; and paste the following content&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dcache.layout=${host.name}&lt;br /&gt;
dcache.namespace=pnfs&lt;br /&gt;
&lt;br /&gt;
# The following is taken from the old dCacheSetup file.&lt;br /&gt;
# Some configuration parameters may no longer apply.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dcache.home=/opt/d-cache&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
dcache.java.memory.heap=6144m&lt;br /&gt;
dcache.java.memory.direct=1024m&lt;br /&gt;
net.wan.port.min=20000&lt;br /&gt;
net.wan.port.max=25000&lt;br /&gt;
net.lan.port.min=33115&lt;br /&gt;
net.lan.port.max=33145&lt;br /&gt;
pool.dcap.port=0&lt;br /&gt;
dcache.java.options.extra=-server &lt;br /&gt;
&lt;br /&gt;
broker.host=maite.iihe.ac.be&lt;br /&gt;
&lt;br /&gt;
metaDataRepository=org.dcache.pool.repository.meta.db.BerkeleyDBMetaDataRepository&lt;br /&gt;
metaDataRepositoryImport=org.dcache.pool.repository.meta.file.FileMetaDataRepository&lt;br /&gt;
ftpPort=${portBase}126&lt;br /&gt;
dCapGsiPort=${portBase}128&lt;br /&gt;
parallelStreams=10&lt;br /&gt;
srmBufferSize=1048576&lt;br /&gt;
srmTcpBufferSize=1048576&lt;br /&gt;
dcache.log.dir=/var/log/dcache&lt;br /&gt;
billingToDb=yes&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
**edit &amp;lt;tt&amp;gt;/opt/d-cache/etc/layouts/behar080.conf&amp;lt;/tt&amp;gt; and paste the following content&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[behar080Domain]&lt;br /&gt;
[behar080Domain/pool]&lt;br /&gt;
name=behar080_1&lt;br /&gt;
path=/storage/1/pool&lt;br /&gt;
waitForFiles=${path}/setup&lt;br /&gt;
lfs=precious&lt;br /&gt;
tags=hostname=behar080&lt;br /&gt;
[behar080Domain/pool]&lt;br /&gt;
name=behar080_2&lt;br /&gt;
path=/storage/2/pool&lt;br /&gt;
waitForFiles=${path}/setup&lt;br /&gt;
lfs=precious&lt;br /&gt;
tags=hostname=behar080&lt;br /&gt;
[behar080Domain/pool]&lt;br /&gt;
name=behar080_3&lt;br /&gt;
path=/storage/3/pool&lt;br /&gt;
waitForFiles=${path}/setup&lt;br /&gt;
lfs=precious&lt;br /&gt;
tags=hostname=behar080&lt;br /&gt;
[behar080Domain/pool]&lt;br /&gt;
name=behar080_4&lt;br /&gt;
path=/storage/4/pool&lt;br /&gt;
waitForFiles=${path}/setup&lt;br /&gt;
lfs=precious&lt;br /&gt;
tags=hostname=behar080&lt;br /&gt;
[behar080Domain/pool]&lt;br /&gt;
name=behar080_5&lt;br /&gt;
path=/storage/5/pool&lt;br /&gt;
waitForFiles=${path}/setup&lt;br /&gt;
lfs=precious&lt;br /&gt;
tags=hostname=behar080&lt;br /&gt;
[behar080Domain/pool]&lt;br /&gt;
name=behar080_6&lt;br /&gt;
path=/storage/6/pool&lt;br /&gt;
waitForFiles=${path}/setup&lt;br /&gt;
lfs=precious&lt;br /&gt;
tags=hostname=behar080&lt;br /&gt;
&lt;br /&gt;
[dcap-behar080Domain]&lt;br /&gt;
[dcap-behar080Domain/dcap]&lt;br /&gt;
&lt;br /&gt;
[gsidcap-behar080Domain]&lt;br /&gt;
[gsidcap-behar080Domain/gsidcap]&lt;br /&gt;
&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 --size=27880G --lfs=precious /storage/1/pool behar082_1 behar082Domain&lt;br /&gt;
/opt/d-cache/bin/dcache pool create --size=27880G --lfs=precious /storage/2/pool behar082_2 behar082Domain&lt;br /&gt;
/opt/d-cache/bin/dcache pool create --size=22300G --lfs=precious /storage/3/pool behar082_3 behar082Domain&lt;br /&gt;
/opt/d-cache/bin/dcache pool create --size=27880G --lfs=precious /storage/4/pool behar082_4 behar082Domain&lt;br /&gt;
/opt/d-cache/bin/dcache pool create --size=27880G --lfs=precious /storage/5/pool behar082_5 behar082Domain&lt;br /&gt;
/opt/d-cache/bin/dcache pool create --size=22300G --lfs=precious /storage/6/pool behar082_6 behar082Domain&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@behar082 pool]# /opt/d-cache/bin/dcache pool ls&lt;br /&gt;
POOL       DOMAIN         SIZE   FREE   PATH            &lt;br /&gt;
behar082_1 behar082Domain 27880G 27944G /storage/1/pool &lt;br /&gt;
behar082_2 behar082Domain 27880G 27944G /storage/2/pool &lt;br /&gt;
behar082_3 behar082Domain 22300G 22355G /storage/3/pool &lt;br /&gt;
behar082_4 behar082Domain 27880G 27944G /storage/4/pool &lt;br /&gt;
behar082_5 behar082Domain 27880G 27944G /storage/5/pool &lt;br /&gt;
behar082_6 behar082Domain 22300G 22355G /storage/6/pool&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**Start dcache deamons&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/d-cache/bin/dcache start&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 --level 2345 dcache-core on&lt;br /&gt;
chkconfig --level 2345 dcache-pool on&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;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>