<?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=OlPnfsFiles</id>
	<title>OlPnfsFiles - 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=OlPnfsFiles"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=OlPnfsFiles&amp;action=history"/>
	<updated>2026-04-20T09:47:39Z</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=OlPnfsFiles&amp;diff=201&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; This page describes the procedure to generate all the necessary files to drive the database found in http://mon.iihe.ac.be/OldPnfsFiles/&lt;br&gt; Note that the password for mysql...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=OlPnfsFiles&amp;diff=201&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; This page describes the procedure to generate all the necessary files to drive the database found in http://mon.iihe.ac.be/OldPnfsFiles/&amp;lt;br&amp;gt; Note that the password for mysql...&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;
This page describes the procedure to generate all the necessary files to drive the database found in http://mon.iihe.ac.be/OldPnfsFiles/&amp;lt;br&amp;gt;&lt;br /&gt;
Note that the password for mysql is to be found in the private &amp;#039;password&amp;#039; template in quattor.&lt;br /&gt;
&lt;br /&gt;
1) go to maite&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root/damadori/OldFiles&lt;br /&gt;
rm -f *.txt&lt;br /&gt;
rm -f all.sql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
2) go to ccq &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root/Olivier/Old_pnfs_files&lt;br /&gt;
rm -f *txt&lt;br /&gt;
rm -f all.sql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
make sure the file &amp;quot;Storage is up to date. This will be used to go to every storage box&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./fetch_old&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3) back on maite&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root/damadori/OldFiles&lt;br /&gt;
./GetOldFilesPath&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4) back  ccq:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /root/Olivier/Old_pnfs_files&lt;br /&gt;
rm -f all.sql&lt;br /&gt;
scp maite:/root/damadori/OldFiles/all.sql ./&lt;br /&gt;
scp all.sql mon:/root/Olivier/OldFiles&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5) go to mon&lt;br /&gt;
open a browser and point to &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://localhost/mysqladmin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Log in a root and go to the database &amp;#039;&amp;#039;&amp;#039;oldfiles&amp;#039;&amp;#039;&amp;#039; and empty the table &amp;#039;&amp;#039;&amp;#039;dirs&amp;#039;&amp;#039;&amp;#039;. In sql parlance, this would be:&lt;br /&gt;
then in a terminal:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql --max_allowed_packet=100M oldfiles -p &amp;lt; all.sql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
if the command does not work: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -p&lt;br /&gt;
set global net_buffer_length=1000000;&lt;br /&gt;
set global max_allowed_packet=1000000000;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and re-issue the mysql command after leaving mysql.&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>