<?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=StorageConsistency</id>
	<title>StorageConsistency - 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=StorageConsistency"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=StorageConsistency&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=StorageConsistency&amp;diff=254&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; The instructions in this wiki page are based on the info found at: https://github.com/dmwm/DMWMMON/tree/master/SiteInfoProviders/DCache  &lt;br&gt;   To do the storage consisten...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=StorageConsistency&amp;diff=254&amp;oldid=prev"/>
		<updated>2015-08-26T12:29:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; The instructions in this wiki page are based on the info found at: https://github.com/dmwm/DMWMMON/tree/master/SiteInfoProviders/DCache  &amp;lt;br&amp;gt;   To do the storage consisten...&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;
The instructions in this wiki page are based on the info found at: https://github.com/dmwm/DMWMMON/tree/master/SiteInfoProviders/DCache  &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To do the storage consistency check:&amp;lt;br&amp;gt;&lt;br /&gt;
go to maite&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -ivh /root/Olivier/pnfs-dump-1.0.24-1.i386.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then run the tool:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/pnfs/tools/pnfsDump -o syncat /var/pnfsDump_T2_BE_IIHE_18_12_12 -s -k -c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Transfer this file to your laptop as we need to do some memory intensive operations on it.&amp;lt;br&amp;gt;&lt;br /&gt;
First, we will transform the file so that it contains one line per file on /pnfs. The original contains only one line with the complete xml.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sed &amp;#039;s_&amp;lt;/entry&amp;gt;_&amp;lt;/entry&amp;gt;\n_g&amp;#039; &amp;lt; pnfsDump_T2_BE_IIHE_04_03_14 &amp;gt; onePerLine&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The mail you received will contain a set of directories that need to be scanned. The last mail received said:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/store/mc&lt;br /&gt;
/store/data&lt;br /&gt;
/store/generator&lt;br /&gt;
/store/results&lt;br /&gt;
/store/hidata&lt;br /&gt;
/store/himc&lt;br /&gt;
/store/lumi&lt;br /&gt;
/store/relval&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will grep for these and put everything in a result file. The easiest way is to put all the patterns in a file named &amp;#039;patterns&amp;#039; and issue:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep -f patterns testFile &amp;gt; outFile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly, we will convert the pfn&amp;#039;s into lfn&amp;#039;s by stripping the site specific part of the file&amp;#039;s name.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sed s_&amp;quot;/root/fs/usr/cms/ph/sc4_&amp;quot;_ &amp;lt; outFile &amp;gt; result_IIHE_2014_03_19&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bzip this file, put it somewhere on afs and update the ticket to tell the people where it can be found.&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>